diff options
Diffstat (limited to 'catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UIConstraintTest.java')
-rw-r--r-- | catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UIConstraintTest.java | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UIConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UIConstraintTest.java index e95fc85833..7fd473ada3 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UIConstraintTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UIConstraintTest.java @@ -19,14 +19,33 @@ */ package org.openecomp.sdc.be.ui.model; -import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; -import static org.hamcrest.MatcherAssert.assertThat; - +import org.assertj.core.api.Assertions; import org.junit.Test; public class UIConstraintTest { + + private UIConstraint createTestSubject() { + return new UIConstraint(); + } + @Test - public void shouldHaveValidGettersAndSetters() { - assertThat(UIConstraint.class, hasValidGettersAndSetters()); + public void testCtor() throws Exception { + final UIConstraint testSubject = createTestSubject(); + Assertions.assertThat(testSubject).isNotNull().isInstanceOf(UIConstraint.class); } + + @Test + public void testCtorX4() throws Exception { + final UIConstraint testSubject = + new UIConstraint("servicePropertyName", "constraintOperator", "sourceType", "value"); + Assertions.assertThat(testSubject).isNotNull().isInstanceOf(UIConstraint.class); + } + + @Test + public void testCtorX5() throws Exception { + final UIConstraint testSubject = + new UIConstraint("servicePropertyName", "constraintOperator", "sourceType", "sourceName", "value"); + Assertions.assertThat(testSubject).isNotNull().isInstanceOf(UIConstraint.class); + } + }
\ No newline at end of file |