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