diff options
Diffstat (limited to 'src/test/java/org/onap/sdc/dcae/composition/restmodels/ruleeditor/RuleTest.java')
-rw-r--r-- | src/test/java/org/onap/sdc/dcae/composition/restmodels/ruleeditor/RuleTest.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/test/java/org/onap/sdc/dcae/composition/restmodels/ruleeditor/RuleTest.java b/src/test/java/org/onap/sdc/dcae/composition/restmodels/ruleeditor/RuleTest.java new file mode 100644 index 0000000..27f8185 --- /dev/null +++ b/src/test/java/org/onap/sdc/dcae/composition/restmodels/ruleeditor/RuleTest.java @@ -0,0 +1,39 @@ +package org.onap.sdc.dcae.composition.restmodels.ruleeditor; + +import org.junit.Test; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanConstructor; +import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCodeFor; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; + +public class RuleTest { + private Rule classUnderTest = new Rule(); + + @Test + public void checkEqualsTrueOther() { + Rule equalRule = new Rule(); + assertTrue(classUnderTest.equals(equalRule)); + } + + @Test + public void checkEqualsTrueSame() { + assertTrue(classUnderTest.equals(classUnderTest)); + } + + @Test + public void checkEqualsFalse() { + assertFalse(classUnderTest.equals(null)); + } + + @Test + public void testHasValidConstructor() { + assertThat(Rule.class, hasValidBeanConstructor()); + } + + @Test + public void checkHashCodeFor() { + assertThat(Rule.class, hasValidBeanHashCodeFor()); + } +} |