-/*-
- * ============LICENSE_START=======================================================
- * ONAP - SO
- * ================================================================================
- * Copyright (C) 2018 Huawei Intellectual Property. All rights reserved.
- * ================================================================================
- * 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 org.junit.Test;
-
-public class MsoCloudifyExceptionTest {
-
- MsoCloudifyException msoCloudifyException = new MsoCloudifyException(0, "test", "test");
-
- @Test
- public void setPendingWorkflow() throws Exception {
- msoCloudifyException.setPendingWorkflow(true);
- }
-
-}
\ No newline at end of file
+/*\r
+* ============LICENSE_START=======================================================\r
+* ONAP : SO\r
+* ================================================================================\r
+* Copyright 2018 TechMahindra\r
+*=================================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+*/\r
+\r
+package org.openecomp.mso.cloudify.exceptions;\r
+\r
+import static org.junit.Assert.*;\r
+\r
+import org.junit.Test;\r
+\r
+public class MsoCloudifyExceptionTest {\r
+ \r
+ @Test\r
+ public void test() {\r
+ Exception e = null;\r
+ boolean pendingWorkflow=true;\r
+ MsoCloudifyException mce=new MsoCloudifyException(200, "message", "detail");\r
+ MsoCloudifyException mcl=new MsoCloudifyException(200, "message", "detail", e);\r
+ mce.setPendingWorkflow(pendingWorkflow);\r
+ assert(mcl.toString()!=null);\r
+ }\r
+\r
+}\r
-/*-
- * ============LICENSE_START=======================================================
- * ONAP - SO
- * ================================================================================
- * Copyright (C) 2018 Huawei Intellectual Property. All rights reserved.
- * ================================================================================
- * 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 org.junit.Test;
-import org.openecomp.mso.cloudify.v3.model.Execution;
-
-public class MsoCloudifyTimeoutTest {
-
- MsoCloudifyTimeout msoCloudifyTimeout = new MsoCloudifyTimeout(new Execution());
-
- @Test
- public void getExecution() throws Exception {
- msoCloudifyTimeout.getExecution();
- }
-
-}
\ No newline at end of file
+/*\r
+* ============LICENSE_START=======================================================\r
+* ONAP : SO\r
+* ================================================================================\r
+* Copyright 2018 TechMahindra\r
+*=================================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+*/\r
+package org.openecomp.mso.cloudify.exceptions;\r
+\r
+import static org.junit.Assert.*;\r
+import static org.mockito.Mockito.mock;\r
+\r
+import org.junit.Test;\r
+import org.openecomp.mso.cloudify.v3.model.Execution;\r
+\r
+public class MsoCloudifyTimeoutTest {\r
+ \r
+ @Test\r
+ public void test() {\r
+ Execution execution=mock(Execution.class);\r
+ MsoCloudifyTimeout mct=new MsoCloudifyTimeout(execution);\r
+ mct.getExecution();\r
+ assert(mct.toString()!=null);\r
+ }\r
+\r
+}\r