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