From 9f8477bc49755f9b1e417266624bbc04958e8b9b Mon Sep 17 00:00:00 2001 From: vasraz Date: Tue, 24 Mar 2020 17:32:06 +0000 Subject: Increase test coverage Change-Id: Ie28e36012be1313efa0082b34c0b36c325dc1b76 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-2833 --- .../openecomp/sdc/be/model/ConsumerDefinitionTest.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'catalog-model/src/test/java/org') 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 -- cgit 1.2.3-korg