Search in sources :

Example 1 with JDBCDetails

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);
}
Also used : JDBCDetails(org.apache.qpid.server.store.jdbc.JDBCDetails) JDBCContainer(org.apache.qpid.server.store.jdbc.JDBCContainer)

Aggregations

JDBCContainer (org.apache.qpid.server.store.jdbc.JDBCContainer)1 JDBCDetails (org.apache.qpid.server.store.jdbc.JDBCDetails)1