|
|
@@ -23,7 +23,7 @@ public class TestJava5ReflectionBasedReferenceTypeDelegate extends ReflectionBas |
|
|
|
ResolvedMember[] methods = world.resolve(collectionType).getDeclaredMethods(); |
|
|
|
int i = findMethod("toArray", 1, methods); |
|
|
|
assertTrue("Couldn't find 'toArray' in the set of methods? "+methods,i != -1); |
|
|
|
String expectedSignature = "T[] java.util.Collection.toArray(T[])"; |
|
|
|
String expectedSignature = "java.lang.Object[] java.util.Collection.toArray(java.lang.Object[])"; |
|
|
|
assertTrue("Expected signature of '"+expectedSignature+"' but it was '"+methods[i],methods[i].toString().equals(expectedSignature)); |
|
|
|
} |
|
|
|
|