@Test public void testRunWithNonExistentMissionContentClassType() { expectedException.expect(MissionExecutionException.class); expectedException.expectCause(isA(ClassNotFoundException.class)); runnableMole.run("NonExistent"); }
@Test public void testRunWithNonRunnableMission() { expectedException.expect(MissionExecutionException.class); expectedException.expectCause(isA(IllegalArgumentException.class)); runnableMole.run(TestDefinitions.EmptyMission.class.getName()); }
@Test public void testRunWithNullMissionContentClassType() { expectedException.expect(MissionExecutionException.class); expectedException.expectCause(isA(IllegalArgumentException.class)); runnableMole.run(null); }
@Test public void testRunRunnableMission() { runnableMole.run(TestDefinitions.RunnableMission.class.getName()); }