@Test
public void resolvesCustomDbTypes() throws Exception
{
GenericDbConfig dbConfig = muleContext.getRegistry().lookupObject("dbConfig");
DbTypeManager dbTypeManager = dbConfig.getDbTypeManager();
DbConnectionFactory connectionFactory = dbConfig.getConnectionFactory();
DbConnection connection = connectionFactory.createConnection(TransactionalAction.NOT_SUPPORTED);
try
{
assertResolvesType(connection, dbTypeManager, CUSTOM_TYPE_NAME1, CUSTOM_TYPE_ID1);
assertResolvesType(connection, dbTypeManager, CUSTOM_TYPE_NAME2, CUSTOM_TYPE_ID2);
}
finally
{
connectionFactory.releaseConnection(connection);
}
}