diff options
author | Sanchez, Gabriel (gs882h) <gabriel.sanchez@amdocs.com> | 2019-01-30 14:04:35 +0000 |
---|---|---|
committer | Sanchez, Gabriel (gs882h) <gabriel.sanchez@amdocs.com> | 2019-01-30 15:48:22 +0000 |
commit | 0c40bcde9facc109ceb8dabb91156df2b4fb4129 (patch) | |
tree | af3b32aa18092c7ea6bb60005a6d503448a92297 /src/test/java/org/onap/schema/RelationshipSchemaValidatorTest.java | |
parent | df7904cca9c67ed7ce99e1d1d1c3a2c961a61445 (diff) |
Remove Multiplicity feature
The multiplicty feature is not working properly around relantionships
and demands more investigation in order to identify the issues.
In the future we might add this back.
For reference multiplicity was added under AAI-1197
Basically reversing the commit: d10a218c76633374f083f7a2802c198e93a6abae
Issue-ID: AAI-2124
Change-Id: I5d27b950841da08b00fbb422fb13136d43f0e3bd
Signed-off-by: Sanchez, Gabriel (gs882h) <gabriel.sanchez@amdocs.com>
Diffstat (limited to 'src/test/java/org/onap/schema/RelationshipSchemaValidatorTest.java')
-rw-r--r-- | src/test/java/org/onap/schema/RelationshipSchemaValidatorTest.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/test/java/org/onap/schema/RelationshipSchemaValidatorTest.java b/src/test/java/org/onap/schema/RelationshipSchemaValidatorTest.java index 7cc2e7f..11d42bf 100644 --- a/src/test/java/org/onap/schema/RelationshipSchemaValidatorTest.java +++ b/src/test/java/org/onap/schema/RelationshipSchemaValidatorTest.java @@ -27,9 +27,7 @@ import org.junit.Before; import org.junit.Test; import org.onap.crud.entity.Edge; import org.onap.crud.exception.CrudException; -import org.onap.crud.parser.EdgePayload; -import org.onap.schema.validation.RelationshipSchemaValidator; - +import org.onap.crud.service.EdgePayload; import org.junit.runner.RunWith; import org.mockito.junit.MockitoJUnitRunner; import org.onap.crud.OXMModelLoaderSetup; @@ -78,7 +76,7 @@ public class RelationshipSchemaValidatorTest extends OXMModelLoaderSetup{ RelationshipSchemaValidator.validateIncomingUpdatePayload(edge, version, payload); } catch (CrudException e) { assertEquals(400, e.getHttpStatus().getStatusCode()); - assertThat(e.getMessage(), is("Invalid Source/Target Urls")); + assertThat(e.getMessage(), is("Invalid Source Urls")); } } @@ -120,7 +118,7 @@ public class RelationshipSchemaValidatorTest extends OXMModelLoaderSetup{ RelationshipSchemaValidator.validateIncomingUpdatePayload(edge, version, payload); } catch (CrudException e) { assertEquals(400, e.getHttpStatus().getStatusCode()); - assertThat(e.getMessage(), is("Invalid Source/Target Urls")); + assertThat(e.getMessage(), is("Invalid Target Urls")); } } @@ -191,7 +189,7 @@ public class RelationshipSchemaValidatorTest extends OXMModelLoaderSetup{ RelationshipSchemaValidator.validateIncomingPatchPayload(edge, version, payload); } catch (CrudException e) { assertEquals(400, e.getHttpStatus().getStatusCode()); - assertThat(e.getMessage(), is("Invalid Source/Target Urls")); + assertThat(e.getMessage(), is("Invalid Source Urls")); } } @@ -234,7 +232,7 @@ public class RelationshipSchemaValidatorTest extends OXMModelLoaderSetup{ RelationshipSchemaValidator.validateIncomingPatchPayload(edge, version, payload); } catch (CrudException e) { assertEquals(400, e.getHttpStatus().getStatusCode()); - assertThat(e.getMessage(), is("Invalid Source/Target Urls")); + assertThat(e.getMessage(), is("Invalid Target Urls")); } } |