use of org.jboss.as.test.integration.jca.rar.MultipleResourceAdapter3 in project wildfly by wildfly.
the class LongRunningThreadsCheckTestCase method testWmWithLongRunningThreads.
/**
* Tests work manager with long-running-threads set
*
* @throws Throwable Thrown if case of an error
*/
@Test
public void testWmWithLongRunningThreads() throws Throwable {
assertNotNull("A2 not found", adminObject2);
MultipleAdminObject1Impl impl = (MultipleAdminObject1Impl) adminObject2;
MultipleResourceAdapter3 adapter = (MultipleResourceAdapter3) impl.getResourceAdapter();
assertNotNull(adapter);
NamedWorkManager manager = adapter.getWorkManager();
assertEquals(wm + 2, manager.getName());
assertFalse(manager.getShortRunningThreadPool().equals(manager.getLongRunningThreadPool()));
}
use of org.jboss.as.test.integration.jca.rar.MultipleResourceAdapter3 in project wildfly by wildfly.
the class LongRunningThreadsCheckTestCase method testWmWithoutLongRunningThreads.
/**
* Tests work manager without long-running-threads set
*
* @throws Throwable Thrown if case of an error
*/
@Test
public void testWmWithoutLongRunningThreads() throws Throwable {
assertNotNull("A1 not found", adminObject1);
MultipleAdminObject1Impl impl = (MultipleAdminObject1Impl) adminObject1;
MultipleResourceAdapter3 adapter = (MultipleResourceAdapter3) impl.getResourceAdapter();
assertNotNull(adapter);
NamedWorkManager manager = adapter.getWorkManager();
assertEquals(wm + 1, manager.getName());
assertEquals(manager.getShortRunningThreadPool(), manager.getLongRunningThreadPool());
}
Aggregations