aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-heat-lib/src
diff options
context:
space:
mode:
authormojahidi <mojahidul.islam@amdocs.com>2018-05-15 11:59:53 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-05-15 10:12:38 +0000
commitdcc03a35879a1a194500b2e0b5be32f34d8210b6 (patch)
treeabd2b750fd5ceef917674efd8039fa12cfa03dfb /openecomp-be/lib/openecomp-heat-lib/src
parente69a9895051c7115d0a201991c707fbef42e77e4 (diff)
Handle logger.debug(, exception)
Removed logger.debug(, exception) from code Change-Id: I92a10d4581511e2cd0c073a9519dd161c4abe570 Issue-ID: SDC-836 Signed-off-by: mojahidi <mojahidul.islam@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-heat-lib/src')
-rw-r--r--openecomp-be/lib/openecomp-heat-lib/src/test/java/org/openecomp/sdc/heat/datatypes/model/HeatOrchestrationTemplateTest.java34
1 files changed, 11 insertions, 23 deletions
diff --git a/openecomp-be/lib/openecomp-heat-lib/src/test/java/org/openecomp/sdc/heat/datatypes/model/HeatOrchestrationTemplateTest.java b/openecomp-be/lib/openecomp-heat-lib/src/test/java/org/openecomp/sdc/heat/datatypes/model/HeatOrchestrationTemplateTest.java
index af8ce15c41..bc4bb63e89 100644
--- a/openecomp-be/lib/openecomp-heat-lib/src/test/java/org/openecomp/sdc/heat/datatypes/model/HeatOrchestrationTemplateTest.java
+++ b/openecomp-be/lib/openecomp-heat-lib/src/test/java/org/openecomp/sdc/heat/datatypes/model/HeatOrchestrationTemplateTest.java
@@ -1,31 +1,25 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
+/*
+ * Copyright © 2018 European Support Limited
+ *
* 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.sdc.heat.datatypes.model;
import org.junit.Assert;
import org.junit.Test;
-import org.openecomp.sdc.logging.api.Logger;
-import org.openecomp.sdc.logging.api.LoggerFactory;
-import org.onap.sdc.tosca.services.YamlUtil;
+import org.onap.sdc.tosca.services.YamlUtil;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
@@ -34,9 +28,6 @@ import java.util.List;
import java.util.Map;
public class HeatOrchestrationTemplateTest {
-
- private final Logger log = (Logger) LoggerFactory.getLogger(this.getClass().getName());
-
@Test
public void testYamlToServiceTemplateObj() throws IOException {
YamlUtil yamlUtil = new YamlUtil();
@@ -48,7 +39,7 @@ public class HeatOrchestrationTemplateTest {
}
@Test
- public void createHotTemplate() {
+ public void createHotTemplate() throws Exception{
HeatOrchestrationTemplate template = new HeatOrchestrationTemplate();
template.setHeat_template_version("2016-04-14");
template.setDescription("test description for hot template");
@@ -100,13 +91,10 @@ public class HeatOrchestrationTemplateTest {
YamlUtil yamlUtil = new YamlUtil();
String yml = yamlUtil.objectToYaml(template);
Assert.assertNotNull(yml);
- try {
- HeatOrchestrationTemplate heatOrchestrationTemplate =
+ HeatOrchestrationTemplate heatOrchestrationTemplate;
+ heatOrchestrationTemplate =
yamlUtil.yamlToObject(yml, HeatOrchestrationTemplate.class);
- Assert.assertNotNull(heatOrchestrationTemplate);
- } catch (Exception ignored) {
- log.debug("",ignored);
- }
+ Assert.assertNotNull(heatOrchestrationTemplate);
}
private Map<String, Parameter> createParameters() {