Map system-ordered leaf-lists to Set<T>
[mdsal.git] / binding / mdsal-binding-generator / src / test / java / org / opendaylight / mdsal / binding / generator / impl / DefaultBindingGeneratorTest.java
index b0182fc2042b4d28404235c97ceea42aec45fb2b..99417d7016eba689018e8ccbd02fdbcbae801870 100644 (file)
@@ -17,6 +17,7 @@ import static org.junit.Assert.assertThrows;
 import static org.junit.Assert.assertTrue;
 
 import java.util.List;
+import java.util.Set;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
@@ -86,7 +87,7 @@ public class DefaultBindingGeneratorTest {
         assertThat(bEnumsType, instanceOf(ParameterizedType.class));
         final var enumsType = (ParameterizedType) bEnumsType;
 
-        assertEquals(Types.typeForClass(List.class), enumsType.getRawType());
+        assertEquals(Types.typeForClass(Set.class), enumsType.getRawType());
         final var enumsTypeArgs = enumsType.getActualTypeArguments();
         assertEquals(1, enumsTypeArgs.length);
         assertEquals(TEST_TYPE_PROVIDER + ".Foo.ListOfEnums", enumsTypeArgs[0].getFullyQualifiedName());
@@ -217,7 +218,8 @@ public class DefaultBindingGeneratorTest {
         assertEquals("Failed to find leafref target /somewhere/i/belong", ex.getMessage());
         final var cause = ex.getCause();
         assertThat(cause, instanceOf(IllegalArgumentException.class));
-        assertEquals("Data tree child (foo)somewhere not present", cause.getMessage());
+        assertEquals("Data tree child (foo)somewhere not present in module (foo)unresolvable-leafref",
+            cause.getMessage());
     }
 
     @Test