Browse Source

fixed failing test

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3257 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Keith Donald 16 years ago
parent
commit
21a9cb510f
  1. 6
      org.springframework.core/src/test/java/org/springframework/core/convert/TypeDescriptorTests.java

6
org.springframework.core/src/test/java/org/springframework/core/convert/TypeDescriptorTests.java

@ -39,7 +39,7 @@ public class TypeDescriptorTests { @@ -39,7 +39,7 @@ public class TypeDescriptorTests {
assertEquals(List.class,typeDescriptor.getType());
assertEquals(String.class,typeDescriptor.getElementType());
// 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
@ -47,7 +47,7 @@ public class TypeDescriptorTests { @@ -47,7 +47,7 @@ public class TypeDescriptorTests {
TypeDescriptor typeDescriptor = new TypeDescriptor(TypeDescriptorTests.class.getDeclaredField("intArray"));
assertTrue(typeDescriptor.isArray());
assertEquals(Integer.TYPE,typeDescriptor.getElementType());
assertEquals("int[]",typeDescriptor.asString());
assertEquals("[TypeDescriptor int[]]",typeDescriptor.asString());
}
@Test
@ -63,7 +63,7 @@ public class TypeDescriptorTests { @@ -63,7 +63,7 @@ public class TypeDescriptorTests {
assertTrue(typeDescriptor.isArray());
assertEquals(List.class,typeDescriptor.getElementType());
// 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…
Cancel
Save