Skip bindingHashCode() generation on properties' absence
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / java / org / opendaylight / mdsal / binding / java / api / generator / BuilderGeneratorTest.java
index 08c0482d83750b2dc18f7449dae34dda48b3a7c4..7fb78485e519cce09f62fe5fc4e2db228c0a6c2f 100644 (file)
@@ -56,6 +56,11 @@ public class BuilderGeneratorTest {
                 + "}\n", genHashCode(genType).toString());
     }
 
+    @Test
+    public void builderTemplateGenerateHashCodeWithoutAnyPropertyTest() throws Exception {
+        assertEquals("", genHashCode(mockGenType(TEST)).toString());
+    }
+
     @Test
     public void builderTemplateGenerateHashCodeWithMorePropertiesTest() throws Exception {
         assertEquals("/**\n"