Beispiel #1
0
 @Test
 public void testInvoke_4args_noFiltred() throws Exception {
   Collection expResult = new HashSet();
   C2 object = new C2();
   Bean instance = new Bean(C2.class);
   ClassFilter filter = new SimpleClassFilter(C1.class, MethodAnn.class);
   Object result = instance.invoke(object, "myText", new Object[] {}, filter);
   assertEquals(expResult, result);
 }
Beispiel #2
0
 @Test
 public void testInvoke_4args_correct() throws Exception {
   Collection expResult = new HashSet();
   expResult.add("myTextResult");
   C2 object = new C2();
   Bean instance = new Bean(C2.class);
   Object result = instance.invoke(object, "myText", new Object[] {}, new SimpleClassFilter());
   assertEquals(expResult, result);
 }