@Test void testUniqueAndSort() throws Exception { final TPMMSConfiguration configuration = getConfiguration(); final List<String> items = randomized(withDuplicates(asList("4", "3", "2", "1"))); createFixture(items); new TPMMS(configuration).uniqueAndSort(toProcess); final List<String> actual = Files.lines(toProcess).collect(toList()); assertThat(actual).as("Input: " + items).isEqualTo(asList("1", "2", "3", "4")); }
public void uniqueAndSort(final Path path) throws IOException { uniqueAndSort(path, new DefaultOutput()); }
TPMMS { public void uniqueAndSort(final Path path) throws IOException { uniqueAndSort(path, new DefaultOutput()); } }
TPMMS { public void uniqueAndSort(final Path path) throws IOException { uniqueAndSort(path, new DefaultOutput()); } TPMMS(final TPMMSConfiguration configuration); }
TPMMS { public void uniqueAndSort(final Path path) throws IOException { uniqueAndSort(path, new DefaultOutput()); } TPMMS(final TPMMSConfiguration configuration); void uniqueAndSort(final Path path); void uniqueAndSort(final Path path, final Output output); }
TPMMS { public void uniqueAndSort(final Path path) throws IOException { uniqueAndSort(path, new DefaultOutput()); } TPMMS(final TPMMSConfiguration configuration); void uniqueAndSort(final Path path); void uniqueAndSort(final Path path, final Output output);  }