Search in sources :

Example 6 with AudioSourceStub

use of org.eclipse.smarthome.core.voice.internal.AudioSourceStub in project smarthome by eclipse.

the class VoiceConsoleCommandExtensionTest method setup.

@Before
public void setup() {
    voiceManager = getService(VoiceManager.class, VoiceManagerImpl.class);
    assertNotNull(voiceManager);
    extensionService = getService(ConsoleCommandExtension.class, VoiceConsoleCommandExtension.class);
    assertNotNull(extensionService);
    sink = new SinkStub();
    source = new AudioSourceStub();
    audioManager = new AudioManagerStub();
    console = new ConsoleStub();
    registerService(audioManager);
    registerService(voiceManager);
}
Also used : SinkStub(org.eclipse.smarthome.core.voice.internal.SinkStub) ConsoleStub(org.eclipse.smarthome.core.voice.internal.ConsoleStub) VoiceManagerImpl(org.eclipse.smarthome.core.voice.internal.VoiceManagerImpl) VoiceConsoleCommandExtension(org.eclipse.smarthome.core.voice.internal.VoiceConsoleCommandExtension) AudioSourceStub(org.eclipse.smarthome.core.voice.internal.AudioSourceStub) VoiceConsoleCommandExtension(org.eclipse.smarthome.core.voice.internal.VoiceConsoleCommandExtension) ConsoleCommandExtension(org.eclipse.smarthome.io.console.extensions.ConsoleCommandExtension) AudioManagerStub(org.eclipse.smarthome.core.voice.internal.AudioManagerStub) VoiceManager(org.eclipse.smarthome.core.voice.VoiceManager) Before(org.junit.Before)

Aggregations

AudioSourceStub (org.eclipse.smarthome.core.voice.internal.AudioSourceStub)6 HumanLanguageInterpreterStub (org.eclipse.smarthome.core.voice.internal.HumanLanguageInterpreterStub)4 KSServiceStub (org.eclipse.smarthome.core.voice.internal.KSServiceStub)4 STTServiceStub (org.eclipse.smarthome.core.voice.internal.STTServiceStub)4 TTSServiceStub (org.eclipse.smarthome.core.voice.internal.TTSServiceStub)4 JavaOSGiTest (org.eclipse.smarthome.test.java.JavaOSGiTest)4 Test (org.junit.Test)4 Hashtable (java.util.Hashtable)2 VoiceManager (org.eclipse.smarthome.core.voice.VoiceManager)2 AudioManagerStub (org.eclipse.smarthome.core.voice.internal.AudioManagerStub)2 SinkStub (org.eclipse.smarthome.core.voice.internal.SinkStub)2 VoiceManagerImpl (org.eclipse.smarthome.core.voice.internal.VoiceManagerImpl)2 Before (org.junit.Before)2 Configuration (org.osgi.service.cm.Configuration)2 ConfigurationAdmin (org.osgi.service.cm.ConfigurationAdmin)2 IOException (java.io.IOException)1 URISyntaxException (java.net.URISyntaxException)1 ConsoleStub (org.eclipse.smarthome.core.voice.internal.ConsoleStub)1 VoiceConsoleCommandExtension (org.eclipse.smarthome.core.voice.internal.VoiceConsoleCommandExtension)1 VoiceStub (org.eclipse.smarthome.core.voice.internal.VoiceStub)1