@Test public void testCleanup () { Instructions instructions = new Instructions (null, null); InstructionSetImpl instructionSet = new InstructionSetImpl ("instruction set name"); instructions.addInstructionSet (instructionSet); assertFalse (instructionSet.isCleanupCalled ()); instructions.cleanup (); assertTrue (instructionSet.isCleanupCalled ()); }
void cleanup () { for (InstructionSet instructionSet : mInstructionSets.values ()) { instructionSet.cleanup (); } }
Instructions { void cleanup () { for (InstructionSet instructionSet : mInstructionSets.values ()) { instructionSet.cleanup (); } } }
Instructions { void cleanup () { for (InstructionSet instructionSet : mInstructionSets.values ()) { instructionSet.cleanup (); } } Instructions(ProcedureRunner runner, TestRunResultPublisher publisher); }
Instructions { void cleanup () { for (InstructionSet instructionSet : mInstructionSets.values ()) { instructionSet.cleanup (); } } Instructions(ProcedureRunner runner, TestRunResultPublisher publisher);  }
Instructions { void cleanup () { for (InstructionSet instructionSet : mInstructionSets.values ()) { instructionSet.cleanup (); } } Instructions(ProcedureRunner runner, TestRunResultPublisher publisher);   }