};
}
// inherit javadoc
public void run() throws Exception {
FakeBasicInvocationDispatcher dispatcher;
int counter = 1;
for (int i = 0; i < cases.length; i++) {
ArrayList methods = (ArrayList)cases[i][0];
FakeServerCapabilities serverCaps =
(FakeServerCapabilities)cases[i][1];
FakeMethodConstraints serverConstraints =
(FakeMethodConstraints)cases[i][2];
Class permClass = (Class)cases[i][3];
ClassLoader classLoader = (ClassLoader)cases[i][4];
Exception expectedExc = (Exception)cases[i][5];
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case " + (counter++)
+ ": methods:" + methods
+ ", serverCaps:" + serverCaps
+ ", serverConstraints:" + serverConstraints
+ ", permClass:" + permClass
+ ", classLoader:" + classLoader
+ ", expectedExc:" + expectedExc);
logger.log(Level.FINE,"");
try {
dispatcher = new FakeBasicInvocationDispatcher(methods,
serverCaps,serverConstraints,permClass,classLoader);
assertion(expectedExc == null,
"Expected " + expectedExc + " was not thrown");
assertion(classLoader == dispatcher.getClassLoader0());
} catch (NullPointerException npe) {
assertion(
expectedExc.getClass() == npe.getClass(),
"Expected: " + expectedExc + " Received: " + npe);
} catch (IllegalArgumentException iae) {