コード例 #1
0
 @Test
 public void shouldNotPlayClinicGreetingMessageIfAnyTreeWasTraversed() {
   ivrContext.hasTraversedAnyTree(true);
   assertTrue(ArrayUtils.isEmpty(incomingWelcomeMessage.executeCommand(ivrContext)));
 }
コード例 #2
0
 @Test
 public void shouldPlayClinicGreetingMessageIfNoTreeHasBeenTraversed() {
   ivrContext.hasTraversedAnyTree(false);
   assertArrayEquals(
       new String[] {EXPECTED_WELCOME_MESSAGE}, incomingWelcomeMessage.executeCommand(ivrContext));
 }