@Test public void testSetupCleanupWithExceptions () { InstructionSetClassWithIssues userInstructionSet = new InstructionSetClassWithIssues (); ClassInstructionSet instructionSet = new ClassInstructionSet (NAME, userInstructionSet, null); try { instructionSet.setup (); fail ("no exception"); } catch (ExecutionException ee) { } }
@Override public void setup () { if (mObject instanceof org.powertools.engine.InstructionSet) { ((org.powertools.engine.InstructionSet) mObject).setup (); } else { runMethod ("setup"); } }
ClassInstructionSet implements InstructionSet { @Override public void setup () { if (mObject instanceof org.powertools.engine.InstructionSet) { ((org.powertools.engine.InstructionSet) mObject).setup (); } else { runMethod ("setup"); } } }
ClassInstructionSet implements InstructionSet { @Override public void setup () { if (mObject instanceof org.powertools.engine.InstructionSet) { ((org.powertools.engine.InstructionSet) mObject).setup (); } else { runMethod ("setup"); } } ClassInstructionSet(String name, Object object, ParameterConvertors parameterConvertors); }
ClassInstructionSet implements InstructionSet { @Override public void setup () { if (mObject instanceof org.powertools.engine.InstructionSet) { ((org.powertools.engine.InstructionSet) mObject).setup (); } else { runMethod ("setup"); } } ClassInstructionSet(String name, Object object, ParameterConvertors parameterConvertors); @Override String getName(); @Override void setup(); @Override Executor getExecutor(String instructionName); @Override void cleanup(); }
ClassInstructionSet implements InstructionSet { @Override public void setup () { if (mObject instanceof org.powertools.engine.InstructionSet) { ((org.powertools.engine.InstructionSet) mObject).setup (); } else { runMethod ("setup"); } } ClassInstructionSet(String name, Object object, ParameterConvertors parameterConvertors); @Override String getName(); @Override void setup(); @Override Executor getExecutor(String instructionName); @Override void cleanup();  }