*/
public void run() throws Exception {
FakeActivationGroup.setLogger(logger);
ActivationSystem system = new FakeActivationSystem(logger);
ActivationGroupID agid = new FakeActivationGroupID(logger, system);
ActivationID aid;
Exporter exporter;
try {
aid = new ActivationID(null);
ActivationGroup.inactive(aid, null);
throw new TestException(
"ActivationException should be thrown"
+ " if group is not active");
} catch (ActivationException t) {
logger.log(Level.FINEST,
"ActivationException in case if group is not active");
}
Properties props = new Properties();
ActivationGroupDesc gd = new ActivationGroupDesc(
"com.sun.jini.test.spec.activation.util.FakeActivationGroup",
null,
null,
props,
null);
java.rmi.activation.ActivationGroup ag =
ActivationGroup.createGroup(agid, gd, 0);
boolean [] cases = {true, false};
for (int i = 0; i < cases.length; i++) {
boolean result = cases[i];
logger.log(Level.FINEST, "return case: " + result);
for (int j = 0; j < cases.length; j++) {
if (cases[j]) {
exporter = null;
} else {
exporter = new FakeExporter(logger);
}
logger.log(Level.FINEST, "exporter: " + exporter);
for (int k = 0; k < cases.length; k++) {
if (cases[k]) {
aid = null;
} else {
aid = new ActivationID(null);
}
logger.log(Level.FINEST, "ActivationID: " + aid);
FakeActivationGroup.resetInactiveObjectTouch();
FakeActivationGroup.setInactiveObjectReturn(result);