fixed failing test
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3257 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
3c87a49b3c
commit
21a9cb510f
|
|
@ -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