--- /dev/null
+package org.openecomp.sdc.be.datamodel;
+
+import org.junit.Test;
+
+import java.util.Set;
+import java.util.*;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class ForwardingPathsTest {
+
+ @Test
+ public void testForwardingPaths() {
+ ForwardingPaths testForwardingPaths = new ForwardingPaths();
+ Set<String> path= new HashSet<>(Arrays.asList("test"));
+ testForwardingPaths.setForwardingPathToDelete(path);
+ Set<String> getPath = testForwardingPaths.getForwardingPathToDelete();
+ assertThat(getPath).isEqualTo(path);
+ }
+
+}
\ No newline at end of file
result = testSubject.getName();
}
+ @Test
+ public void testConstructorWith3Parameters() throws Exception {
+ NameIdPair testSubject;
+ String result;
+
+ // default test
+ testSubject = new NameIdPair("", "","");
+ result = testSubject.getOwnerId();
+ }
+
@Test
public void testSetName() throws Exception {
NameIdPair testSubject;
testSubject.init(nameIdPair);
}
+ @Test
+ public void testInitWithObject() throws Exception {
+ NameIdPairWrapper testSubject;
+ NameIdPair nameIdPair = new NameIdPair("mock", "mock");
+
+ // default test
+ testSubject = new NameIdPairWrapper(nameIdPair);
+ }
+
@Test
public void testGetId() throws Exception {
NameIdPairWrapper testSubject;
--- /dev/null
+package org.openecomp.sdc.be.datamodel;
+
+import org.junit.Test;
+
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class ServiceRelationsTest {
+
+ private NameIdPair getNameIdPairWrapper() {
+ return new NameIdPair("mock", "mock");
+ }
+
+ @Test
+ public void testServiceRelations() {
+
+ NameIdPairWrapper testNameIdPairWrapper;
+ NameIdPair nameIdPair = new NameIdPair("mock", "mock");
+
+ testNameIdPairWrapper = new NameIdPairWrapper();
+ testNameIdPairWrapper.init(nameIdPair);
+
+ Set<NameIdPairWrapper> result = new HashSet<NameIdPairWrapper>();
+ result.add(testNameIdPairWrapper);
+
+
+ ServiceRelations testServiceRelations = new ServiceRelations();
+ ServiceRelations testServiceRelationsWithRelations = new ServiceRelations(result);
+ testServiceRelations.setRelations(result);
+ Set<NameIdPairWrapper> getResult = testServiceRelations.getRelations();
+ assertThat(getResult).isEqualTo(result);
+ }
+
+}
\ No newline at end of file