diff options
Diffstat (limited to 'catalog-model/src/test')
-rw-r--r-- | catalog-model/src/test/java/org/openecomp/sdc/be/model/ConsumerDefinitionTest.java | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ConsumerDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ConsumerDefinitionTest.java index 86ed903df6..c3967ae86e 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ConsumerDefinitionTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ConsumerDefinitionTest.java @@ -16,19 +16,27 @@ * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= + * Modifications Copyright (C) 2020, Nordix Foundation. */ + package org.openecomp.sdc.be.model; -import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; -import static org.junit.Assert.assertThat; +import static org.assertj.core.api.Assertions.assertThat; import org.junit.Test; import org.openecomp.sdc.be.datatypes.elements.ConsumerDataDefinition; public class ConsumerDefinitionTest { + + @Test + public void testCtor() { + final ConsumerDefinition testSubject = new ConsumerDefinition(); + assertThat(testSubject).isNotNull().isInstanceOf(ConsumerDefinition.class); + } + @Test - public void shouldHaveValidGettersAndSetters() { - assertThat(ConsumerDataDefinition.class, - hasValidGettersAndSettersExcluding("empty", "ownerIdIfEmpty", "type", "version")); + public void testConsumerDataDefinition_clone() { + final ConsumerDefinition testSubject = new ConsumerDefinition(new ConsumerDataDefinition()); + assertThat(testSubject).isNotNull().isInstanceOf(ConsumerDefinition.class); } }
\ No newline at end of file |