diff options
Diffstat (limited to 'common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/NodeTemplateTest.java')
-rw-r--r-- | common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/NodeTemplateTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/NodeTemplateTest.java b/common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/NodeTemplateTest.java index 1fb886f328..b9f2b838c2 100644 --- a/common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/NodeTemplateTest.java +++ b/common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/NodeTemplateTest.java @@ -12,6 +12,8 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + * + * Modifications copyright (c) 2019 Nokia */ package org.onap.sdc.tosca.datatypes.model; @@ -25,6 +27,11 @@ import org.junit.Assert; import org.junit.Test; import org.onap.sdc.tosca.services.ToscaExtensionYamlUtil; +import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanEqualsExcluding; +import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCodeExcluding; +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + public class NodeTemplateTest { @@ -66,6 +73,20 @@ public class NodeTemplateTest { Assert.assertEquals(expectedServiceTemplate, actualServiceTemplate); } + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(NodeTemplate.class, hasValidGettersAndSettersExcluding("normalizeInterfaces")); + } + + @Test + public void shouldHaveValidEquals() { + assertThat(NodeTemplate.class, hasValidBeanEqualsExcluding("normalizeInterfaces")); + } + + @Test + public void shouldHaveValidHashCode() { + assertThat(NodeTemplate.class, hasValidBeanHashCodeExcluding("normalizeInterfaces")); + } private InterfaceDefinitionTemplate createInterfaceDefinitionTemplate() { InterfaceDefinitionTemplate interfaceDefinitionTemplate = new InterfaceDefinitionTemplate(); |