kleine Änderung

This commit is contained in:
Fayez Abu Alia 2018-05-24 16:44:05 +02:00
parent 3470215bae
commit a40d2b991f
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ public class TypeToDescriptor implements TypeVisitor<String>{
@Override
public String visit(ExtendsWildcardType extendsWildcardType) {
return extendsWildcardType.getInnerType().toString();
return extendsWildcardType.getInnerType().toString().replace(".", "/");
//throw new NotImplementedException();
}

View File

@ -36,9 +36,9 @@ public class FacTest {
@Test
public void test() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
Method getFac = classToTest.getDeclaredMethod("getFac", Integer.class,Integer.class);
Method getFac = classToTest.getDeclaredMethod("getFac", Integer.class);
Integer result = (Integer) getFac.invoke(instanceOfClass,3);
assertEquals(result, 6);
assertEquals(result, 4);
}
}

View File

@ -1,4 +1,4 @@
//import java.lang.Integer;
import java.lang.Integer;
public class Plus {