use of org.openhab.core.thing.firmware.FirmwareRegistry in project openhab-core by openhab.
the class FirmwareRegistryOSGiTest method setup.
@BeforeEach
public void setup() throws IOException {
configurationAdmin = getService(ConfigurationAdmin.class);
assertNotNull(configurationAdmin);
LocaleProvider localeProvider = getService(LocaleProvider.class);
assertThat(localeProvider, is(notNullValue()));
defaultLocale = localeProvider.getLocale();
new DefaultLocaleSetter(configurationAdmin).setDefaultLocale(Locale.ENGLISH);
waitForAssert(() -> assertThat(localeProvider.getLocale(), is(Locale.ENGLISH)));
firmwareRegistry = getService(FirmwareRegistry.class);
assertThat(firmwareRegistry, is(notNullValue()));
registerService(basicFirmwareProviderMock);
}
Aggregations