Pick up byte-buddy from yangtools
[mdsal.git] / binding / mdsal-binding-spec-util / src / test / java / org / opendaylight / mdsal / binding / spec / reflect / BindingReflectionsTest.java
index 472f174bfe4fcdfe71c22ead14ebaedbcd244e78..ec41e1e91b827124a484ff7e531f56bd75e8a57f 100644 (file)
@@ -7,48 +7,24 @@
  */
 package org.opendaylight.mdsal.binding.spec.reflect;
 
-import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
-import com.google.common.util.concurrent.ListenableFuture;
-import java.util.List;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.binding.Augmentation;
-import org.opendaylight.yangtools.yang.binding.BaseIdentity;
 import org.opendaylight.yangtools.yang.binding.DataObject;
-import org.opendaylight.yangtools.yang.binding.RpcService;
-import org.opendaylight.yangtools.yang.common.QName;
 
 public class BindingReflectionsTest {
-
     @Test
     public void testBindingWithDummyObject() throws Exception {
-        assertFalse("Should not be RpcType", BindingReflections.isRpcType(DataObject.class));
-        assertTrue("Should be BindingClass", BindingReflections.isBindingClass(DataObject.class));
-
-        assertEquals(QName.create("test", "test"), BindingReflections.getQName(TestIdentity.VALUE));
+        assertFalse(BindingReflections.isRpcType(DataObject.class));
+        assertTrue(BindingReflections.isBindingClass(DataObject.class));
     }
 
-    interface TestIdentity extends BaseIdentity {
-        QName QNAME = QName.create("test", "test");
-        TestIdentity VALUE = () -> TestIdentity.class;
-
-        @Override
-        Class<? extends TestIdentity> implementedInterface();
-    }
-
-    static final class TestImplementation implements Augmentation<TestImplementation>, RpcService {
-        public static final QName QNAME = QName.create("test", "test");
-
-        @SuppressWarnings("static-method")
-        ListenableFuture<List<Object>> rpcMethodTest() {
-            return null;
-        }
-
+    static final class TestImplementation implements Augmentation<TestImplementation> {
         @Override
         public Class<TestImplementation> implementedInterface() {
             return TestImplementation.class;
         }
     }
-}
\ No newline at end of file
+}