@Test public void should_return_arbitrarily_first_separator() { final Separator invalidSeparator1 = new Separator('A'); final Separator invalidSeparator2 = new Separator('B'); SeparatorAnalyzer separatorAnalyzer = new SeparatorAnalyzer(1, Collections.emptyList()); assertTrue(separatorAnalyzer.compare(invalidSeparator1, invalidSeparator2) < 0); }
public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); }
SeparatorAnalyzer implements Consumer<Separator> { public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); } }
SeparatorAnalyzer implements Consumer<Separator> { public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); } SeparatorAnalyzer(int numberOfLines, List<String> sampleLines); }
SeparatorAnalyzer implements Consumer<Separator> { public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); } SeparatorAnalyzer(int numberOfLines, List<String> sampleLines); @Override void accept(Separator separator); int compare(Separator s1, Separator s2); }
SeparatorAnalyzer implements Consumer<Separator> { public int compare(Separator s1, Separator s2) { return comparator.compare(s1, s2); } SeparatorAnalyzer(int numberOfLines, List<String> sampleLines); @Override void accept(Separator separator); int compare(Separator s1, Separator s2);  }