summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/sdc/dcae/composition/services/ResourceTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/onap/sdc/dcae/composition/services/ResourceTest.java')
-rw-r--r--src/test/java/org/onap/sdc/dcae/composition/services/ResourceTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/org/onap/sdc/dcae/composition/services/ResourceTest.java b/src/test/java/org/onap/sdc/dcae/composition/services/ResourceTest.java
index e1415f4..7fb24c2 100644
--- a/src/test/java/org/onap/sdc/dcae/composition/services/ResourceTest.java
+++ b/src/test/java/org/onap/sdc/dcae/composition/services/ResourceTest.java
@@ -2,6 +2,8 @@ package org.onap.sdc.dcae.composition.services;
import org.junit.Test;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanConstructor;
+import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCodeFor;
import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
import static org.junit.Assert.*;
@@ -11,4 +13,14 @@ public class ResourceTest {
public void shouldHaveValidGettersAndSetters() {
assertThat(Resource.class, hasValidGettersAndSetters());
}
+
+ @Test
+ public void testHasValidConstructor() {
+ assertThat(Resource.class, hasValidBeanConstructor());
+ }
+
+ @Test
+ public void checkHashCodeFor() {
+ assertThat(Resource.class, hasValidBeanHashCodeFor());
+ }
} \ No newline at end of file