Exemple #1
0
 @Test
 public void testDiscoverRunnableMission() throws NoSuchMethodException {
   List<Method> actualMethods = runnableMole.discover(TestDefinitions.RunnableMission.class);
   List<Method> expectedMethods = new ArrayList<>();
   expectedMethods.add(TestDefinitions.RunnableMission.class.getMethod("run"));
   assertEquals(expectedMethods, actualMethods);
 }
Exemple #2
0
 @Test
 public void testDiscoverRunnableMissionWithNullClassType() {
   expectedException.expect(IllegalArgumentException.class);
   runnableMole.discover(null);
 }
Exemple #3
0
 @Test
 public void testDiscoverNonRunnableMission() {
   List<Method> actualMethods = runnableMole.discover(TestDefinitions.EmptyMission.class);
   assertTrue(actualMethods.isEmpty());
 }