@Test(expected = IllegalArgumentException.class) public void should_throw_illegal_argument_exception_when_second_separator_is_null() { final Separator semiColonSeparator = new Separator(';'); SeparatorAnalyzer separatorAnalyzer = new SeparatorAnalyzer(1, Collections.emptyList()); separatorAnalyzer.compare(semiColonSeparator, null); }
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);  }