Search in sources :

Example 11 with ModelType

use of org.onap.so.serviceinstancebeans.ModelType in project so by onap.

the class RequestHandlerUtilsUnitTest method getModelTypeAddMembersTest.

@Test
public void getModelTypeAddMembersTest() throws ApiException {
    ModelType modelTypeExpected = ModelType.instanceGroup;
    ModelType modelTypeResult = requestHandler.getModelType(Action.addMembers, null);
    assertEquals(modelTypeResult, modelTypeExpected);
}
Also used : ModelType(org.onap.so.serviceinstancebeans.ModelType) Test(org.junit.Test)

Example 12 with ModelType

use of org.onap.so.serviceinstancebeans.ModelType in project so by onap.

the class RequestHandlerUtilsUnitTest method getModelTypeInPlaceSoftwareUpdateTest.

@Test
public void getModelTypeInPlaceSoftwareUpdateTest() throws ApiException {
    ModelType modelTypeExpected = ModelType.vnf;
    ModelType modelTypeResult = requestHandler.getModelType(Action.inPlaceSoftwareUpdate, null);
    assertEquals(modelTypeResult, modelTypeExpected);
}
Also used : ModelType(org.onap.so.serviceinstancebeans.ModelType) Test(org.junit.Test)

Aggregations

ModelType (org.onap.so.serviceinstancebeans.ModelType)12 Test (org.junit.Test)5 ValidateException (org.onap.so.apihandlerinfra.exceptions.ValidateException)3 ValidationException (org.onap.so.exceptions.ValidationException)2 ModelInfo (org.onap.so.serviceinstancebeans.ModelInfo)2 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 RequestClientParameter (org.onap.so.apihandler.common.RequestClientParameter)1 ApiException (org.onap.so.apihandlerinfra.exceptions.ApiException)1 RequestDbFailureException (org.onap.so.apihandlerinfra.exceptions.RequestDbFailureException)1 BpmnRequestBuilder (org.onap.so.apihandlerinfra.infra.rest.BpmnRequestBuilder)1 CloudConfigurationNotFoundException (org.onap.so.apihandlerinfra.infra.rest.exception.CloudConfigurationNotFoundException)1 ErrorLoggerInfo (org.onap.so.apihandlerinfra.logging.ErrorLoggerInfo)1 InfraActiveRequests (org.onap.so.db.request.beans.InfraActiveRequests)1 CloudConfiguration (org.onap.so.serviceinstancebeans.CloudConfiguration)1 RelatedInstance (org.onap.so.serviceinstancebeans.RelatedInstance)1 RelatedInstanceList (org.onap.so.serviceinstancebeans.RelatedInstanceList)1 RequestDetails (org.onap.so.serviceinstancebeans.RequestDetails)1 RequestInfo (org.onap.so.serviceinstancebeans.RequestInfo)1 RequestReferences (org.onap.so.serviceinstancebeans.RequestReferences)1