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));
}
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));
}
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));
}
Aggregations