summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/test
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2020-03-24 17:32:06 +0000
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-03-26 06:42:22 +0000
commit9f8477bc49755f9b1e417266624bbc04958e8b9b (patch)
treeb515106c327f4bf9721023bcf25f68b801c24c18 /catalog-model/src/test
parent29ef7edbf694dea1a33a7ddd97b7250d2ec1f61e (diff)
Increase test coverage
Change-Id: Ie28e36012be1313efa0082b34c0b36c325dc1b76 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2833
Diffstat (limited to 'catalog-model/src/test')
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/ConsumerDefinitionTest.java18
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