Search in sources :

Example 6 with MetadataRepository

use of org.jboss.jca.core.spi.mdr.MetadataRepository in project wildfly by wildfly.

the class InflowTestCase method testMetadataConfiguration.

@Test
public void testMetadataConfiguration() throws Throwable {
    ServiceController<?> controller = serviceContainer.getService(ConnectorServices.IRONJACAMAR_MDR);
    assertNotNull(controller);
    MetadataRepository repository = (MetadataRepository) controller.getValue();
    assertNotNull(repository);
    Set<String> ids = repository.getResourceAdapters();
    assertNotNull(ids);
    String piId = ids.iterator().next();
    assertNotNull(piId);
    assertNotNull(repository.getResourceAdapter(piId));
}
Also used : MetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository) Test(org.junit.Test)

Example 7 with MetadataRepository

use of org.jboss.jca.core.spi.mdr.MetadataRepository in project wildfly by wildfly.

the class NegativeValidationASTestCase method testMetadataConfiguration.

@Test
public void testMetadataConfiguration() throws Throwable {
    ServiceController<?> controller = serviceContainer.getService(ConnectorServices.IRONJACAMAR_MDR);
    assertNotNull(controller);
    MetadataRepository repository = (MetadataRepository) controller.getValue();
    assertNotNull(repository);
    Set<String> ids = repository.getResourceAdapters();
    assertNotNull(ids);
    //assertEquals(1, ids.size());
    String piId = ids.iterator().next();
    assertNotNull(piId);
    assertNotNull(repository.getResourceAdapter(piId));
}
Also used : MetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository) Test(org.junit.Test)

Example 8 with MetadataRepository

use of org.jboss.jca.core.spi.mdr.MetadataRepository in project wildfly by wildfly.

the class PositiveValidationTestCase method testMetadataConfiguration.

@Test
public void testMetadataConfiguration() throws Throwable {
    ServiceController<?> controller = serviceContainer.getService(ConnectorServices.IRONJACAMAR_MDR);
    assertNotNull(controller);
    MetadataRepository repository = (MetadataRepository) controller.getValue();
    assertNotNull(repository);
    Set<String> ids = repository.getResourceAdapters();
    assertNotNull(ids);
    String piId = ids.iterator().next();
    assertNotNull(piId);
    assertNotNull(repository.getResourceAdapter(piId));
}
Also used : MetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository) Test(org.junit.Test)

Aggregations

MetadataRepository (org.jboss.jca.core.spi.mdr.MetadataRepository)8 Test (org.junit.Test)8 ConnectorImpl (org.jboss.jca.common.metadata.spec.ConnectorImpl)2