@Test public void shouldParseAndFindFeaturesInDirUsingAbsoluteath() throws IOException { List<Feature> features = FeatureParser.findAndParse(Paths.get("").toAbsolutePath().toString() +"/target/test-classes/json-output/parser"); assertThat(features).hasSize(4).contains(FeatureBuilder.instance().name("An embed data directly feature").id("an-embed-data-directly-feature").build()); }
public static List<Feature> findAndParse(String basePath){ List<String> paths = FileUtil.findJsonFiles(basePath); return parse(paths); }
FeatureParser { public static List<Feature> findAndParse(String basePath){ List<String> paths = FileUtil.findJsonFiles(basePath); return parse(paths); } }
FeatureParser { public static List<Feature> findAndParse(String basePath){ List<String> paths = FileUtil.findJsonFiles(basePath); return parse(paths); }  }
FeatureParser { public static List<Feature> findAndParse(String basePath){ List<String> paths = FileUtil.findJsonFiles(basePath); return parse(paths); }  static List<Feature> parse(String json); static List<Feature> parse(List<String> paths); static List<Feature> parse(String... paths); static List<Feature> findAndParse(String basePath); }
FeatureParser { public static List<Feature> findAndParse(String basePath){ List<String> paths = FileUtil.findJsonFiles(basePath); return parse(paths); }  static List<Feature> parse(String json); static List<Feature> parse(List<String> paths); static List<Feature> parse(String... paths); static List<Feature> findAndParse(String basePath);  }