Search in sources :

Example 1 with I18nProviderImpl

use of org.openhab.core.internal.i18n.I18nProviderImpl in project openhab-core by openhab.

the class I18nProviderImplTest method setup.

@BeforeEach
public void setup() {
    initialConfig = buildInitialConfig();
    when(componentContextMock.getProperties()).thenReturn(initialConfig);
    when(componentContextMock.getBundleContext()).thenReturn(bundleContextMock);
    when(bundleContextMock.getBundles()).thenReturn(new Bundle[] { bundleMock });
    i18nProviderImpl = new I18nProviderImpl(componentContextMock);
}
Also used : I18nProviderImpl(org.openhab.core.internal.i18n.I18nProviderImpl) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 I18nProviderImpl (org.openhab.core.internal.i18n.I18nProviderImpl)1