fixed failing test
This commit is contained in:
parent
e7c99b2b62
commit
d98da7d240
|
|
@ -39,7 +39,7 @@ public class TypeDescriptorTests {
|
||||||
assertEquals(List.class,typeDescriptor.getType());
|
assertEquals(List.class,typeDescriptor.getType());
|
||||||
assertEquals(String.class,typeDescriptor.getElementType());
|
assertEquals(String.class,typeDescriptor.getElementType());
|
||||||
// TODO caught shorten these names but it is OK that they are fully qualified for now
|
// TODO caught shorten these names but it is OK that they are fully qualified for now
|
||||||
assertEquals("java.util.List<java.lang.String>",typeDescriptor.asString());
|
assertEquals("[TypeDescriptor java.util.List<java.lang.String>]",typeDescriptor.asString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -47,7 +47,7 @@ public class TypeDescriptorTests {
|
||||||
TypeDescriptor typeDescriptor = new TypeDescriptor(TypeDescriptorTests.class.getDeclaredField("intArray"));
|
TypeDescriptor typeDescriptor = new TypeDescriptor(TypeDescriptorTests.class.getDeclaredField("intArray"));
|
||||||
assertTrue(typeDescriptor.isArray());
|
assertTrue(typeDescriptor.isArray());
|
||||||
assertEquals(Integer.TYPE,typeDescriptor.getElementType());
|
assertEquals(Integer.TYPE,typeDescriptor.getElementType());
|
||||||
assertEquals("int[]",typeDescriptor.asString());
|
assertEquals("[TypeDescriptor int[]]",typeDescriptor.asString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -63,7 +63,7 @@ public class TypeDescriptorTests {
|
||||||
assertTrue(typeDescriptor.isArray());
|
assertTrue(typeDescriptor.isArray());
|
||||||
assertEquals(List.class,typeDescriptor.getElementType());
|
assertEquals(List.class,typeDescriptor.getElementType());
|
||||||
// TODO asc notice that the type of the list elements is lost: typeDescriptor.getElementType() should return a TypeDescriptor
|
// TODO asc notice that the type of the list elements is lost: typeDescriptor.getElementType() should return a TypeDescriptor
|
||||||
assertEquals("java.util.List[]",typeDescriptor.asString());
|
assertEquals("[TypeDescriptor java.util.List[]]",typeDescriptor.asString());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue