X-Git-Url: https://gerrit.onap.org/r/gitweb?p=cps.git;a=blobdiff_plain;f=cps-ncmp-service%2Fsrc%2Ftest%2Fgroovy%2Forg%2Fonap%2Fcps%2Fncmp%2Fapi%2Fmodels%2FCmHandleRegistrationResponseSpec.groovy;h=c5ef2f446dd2f02ef3bb7b234eb1fe264209c21d;hp=902ba4e5d001a0c8e27787c97a2675bbcec117ca;hb=1f8074851ba4ea3263a2beb15436ab9085a53580;hpb=e0c5ae5aa0fdfbc2bd1cffb3d7e605b4819b00cd diff --git a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/models/CmHandleRegistrationResponseSpec.groovy b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/models/CmHandleRegistrationResponseSpec.groovy index 902ba4e5d..c5ef2f446 100644 --- a/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/models/CmHandleRegistrationResponseSpec.groovy +++ b/cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/models/CmHandleRegistrationResponseSpec.groovy @@ -42,7 +42,7 @@ class CmHandleRegistrationResponseSpec extends Specification { def 'Failed Cm Handle Registration Response: for unexpected exception'() { when: 'CMHandle response is created for an unexpected exception' def cmHandleRegistrationResponse = - CmHandleRegistrationResponse.createFailureResponse('cmHandle', new RuntimeException('unexpected error')) + CmHandleRegistrationResponse.createFailureResponse('cmHandle', new Exception('unexpected error')) then: 'the response is created with expected value' with(cmHandleRegistrationResponse) { assert it.registrationError == RegistrationError.UNKNOWN_ERROR