use of org.apache.qpid.server.store.jdbc.JDBCDetails in project qpid-broker-j by apache.
the class JDBCLinkStoreTest method createLinkStore.
@Override
protected LinkStore createLinkStore() {
final JDBCDetails details = mock(JDBCDetails.class);
when(details.getBlobType()).thenReturn("blob");
when(details.isUseBytesMethodsForBlob()).thenReturn(false);
JDBCContainer jdbcContainer = mock(JDBCContainer.class);
when(jdbcContainer.getJDBCDetails()).thenReturn(details);
when(jdbcContainer.getTableNamePrefix()).thenReturn("testTablePrefix");
when(jdbcContainer.getConnection()).thenAnswer(invocation -> DriverManager.getConnection(getUrl() + ";create=true"));
return new JDBCLinkStore(jdbcContainer);
}
Aggregations