Search in sources :

Example 1 with ExternalServiceToInternalService

use of org.onap.so.db.catalog.beans.ExternalServiceToInternalService in project so by onap.

the class CatalogDbClientTest method testFindExternalToInternalServiceByServiceName.

@Test
public void testFindExternalToInternalServiceByServiceName() {
    ExternalServiceToInternalService externalServiceToInternalService = client.findExternalToInternalServiceByServiceName("MySpecialServiceName");
    assertNotNull(externalServiceToInternalService);
    assertNotNull(externalServiceToInternalService.getServiceName());
    assertNotNull(externalServiceToInternalService.getServiceModelUUID());
    assertEquals("MySpecialServiceName", externalServiceToInternalService.getServiceName());
}
Also used : ExternalServiceToInternalService(org.onap.so.db.catalog.beans.ExternalServiceToInternalService) Test(org.junit.Test) CatalogDbAdapterBaseTest(org.onap.so.adapters.catalogdb.CatalogDbAdapterBaseTest)

Example 2 with ExternalServiceToInternalService

use of org.onap.so.db.catalog.beans.ExternalServiceToInternalService in project so by onap.

the class CatalogDbClientTest method testFindExternalToInternalServiceByServiceNameNotFound.

@Test
public void testFindExternalToInternalServiceByServiceNameNotFound() {
    ExternalServiceToInternalService externalServiceToInternalService = client.findExternalToInternalServiceByServiceName("Not_Found");
    assertNull(externalServiceToInternalService);
}
Also used : ExternalServiceToInternalService(org.onap.so.db.catalog.beans.ExternalServiceToInternalService) Test(org.junit.Test) CatalogDbAdapterBaseTest(org.onap.so.adapters.catalogdb.CatalogDbAdapterBaseTest)

Aggregations

Test (org.junit.Test)2 CatalogDbAdapterBaseTest (org.onap.so.adapters.catalogdb.CatalogDbAdapterBaseTest)2 ExternalServiceToInternalService (org.onap.so.db.catalog.beans.ExternalServiceToInternalService)2