Search in sources :

Example 1 with JDBCVirtualHost

use of org.apache.qpid.server.virtualhost.jdbc.JDBCVirtualHost in project qpid-broker-j by apache.

the class JDBCMessageStoreTest method createVirtualHost.

@Override
protected VirtualHost createVirtualHost() {
    _connectionURL = "jdbc:derby:memory:/" + getTestName();
    final JDBCVirtualHost jdbcVirtualHost = mock(JDBCVirtualHost.class);
    when(jdbcVirtualHost.getConnectionUrl()).thenReturn(_connectionURL + ";create=true");
    when(jdbcVirtualHost.getUsername()).thenReturn("test");
    when(jdbcVirtualHost.getPassword()).thenReturn("pass");
    when(jdbcVirtualHost.getTableNamePrefix()).thenReturn(TEST_TABLE_PREFIX);
    return jdbcVirtualHost;
}
Also used : JDBCVirtualHost(org.apache.qpid.server.virtualhost.jdbc.JDBCVirtualHost)

Aggregations

JDBCVirtualHost (org.apache.qpid.server.virtualhost.jdbc.JDBCVirtualHost)1