diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/parameters/HeatParameterConversionTest.java')
-rw-r--r-- | openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/parameters/HeatParameterConversionTest.java | 58 |
1 files changed, 21 insertions, 37 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/parameters/HeatParameterConversionTest.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/parameters/HeatParameterConversionTest.java index 4feef0e094..5f2c3691c2 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/parameters/HeatParameterConversionTest.java +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/parameters/HeatParameterConversionTest.java @@ -1,7 +1,27 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T 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.sdc.translator.impl.heattotosca.parameters; -import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest; import org.junit.Test; +import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseResourceTranslationTest; public class HeatParameterConversionTest extends BaseResourceTranslationTest { @@ -15,40 +35,4 @@ public class HeatParameterConversionTest extends BaseResourceTranslationTest { testTranslation(); } - - /* - - private static final String MANIFEST_NAME = "MANIFEST.json"; - - @Test - public void testTranslate_parameters() throws IOException { - - - - HeatToToscaTranslator heatToToscaTranslator = HeatToToscaTranslatorFactory.getInstance().createInterface(); - URL url = this.getClass().getResource("/mock/heat/parameters"); - File manifestFile = new File(url.getPath()); - File[] files = manifestFile.listFiles(); - FileInputStream fis; - byte[] fileContent; - for (File file : files) { - fis = new FileInputStream(file); - fileContent = FileUtils.toByteArray(fis); - if (file.getName().equals(MANIFEST_NAME)) { - heatToToscaTranslator.addManifest(MANIFEST_NAME, new String(fileContent)); - } else { - heatToToscaTranslator.addFile(file.getName(), fileContent); - } - } - - TranslatorOutput translatorOutput = heatToToscaTranslator.translate(); - Assert.assertNotNull(translatorOutput); - File file = new File("Parameters.zip"); - FileOutputStream fos = new FileOutputStream(file); - fos.write(translatorOutput.getTranslationContent()); - fos.close(); - - } - */ - } |