Generate @param for RPC invocation methods
[mdsal.git] / binding / mdsal-binding-generator-util / src / test / java / org / opendaylight / mdsal / binding / model / util / generated / type / builder / MethodSignatureImplTest.java
index b480eb9c897b5318f6381e9fede0e4adab49170f..0558438538ba8d4a8d505027a9cb073274bcf8f6 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.mdsal.binding.model.util.generated.type.builder;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotEquals;
 import static org.junit.Assert.assertTrue;
 
 import java.util.ArrayList;
@@ -19,6 +20,7 @@ import org.opendaylight.mdsal.binding.model.api.AccessModifier;
 import org.opendaylight.mdsal.binding.model.api.AnnotationType;
 import org.opendaylight.mdsal.binding.model.api.MethodSignature.Parameter;
 import org.opendaylight.mdsal.binding.model.api.Type;
+import org.opendaylight.mdsal.binding.model.api.TypeMemberComment;
 import org.opendaylight.mdsal.binding.model.util.Types;
 
 public class MethodSignatureImplTest {
@@ -35,7 +37,7 @@ public class MethodSignatureImplTest {
         Type type = Types.STRING;
         String name = "customMethod";
         List<AnnotationType> annotations = new ArrayList<>();
-        String comment = "This is just a comment";
+        TypeMemberComment comment = TypeMemberComment.contractOf("This is just a comment");
         AccessModifier accessModifier = AccessModifier.PUBLIC;
         Type returnType = Types.STRING;
         List<Parameter> params = new ArrayList<>();
@@ -71,7 +73,7 @@ public class MethodSignatureImplTest {
     @Test
     public void testHashCode() {
         assertEquals(hash1, hash1);
-        assertTrue(!(hash1 == hash4));
+        assertNotEquals(hash1, hash4);
     }
 
     @Test