Search in sources :

Example 1 with MultipleResourceAdapter2

use of org.jboss.as.test.integration.jca.rar.MultipleResourceAdapter2 in project wildfly by wildfly.

the class CustomBootstrapContextTestCase method testConfiguration.

/**
     * Test configuration
     *
     * @throws Throwable Thrown if case of an error
     */
@Test
public void testConfiguration() throws Throwable {
    assertNotNull("CF1 not found", connectionFactory1);
    assertNotNull("AO1 not found", adminObject1);
    MultipleAdminObject1Impl impl = (MultipleAdminObject1Impl) adminObject1;
    MultipleResourceAdapter2 adapter = (MultipleResourceAdapter2) impl.getResourceAdapter();
    assertNotNull(adapter);
    assertEquals(wm, adapter.getWorkManagerName());
    assertEquals(ctx, adapter.getBootstrapContextName());
}
Also used : MultipleAdminObject1Impl(org.jboss.as.test.integration.jca.rar.MultipleAdminObject1Impl) MultipleResourceAdapter2(org.jboss.as.test.integration.jca.rar.MultipleResourceAdapter2) Test(org.junit.Test)

Aggregations

MultipleAdminObject1Impl (org.jboss.as.test.integration.jca.rar.MultipleAdminObject1Impl)1 MultipleResourceAdapter2 (org.jboss.as.test.integration.jca.rar.MultipleResourceAdapter2)1 Test (org.junit.Test)1