diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-09-11 10:57:39 -0400 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-09-12 11:01:57 -0400 |
commit | aee6aa9b24d9358224ddc97d701ac0b4753628bc (patch) | |
tree | 89c7a91cfced1858428c048ec7c884c9c4a2295f /src/test/java/org/onap/pomba/contextbuilder/sdc/test | |
parent | b6367a56b86c0d1958eb67404da516e74d81c81f (diff) |
Update SDC Context Builder to use APIv1
Issue-ID: LOG-448
The changes to adapt to pomba-audit-common-1.3.1-SNAPSHOT are in
pom.xml, ToscaModelConverter.java and SDCContextBuilderTest.java.
The other changes are just for whitespace on line length warnings that
were issued by the ONAP audit tools.
Change-Id: Ied25e9e186776d8b36f30d0e80484af8d057da35
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'src/test/java/org/onap/pomba/contextbuilder/sdc/test')
3 files changed, 7 insertions, 3 deletions
diff --git a/src/test/java/org/onap/pomba/contextbuilder/sdc/test/JerseyConfigurationTest.java b/src/test/java/org/onap/pomba/contextbuilder/sdc/test/JerseyConfigurationTest.java index f10ac09..d1c09e0 100644 --- a/src/test/java/org/onap/pomba/contextbuilder/sdc/test/JerseyConfigurationTest.java +++ b/src/test/java/org/onap/pomba/contextbuilder/sdc/test/JerseyConfigurationTest.java @@ -15,6 +15,7 @@ * limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.contextbuilder.sdc.test;
import static org.junit.Assert.assertEquals;
diff --git a/src/test/java/org/onap/pomba/contextbuilder/sdc/test/SDCContextConfigTest.java b/src/test/java/org/onap/pomba/contextbuilder/sdc/test/SDCContextConfigTest.java index a02fffd..f760255 100644 --- a/src/test/java/org/onap/pomba/contextbuilder/sdc/test/SDCContextConfigTest.java +++ b/src/test/java/org/onap/pomba/contextbuilder/sdc/test/SDCContextConfigTest.java @@ -15,6 +15,7 @@ * limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.contextbuilder.sdc.test;
import static org.junit.Assert.assertEquals;
@@ -28,7 +29,7 @@ public class SDCContextConfigTest { @Test
public void testSDCContextConfig() throws Exception {
- SDCContextConfig sdcContextConfig= new SDCContextConfig();
+ SDCContextConfig sdcContextConfig = new SDCContextConfig();
sdcContextConfig.setUser("pomba");
sdcContextConfig.setAsdcAddress("10.69.100.139");
diff --git a/src/test/java/org/onap/pomba/contextbuilder/sdc/test/ToscaBuildConfigTest.java b/src/test/java/org/onap/pomba/contextbuilder/sdc/test/ToscaBuildConfigTest.java index a346dd3..b865dc1 100644 --- a/src/test/java/org/onap/pomba/contextbuilder/sdc/test/ToscaBuildConfigTest.java +++ b/src/test/java/org/onap/pomba/contextbuilder/sdc/test/ToscaBuildConfigTest.java @@ -15,10 +15,12 @@ * limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.contextbuilder.sdc.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
+
import org.junit.Test;
import org.onap.pomba.contextbuilder.sdc.ToscaBuilderConfig;
@@ -29,7 +31,7 @@ public class ToscaBuildConfigTest { public void testToscaBuilderConfig() throws Exception {
String urlTemplate = "/sdc/v1/catalog/services/e9851a43-c068-4eb2-9fe7-2d123bd94ff0/toscaModel";
- ToscaBuilderConfig configTest= new ToscaBuilderConfig();
+ ToscaBuilderConfig configTest = new ToscaBuilderConfig();
configTest.setCsarFilePrefix("csar-");
configTest.setCsarFileSuffix(".zip");
configTest.setArtifactType("TOSCA_CSAR");
@@ -42,7 +44,7 @@ public class ToscaBuildConfigTest { assertEquals(urlTemplate, configTest.getUrlTemplate());
assertEquals("/src/test/toscaModel.zip", configTest.getTestToscaCsarFile());
- String str= configTest.toString();
+ String str = configTest.toString();
assertTrue(str.contains("TOSCA_CSAR"));
assertTrue(str.contains("csar-"));
assertTrue(str.contains(".zip"));
|