Search in sources :

Example 1 with ModuleChannel

use of org.openhab.binding.nikobus.internal.config.ModuleChannel in project openhab1-addons by openhab.

the class NikobusGenericBindingProviderTest method parseChannelConfig.

private void parseChannelConfig(String name, String config, String address, int channel) throws BindingConfigParseException {
    Item item = new SwitchItem(name);
    provider.processBindingConfiguration("context", item, config);
    ModuleChannel c = (ModuleChannel) provider.getItemConfig(name);
    assertEquals(name, c.getName());
    assertEquals(address, c.getAddress());
}
Also used : SwitchItem(org.openhab.core.library.items.SwitchItem) Item(org.openhab.core.items.Item) ModuleChannel(org.openhab.binding.nikobus.internal.config.ModuleChannel) SwitchItem(org.openhab.core.library.items.SwitchItem)

Aggregations

ModuleChannel (org.openhab.binding.nikobus.internal.config.ModuleChannel)1 Item (org.openhab.core.items.Item)1 SwitchItem (org.openhab.core.library.items.SwitchItem)1