Generate fields for all Identityrefs in an Union binding class
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / java / org / opendaylight / mdsal / binding / java / api / generator / UnionWithIdentityrefTest.java
index 9555718976a49ad2c0ddf29458275fc89d172818..11dc334b5cf281e6ad465ba1ace29f5fa8c9580b 100644 (file)
@@ -52,7 +52,7 @@ public class UnionWithIdentityrefTest extends BaseCompilationTest {
         Object actualUint8 = getUint8.invoke(unionType);
         assertNull(actualUint8);
 
-        Method getIdentityref = unionTypeClass.getDeclaredMethod("getIdentityref");
+        Method getIdentityref = unionTypeClass.getDeclaredMethod("getIdentBase");
         Object actualIdentityref = getIdentityref.invoke(unionType);
         assertEquals(identOneValue, actualIdentityref);