Lines Matching refs:expectedException
71 Class<?> expectedException) { in getValue() argument
107 if (expectedException != null) { in getValue()
110 "', was expecting " + expectedException); in getValue()
114 if (expectedException == null) { in getValue()
119 if (!expectedException.equals(ex.getClass())) { in getValue()
121 + expectedException.getName() + ", got " in getValue()
649 Class<?> expectedException) { in getValue() argument
685 if (expectedException != null) { in getValue()
688 "', was expecting " + expectedException); in getValue()
692 if (expectedException == null) { in getValue()
697 if (!expectedException.equals(ex.getClass())) { in getValue()
699 + expectedException.getName() + ", got " in getValue()
709 public Object invoke(Method method, Object obj, Class<?> expectedException) { in invoke() argument
714 if (expectedException != null) { in invoke()
716 expectedException); in invoke()
720 if (expectedException == null) { in invoke()
724 if (!expectedException.equals(ex.getClass())) { in invoke()
725 System.out.println("ERROR: incorrect exception: wanted " + expectedException.getName() + in invoke()