Lines Matching refs:delegate

77         IDelegate delegate = Mockito.mock(IDelegate.class);
78 MockableTextToSpeechService.setMocker(delegate);
80 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable(
82 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage(
88 Mockito.verify(delegate, Mockito.atLeast(0)).onIsLanguageAvailable(
90 Mockito.verify(delegate, Mockito.atLeast(0)).onLoadLanguage(
95 IDelegate delegate = Mockito.mock(IDelegate.class);
96 MockableTextToSpeechService.setMocker(delegate);
102 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable(
104 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable(
106 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onLoadLanguage(
109 blockingCallSpeak("foo bar", delegate);
111 Mockito.verify(delegate, Mockito.times(1)).onSynthesizeText(req.capture(),
121 IDelegate delegate = Mockito.mock(IDelegate.class);
122 MockableTextToSpeechService.setMocker(delegate);
128 delegate).onIsLanguageAvailable("fra", "FRA", "");
130 delegate).onLoadLanguage("fra", "FRA", "");
132 blockingCallSpeak("le fou barre", delegate);
134 Mockito.verify(delegate, Mockito.times(1)).onSynthesizeText(req2.capture(),
145 IDelegate delegate = Mockito.mock(IDelegate.class);
146 MockableTextToSpeechService.setMocker(delegate);
150 delegate).onIsLanguageAvailable("eng", "USA", "");
153 Mockito.verify(delegate, Mockito.times(1)).onIsLanguageAvailable(
158 IDelegate delegate = Mockito.mock(IDelegate.class);
159 MockableTextToSpeechService.setMocker(delegate);
166 when(delegate).onIsLanguageAvailable(
171 when(delegate).onLoadLanguage(
176 blockingCallSpeak("foo bar", delegate);
178 Mockito.verify(delegate, Mockito.times(1)).onSynthesizeText(req.capture(),