Package org.asteriskjava.fastagi

Examples of org.asteriskjava.fastagi.AgiOperations


 
  @Test
  public void test() throws IOException, AgiException {
   
      RemoteSwiftTextToSpeechFactoryImpl factory = new RemoteSwiftTextToSpeechFactoryImpl();
      AgiOperations opts = Mockito.mock(AgiOperations.class);
     
      Mockito.when(opts.getVariable("swift_stream_file")).thenReturn("path/to/file");
     
      factory.getAudio(opts, "Hello A, Hello B", "0123456789*#");
     
      Mockito.verify(opts).exec("AGI","agi-ensure-swift-stream-file.agi,swift_stream_file,Hello A\\, Hello B");
      Mockito.verify(opts).getVariable("swift_stream_file");
View Full Code Here

TOP

Related Classes of org.asteriskjava.fastagi.AgiOperations

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.