private Map<String, Object> createFeature(TestCase testCase) { Map<String, Object> featureMap = new HashMap<String, Object>(); Feature feature = testSources.getFeature(testCase.getUri()); if (feature != null) { featureMap.put("keyword", feature.getKeyword()); featureMap.put("name", feature.getName()); featureMap.put("description", feature.getDescription() != null ? feature.getDescription() : ""); if (!feature.getTags().isEmpty()) { featureMap.put("tags", createTagList(feature.getTags())); } } return featureMap; }
@Override public String getName() { Feature feature = cucumberFeature.getGherkinFeature().getFeature(); return feature.getKeyword() + ": " + feature.getName(); }
private Map<String, Object> createFeatureMap(TestCase testCase) { Map<String, Object> featureMap = new HashMap<String, Object>(); featureMap.put("uri", testCase.getUri()); featureMap.put("elements", new ArrayList<Map<String, Object>>()); Feature feature = testSources.getFeature(testCase.getUri()); if (feature != null) { featureMap.put("keyword", feature.getKeyword()); featureMap.put("name", feature.getName()); featureMap.put("description", feature.getDescription() != null ? feature.getDescription() : ""); featureMap.put("line", feature.getLocation().getLine()); featureMap.put("id", TestSourcesModel.convertToId(feature.getName())); featureMap.put("tags", feature.getTags()); } return featureMap; }
private void printFeature(String path) { Feature feature = testSources.getFeature(path); printTags(feature.getTags()); out.println(feature.getKeyword() + ": " + feature.getName()); printDescription(feature.getDescription()); }
private Feature featureWithDefaultName(Feature feature, String defaultName) { return new Feature(feature.getTags(), feature.getLocation(), feature.getLanguage(), feature.getKeyword(), defaultName, feature.getDescription(), feature.getChildren()); }
private Feature featureWithDefaultName(Feature feature, String defaultName) { return new Feature(feature.getTags(), feature.getLocation(), feature.getLanguage(), feature.getKeyword(), defaultName, feature.getDescription(), feature.getChildren()); }
String featureName = feature.getKeyword() + ": " + feature.getName(); String featureLanguage = feature.getLanguage(); String featureDescription = feature.getDescription();