@Test public void analyze_one_single_file() { DuplicatedFeatureNamesCheck check = new DuplicatedFeatureNamesCheck(); scanFile(check, "feature.feature"); Assert.assertNotNull(check.getNames()); Assert.assertEquals(1, check.getNames().size()); Assert.assertTrue(check.getNames().containsKey("My feature blabla")); Assert.assertNotNull(check.getNames().get("My feature blabla")); Assert.assertEquals(1, check.getNames().get("My feature blabla").size()); Assert.assertEquals(getTestFilePath("feature.feature"), check.getNames().get("My feature blabla").get(0).getFile().getPath()); }
public Map<String, List<FileNameTree>> getNames() { return names; }
DuplicatedFeatureNamesCheck extends DoubleDispatchVisitorCheck { public Map<String, List<FileNameTree>> getNames() { return names; } }
DuplicatedFeatureNamesCheck extends DoubleDispatchVisitorCheck { public Map<String, List<FileNameTree>> getNames() { return names; }  }
DuplicatedFeatureNamesCheck extends DoubleDispatchVisitorCheck { public Map<String, List<FileNameTree>> getNames() { return names; }  @Override void visitFeatureDeclaration(FeatureDeclarationTree tree); Map<String, List<FileNameTree>> getNames(); }
DuplicatedFeatureNamesCheck extends DoubleDispatchVisitorCheck { public Map<String, List<FileNameTree>> getNames() { return names; }  @Override void visitFeatureDeclaration(FeatureDeclarationTree tree); Map<String, List<FileNameTree>> getNames();  }