本文整理了Java中cucumber.api.DataTable.asMaps()
方法的一些代码示例,展示了DataTable.asMaps()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataTable.asMaps()
方法的具体详情如下:
包路径:cucumber.api.DataTable
类名称:DataTable
方法名:asMaps
暂无
代码示例来源:origin: serenity-bdd/serenity-cucumber
private List<Map<String,String>> mapped(DataTable expectedCost) {
return expectedCost.asMaps(String.class, String.class);
}
}
代码示例来源:origin: se.redmind/rmtest-cucumber-selenium
@Given("^the aliases defined in the file " + QUOTED_CONTENT + "$")
public void the_aliases_defined_in_the_file(String fileName) throws IOException {
Splitter splitter = Splitter.on("|").trimResults().omitEmptyStrings();
List<String> lines = Files.readLines(new File(fileName), Charset.defaultCharset());
List<List<String>> rows = lines.stream().map(splitter::splitToList).collect(Collectors.toList());
these_aliases(DataTable.create(rows).asMaps(String.class, String.class));
}
代码示例来源:origin: com.intuit.karate/karate-core
@When("^replace (\\w+)$")
public void replace(String name, DataTable table) {
replace(name, table.asMaps(String.class, String.class));
}
代码示例来源:origin: com.intuit.karate/karate-core
@When("^table (.+)")
public void table(String name, DataTable table) {
table(name, table.asMaps(String.class, String.class));
}
代码示例来源:origin: com.intuit.karate/karate-core
@When("^set ([^\\s]+)( [^=]+)?$")
public void set(String name, String path, DataTable table) {
set(name, path, table.asMaps(String.class, String.class));
}
代码示例来源:origin: org.locationtech.geogig/geogig-web-api-functional-tests
SetMultimap<String, String> expected = HashMultimap.create();
List<Map<String, String>> asMaps = expectedFeatures.asMaps(String.class, String.class);
for (Map<String, String> featureMap : asMaps) {
for (Entry<String, String> entry : featureMap.entrySet()) {
代码示例来源:origin: locationtech/geogig
SetMultimap<String, String> expected = HashMultimap.create();
List<Map<String, String>> asMaps = expectedFeatures.asMaps(String.class, String.class);
for (Map<String, String> featureMap : asMaps) {
for (Entry<String, String> entry : featureMap.entrySet()) {
代码示例来源:origin: org.locationtech.geogig/geogig-cli
SetMultimap<String, String> expected = HashMultimap.create();
List<Map<String, String>> asMaps = expectedFeatures.asMaps(String.class, String.class);
for (Map<String, String> featureMap : asMaps) {
for (Entry<String, String> entry : featureMap.entrySet()) {
代码示例来源:origin: org.locationtech.geogig/geogig-cli-core
SetMultimap<String, String> expected = HashMultimap.create();
List<Map<String, String>> asMaps = expectedFeatures.asMaps(String.class, String.class);
for (Map<String, String> featureMap : asMaps) {
for (Entry<String, String> entry : featureMap.entrySet()) {
内容来源于网络,如有侵权,请联系作者删除!