@Test public void testLoad() throws IOException { Path sampleFile = newLegacySample(); Index expectedIndex = sampleIndex.withName(MoreFiles.getNameWithoutExtension(sampleFile)); try (Indexer indexer = new LegacyIndexer(sampleFile)) { assertThat(indexer.loadIndex()).isEqualTo(expectedIndex); } }
@Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), MoreFiles.getNameWithoutExtension(file)); }
LegacyIndexer implements Indexer { @Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), MoreFiles.getNameWithoutExtension(file)); } }
LegacyIndexer implements Indexer { @Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), MoreFiles.getNameWithoutExtension(file)); } LegacyIndexer(Path file); }
LegacyIndexer implements Indexer { @Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), MoreFiles.getNameWithoutExtension(file)); } LegacyIndexer(Path file); @Override void checkId(Index.Key key); @Override Index loadIndex(); @Override void storeIndex(Index index); @Override void close(); }
LegacyIndexer implements Indexer { @Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), MoreFiles.getNameWithoutExtension(file)); } LegacyIndexer(Path file); @Override void checkId(Index.Key key); @Override Index loadIndex(); @Override void storeIndex(Index index); @Override void close();  }