use of org.eclipse.smarthome.core.voice.internal.SinkStub in project smarthome by eclipse.
the class VoiceManagerTest method setUp.
@Before
public void setUp() throws IOException {
voiceManager = getService(VoiceManager.class, VoiceManagerImpl.class);
assertNotNull(voiceManager);
BundleContext context = bundleContext;
ttsService = new TTSServiceStub(context);
sink = new SinkStub();
voice = new VoiceStub();
source = new AudioSourceStub();
registerService(sink);
registerService(voice);
Dictionary<String, Object> voiceConfig = new Hashtable<String, Object>();
voiceConfig.put(CONFIG_DEFAULT_TTS, ttsService.getId());
ConfigurationAdmin configAdmin = super.getService(ConfigurationAdmin.class);
Configuration configuration = configAdmin.getConfiguration(PID);
configuration.update(voiceConfig);
audioManager = new AudioManagerStub();
registerService(audioManager);
}
use of org.eclipse.smarthome.core.voice.internal.SinkStub in project smarthome by eclipse.
the class SayCommandTest method setUp.
@Before
public void setUp() {
sink = new SinkStub();
voice = new VoiceStub();
BundleContext context = bundleContext;
ttsService = new TTSServiceStub(context);
registerService(sink);
registerService(voice);
}
use of org.eclipse.smarthome.core.voice.internal.SinkStub 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);
}
use of org.eclipse.smarthome.core.voice.internal.SinkStub in project smarthome by eclipse.
the class VoicesCommandTest method setUp.
@Before
public void setUp() {
BundleContext context = bundleContext;
ttsService = new TTSServiceStub(context);
sink = new SinkStub();
voice = new VoiceStub();
registerService(ttsService);
registerService(sink);
registerService(voice);
}
Aggregations