Junit for mso.cloudify.exceptions
Junit for:
1.MsoCloudifyException.java
2.MsoCloudify.java
3.MsoCloudifyTimeout.java
4.MsoCloudifyWorkflowException.java
Sonar-Link:
https://sonar.onap.org/code?id=org.onap.so%3Aso&selected=org.onap.so.adapters%3Amso-adapter-utils%3Asrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fmso%2Fcloudify%2Fexceptions
Change-Id: Ic464a5205c64a5f582051a3c6b2045db4379fb4d
Issue-ID: SO-528
Signed-off-by: Sumapriya <SS00493505@techmahindra.com>
diff --git a/adapters/mso-adapter-utils/bin/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyExceptionTest.class b/adapters/mso-adapter-utils/bin/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyExceptionTest.class
new file mode 100644
index 0000000..463cbda
--- /dev/null
+++ b/adapters/mso-adapter-utils/bin/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyExceptionTest.class
Binary files differ
diff --git a/adapters/mso-adapter-utils/bin/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyTimeoutTest.class b/adapters/mso-adapter-utils/bin/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyTimeoutTest.class
new file mode 100644
index 0000000..483d76f
--- /dev/null
+++ b/adapters/mso-adapter-utils/bin/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyTimeoutTest.class
Binary files differ
diff --git a/adapters/mso-adapter-utils/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyTest.java b/adapters/mso-adapter-utils/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyTest.java
new file mode 100644
index 0000000..098a3dc
--- /dev/null
+++ b/adapters/mso-adapter-utils/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyTest.java
@@ -0,0 +1,35 @@
+/*
+* ============LICENSE_START=======================================================
+* ONAP : SO
+* ================================================================================
+* Copyright 2018 TechMahindra
+*=================================================================================
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+* ============LICENSE_END=========================================================
+*/
+package org.openecomp.mso.cloudify.exceptions;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class MsoCloudifyTest {
+
+ @Test
+ public void test() {
+ MsoBlueprintAlreadyExists mbae=new MsoBlueprintAlreadyExists("blueprintId", "cloud");
+ MsoCloudifyManagerNotFound mcm=new MsoCloudifyManagerNotFound("cloudSiteId");
+ MsoDeploymentAlreadyExists mdae=new MsoDeploymentAlreadyExists("deploymentId", "cloud");
+ }
+
+}
diff --git a/adapters/mso-adapter-utils/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyWorkflowExceptionTest.java b/adapters/mso-adapter-utils/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyWorkflowExceptionTest.java
new file mode 100644
index 0000000..34f0396
--- /dev/null
+++ b/adapters/mso-adapter-utils/src/test/java/org/openecomp/mso/cloudify/exceptions/MsoCloudifyWorkflowExceptionTest.java
@@ -0,0 +1,36 @@
+/*
+* ============LICENSE_START=======================================================
+* ONAP : SO
+* ================================================================================
+* Copyright 2018 TechMahindra
+*=================================================================================
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+* ============LICENSE_END=========================================================
+*/
+package org.openecomp.mso.cloudify.exceptions;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class MsoCloudifyWorkflowExceptionTest {
+
+ @Test
+ public void test() {
+ MsoCloudifyWorkflowException mcw=new MsoCloudifyWorkflowException("message", "id", "workflowId", "workflowStatus");
+ mcw.getWorkflowStatus();
+ assertFalse(mcw.isWorkflowStillRunning());
+
+ }
+
+}