Promote BindingRuntimeContext to binding-generator-api
[mdsal.git] / binding / mdsal-binding-dom-codec / src / test / java / org / opendaylight / mdsal / binding / dom / codec / impl / UnionValueOptionContextTest.java
index de9c7be48aeffdde2e46cdb6167cb9819851cfb6..794659b176edb6b937502202f5307dbf1c2e5191 100644 (file)
@@ -25,16 +25,16 @@ public class UnionValueOptionContextTest {
         final Method methodFoo1 = TestDataObject1.class.getMethod("foo");
         final Method methodFoo2 = TestDataObject2.class.getMethod("foo");
         TEST_UVOC_1 = new UnionValueOptionContext(TestUnion.class, TestDataObject1.class, methodFoo1,
-            ValueTypeCodec.EMPTY_CODEC);
+            ValueTypeCodec.NOOP_CODEC);
         TEST_UVOC_2 = new UnionValueOptionContext(TestUnion.class, TestDataObject2.class, methodFoo2,
-            ValueTypeCodec.EMPTY_CODEC);
+            ValueTypeCodec.NOOP_CODEC);
     }
 
     @Test
     public void hashCodeTest() throws Exception {
         final Method methodFoo1 = TestDataObject1.class.getMethod("foo");
         final UnionValueOptionContext test_uvoc = new UnionValueOptionContext(TestUnion.class, TestDataObject1.class,
-            methodFoo1, ValueTypeCodec.EMPTY_CODEC);
+            methodFoo1, ValueTypeCodec.NOOP_CODEC);
 
         assertEquals("HashCode", test_uvoc.hashCode(), TEST_UVOC_1.hashCode());
         assertNotEquals("HashCode", TEST_UVOC_1.hashCode(), TEST_UVOC_2.hashCode());
@@ -44,23 +44,31 @@ public class UnionValueOptionContextTest {
     public void equalsTest() throws Exception {
         final Method methodFoo1 = TestDataObject1.class.getMethod("foo");
         final UnionValueOptionContext test_uvoc = new UnionValueOptionContext(TestUnion.class, TestDataObject1.class,
-            methodFoo1, ValueTypeCodec.EMPTY_CODEC);
+            methodFoo1, ValueTypeCodec.NOOP_CODEC);
 
         assertTrue("Equals", TEST_UVOC_1.equals(test_uvoc));
         assertFalse("Not equals", TEST_UVOC_1.equals(TEST_UVOC_2));
     }
 
     protected static final class TestDataObject1 {
-        public void foo() {}
+        public void foo() {
+
+        }
     }
 
     protected static final class TestDataObject2 {
-        public void foo() {}
+        public void foo() {
+
+        }
     }
 
     public static final class TestUnion {
-        public TestUnion(final TestDataObject1 arg) { }
-        public TestUnion(final TestDataObject2 arg) { }
-    }
+        public TestUnion(final TestDataObject1 arg) {
 
+        }
+
+        public TestUnion(final TestDataObject2 arg) {
+
+        }
+    }
 }