FacTest.java

This commit is contained in:
Fayez Abu Alia 2018-05-25 10:01:44 +02:00
parent 6fce2760c5
commit 58f5e17ab5

View File

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