@Test public void testLoad() throws IOException { Path sampleFile = newGenericSample(); try (Indexer indexer = new GenericIndexer(sampleFile, FileWorkspaceImpl.getRootFolder(sampleFile))) { assertThat(indexer.loadIndex()).isEqualTo(sampleIndex); } }
@Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), rootFolder); }
GenericIndexer implements Indexer { @Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), rootFolder); } }
GenericIndexer implements Indexer { @Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), rootFolder); } GenericIndexer(Path file, Path rootFolder); }
GenericIndexer implements Indexer { @Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), rootFolder); } GenericIndexer(Path file, Path rootFolder); @Override void checkId(Index.Key key); @Override Index loadIndex(); @Override void storeIndex(Index index); @Override void close(); }
GenericIndexer implements Indexer { @Override public Index loadIndex() throws IOException { return xmlToIndex(unmarshalIndex(file), rootFolder); } GenericIndexer(Path file, Path rootFolder); @Override void checkId(Index.Key key); @Override Index loadIndex(); @Override void storeIndex(Index index); @Override void close();  }