@Test public void testToLinks() throws IOException { String FEATURE_PATH = "target/test-classes/Features/Tagged.feature"; File file = new File(FEATURE_PATH); List<Link> links = CucumberFeatureFinder.toLinks(context, file); assertEquals(18, links.size()); links.forEach(context::addLink); CucumberVertex testVertex1 = new CucumberVertex.Builder("Feature Lorem Ipsum", "Where does it") .withFeaturePath(file.getAbsolutePath()).withScenarioLine(14).build(); Link expectedLink1 = newLink(START_VERTEX, testVertex1, LinkType.ENTRY_POINT); CucumberVertex testVertex2 = new CucumberVertex.Builder("Feature Lorem Ipsum", "come from?") .withFeaturePath((file.getAbsolutePath())).withScenarioLine(22).build(); Link expectedLink2 = newLink(START_VERTEX, testVertex2, LinkType.ENTRY_POINT); CucumberVertex tagVertex1 = new CucumberVertex.Builder(CUCUMBER_VERTEX.getActor(), "TAG-1").build(); Link expectedLink3 = newLink(testVertex1, tagVertex1, LinkType.CUCUMBER_TEST_TAG); Link expectedLink4 = newLink(testVertex2, tagVertex1, LinkType.CUCUMBER_TEST_TAG); Assert.assertTrue(testVertex1.isSpecial()); Assert.assertTrue(testVertex2.isSpecial()); Assert.assertTrue(tagVertex1.isSpecial()); assertLinksExist(expectedLink1, expectedLink2, expectedLink3, expectedLink4); }
public static List<Link> toLinks(Context context, File file) throws IOException { String content = new String(Files.readAllBytes(file.toPath()), Charset.defaultCharset()); return toLinks(context, file, content); }
CucumberFeatureFinder extends FileTreeFinder { public static List<Link> toLinks(Context context, File file) throws IOException { String content = new String(Files.readAllBytes(file.toPath()), Charset.defaultCharset()); return toLinks(context, file, content); } }
CucumberFeatureFinder extends FileTreeFinder { public static List<Link> toLinks(Context context, File file) throws IOException { String content = new String(Files.readAllBytes(file.toPath()), Charset.defaultCharset()); return toLinks(context, file, content); }  }
CucumberFeatureFinder extends FileTreeFinder { public static List<Link> toLinks(Context context, File file) throws IOException { String content = new String(Files.readAllBytes(file.toPath()), Charset.defaultCharset()); return toLinks(context, file, content); }  static List<Link> toLinks(Context context, File file); static List<Link> toLinks(Context context, File file, String content); static List<String> getCucumberSteps(); }
CucumberFeatureFinder extends FileTreeFinder { public static List<Link> toLinks(Context context, File file) throws IOException { String content = new String(Files.readAllBytes(file.toPath()), Charset.defaultCharset()); return toLinks(context, file, content); }  static List<Link> toLinks(Context context, File file); static List<Link> toLinks(Context context, File file, String content); static List<String> getCucumberSteps();  }