use of org.apache.cayenne.dba.oracle.OracleAdapter in project cayenne by apache.
the class PerAdapterProviderTest method before.
@Before
public void before() {
ResourceLocator locator = new ClassLoaderResourceLocator(new DefaultClassLoaderManager());
RuntimeProperties runtimeProperties = mock(RuntimeProperties.class);
ValueObjectTypeRegistry valueObjectTypeRegistry = mock(ValueObjectTypeRegistry.class);
this.oracleAdapter = new OracleAdapter(runtimeProperties, Collections.<ExtendedType>emptyList(), Collections.<ExtendedType>emptyList(), Collections.<ExtendedTypeFactory>emptyList(), locator, valueObjectTypeRegistry);
this.derbyAdapter = new DerbyAdapter(runtimeProperties, Collections.<ExtendedType>emptyList(), Collections.<ExtendedType>emptyList(), Collections.<ExtendedTypeFactory>emptyList(), locator, valueObjectTypeRegistry);
this.autoDerbyAdapter = new AutoAdapter(new Provider<DbAdapter>() {
@Override
public DbAdapter get() throws DIRuntimeException {
return derbyAdapter;
}
}, new Slf4jJdbcEventLogger(runtimeProperties));
}
Aggregations