X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding2%2Fmdsal-binding2-runtime%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fjavav2%2Fruntime%2Freflection%2FBindingReflectionsTest.java;h=36146d55a4dac89ca0f7641689371456dd587107;hb=76cea2ee405a4edcec07788a21fb9c4848676554;hp=157b70911d492fae38bc60d804e4cc99c312cb18;hpb=bb582aed99ca77913439628b1356b1b81877fd46;p=mdsal.git diff --git a/binding2/mdsal-binding2-runtime/src/test/java/org/opendaylight/mdsal/binding/javav2/runtime/reflection/BindingReflectionsTest.java b/binding2/mdsal-binding2-runtime/src/test/java/org/opendaylight/mdsal/binding/javav2/runtime/reflection/BindingReflectionsTest.java index 157b70911d..36146d55a4 100644 --- a/binding2/mdsal-binding2-runtime/src/test/java/org/opendaylight/mdsal/binding/javav2/runtime/reflection/BindingReflectionsTest.java +++ b/binding2/mdsal-binding2-runtime/src/test/java/org/opendaylight/mdsal/binding/javav2/runtime/reflection/BindingReflectionsTest.java @@ -38,7 +38,7 @@ public class BindingReflectionsTest { assertEquals("ModuleInfoClassName should be equal to string", "test.$YangModuleInfoImpl", BindingReflections.getModuleInfoClassName("test")); assertEquals("Module info should be empty Set", Collections.EMPTY_SET, BindingReflections.loadModuleInfos()); - assertFalse("Should not be RpcType", BindingReflections.isRpcOrActionType(TreeNode.class)); + assertFalse("Should not be RpcType", BindingReflections.isOperationType(TreeNode.class)); assertFalse("Should not be AugmentationChild", BindingReflections.isAugmentationChild(TreeNode.class)); assertTrue("Should be BindingClass", BindingReflections.isBindingClass(TreeNode.class)); assertFalse("Should not be Notification", BindingReflections.isNotification(TreeNode.class)); @@ -47,13 +47,13 @@ public class BindingReflectionsTest { assertEquals(GroupingFoo.class, BindingReflections.findHierarchicalParent(FooChild.class)); - assertTrue(BindingReflections.isRpcOrActionMethod(TestImplementation.class.getDeclaredMethod("rpcMethodTest"))); + assertTrue(BindingReflections.isOperationMethod(TestImplementation.class.getDeclaredMethod("rpcMethodTest"))); assertEquals(TestImplementation.class, BindingReflections.findAugmentationTarget(TestImplementation.class)); assertEquals(Object.class, BindingReflections - .resolveRpcOutputClass(TestImplementation.class.getDeclaredMethod("rpcMethodTest")).get()); + .resolveOperationOutputClass(TestImplementation.class.getDeclaredMethod("rpcMethodTest")).get()); assertFalse(BindingReflections - .resolveRpcOutputClass(TestImplementation.class.getDeclaredMethod("rpcMethodTest2")).isPresent()); + .resolveOperationOutputClass(TestImplementation.class.getDeclaredMethod("rpcMethodTest2")).isPresent()); assertTrue(BindingReflections.getQName(TestImplementation.class).toString().equals("test")); }