JdbcIndexEngine extends JdbcService implements IndexEngine { @Override public boolean indexExists(Class<?> model) { return indexExists(translator.translate(model)); } JdbcIndexEngine(DataSource dataSource, SchemaMapper schemaMapper); @Override Index<T> createIndex(Class<T> model); @Override boolean indexExists(Class<?> model); @Override boolean indexExists(String name); @SuppressWarnings("unchecked") @Override JdbcIndex<T> getIndex(Class<T> model); @Override JdbcIndex<?> getIndex(String name); @Override void setClassLoader(ClassLoader classLoader); @Override void commit(IndexCommit commit); @Override List<Index<?>> getAll(); @Override void removeIndex(Index<?> index); void install();  }
@Test public void indexExists_onNonExistingClass_returnsFalse() throws Exception { assertFalse(indexEngine.indexExists(TestModel.class)); }
@Test public void indexExists_onNonExistingName_returnsFalse() throws Exception { assertFalse(indexEngine.indexExists("org.openengsb.core.edbi.models.TestModel")); }