aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/pomba/contextbuilder/sdc/model
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2018-09-11 10:57:39 -0400
committerTait,Trevor(rt0435) <rtait@amdocs.com>2018-09-12 11:01:57 -0400
commitaee6aa9b24d9358224ddc97d701ac0b4753628bc (patch)
tree89c7a91cfced1858428c048ec7c884c9c4a2295f /src/test/java/org/onap/pomba/contextbuilder/sdc/model
parentb6367a56b86c0d1958eb67404da516e74d81c81f (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/model')
-rw-r--r--src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/ArtifactInfoTest.java4
-rw-r--r--src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/SDCContextRequestTest.java8
2 files changed, 9 insertions, 3 deletions
diff --git a/src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/ArtifactInfoTest.java b/src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/ArtifactInfoTest.java
index ff4584c..01902f0 100644
--- a/src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/ArtifactInfoTest.java
+++ b/src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/ArtifactInfoTest.java
@@ -15,9 +15,11 @@
* limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.contextbuilder.sdc.model.test;
import static org.junit.Assert.assertEquals;
+
import org.junit.Test;
import org.onap.pomba.contextbuilder.sdc.model.ArtifactInfo;
import org.openecomp.sdc.api.notification.IArtifactInfo;
@@ -38,7 +40,7 @@ public class ArtifactInfoTest {
artifact.setArtifactUUID("ae04b88e-e2ee-4ce9-a62d-3d08cf0f46db");
artifact.setArtifactVersion("artifactVersion");
- IArtifactInfo generatedArtifactTest=(IArtifactInfo)artifact;
+ IArtifactInfo generatedArtifactTest = (IArtifactInfo)artifact;
artifact.setGeneratedArtifact(generatedArtifactTest);
assertEquals(artifactType, artifact.getArtifactType());
diff --git a/src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/SDCContextRequestTest.java b/src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/SDCContextRequestTest.java
index e7ace4b..976af8f 100644
--- a/src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/SDCContextRequestTest.java
+++ b/src/test/java/org/onap/pomba/contextbuilder/sdc/model/test/SDCContextRequestTest.java
@@ -15,6 +15,7 @@
* limitations under the License.
* ============LICENSE_END=====================================================
*/
+
package org.onap.pomba.contextbuilder.sdc.model.test;
import static org.junit.Assert.assertEquals;
@@ -30,11 +31,14 @@ public class SDCContextRequestTest {
@Test
public void testSDCContextRequest() throws Exception {
- String authorization = "Basic " + Base64.getEncoder().encodeToString(("admin" + ":" + "admin").getBytes(StandardCharsets.UTF_8));
+ String authorization = "Basic "
+ + Base64.getEncoder()
+ .encodeToString(("admin" + ":" + "admin")
+ .getBytes(StandardCharsets.UTF_8));
String fromAppId = "POMBA";
String transactionId = UUID.randomUUID().toString();
String serviceInstanceId = "b06270ab-99e6-4a58-9bc0-db2df5c36f4d";
- String modelVersionId= "e9851a43-c068-4eb2-9fe7-2d123bd94ff0";
+ String modelVersionId = "e9851a43-c068-4eb2-9fe7-2d123bd94ff0";
String modelInvariantId = "4fd21763-23ed-4f69-8654-e121626df327" ;
SDCContextRequest sdcContext = new SDCContextRequest(null, authorization, fromAppId, transactionId,