Search in sources :

Example 1 with ZclLevelControlCluster

use of com.zsmartsystems.zigbee.zcl.clusters.ZclLevelControlCluster in project com.zsmartsystems.zigbee by zsmartsystems.

the class ZclClusterTest method getClusterName.

@Test
public void getClusterName() {
    createNetworkManager();
    ZigBeeNode node = new ZigBeeNode(networkManager, new IeeeAddress());
    node.setNetworkAddress(1234);
    ZigBeeEndpoint device = new ZigBeeEndpoint(networkManager, node, 5);
    ZclCluster cluster = new ZclLevelControlCluster(networkManager, device);
    assertEquals("Level Control", cluster.getClusterName());
}
Also used : ZigBeeNode(com.zsmartsystems.zigbee.ZigBeeNode) ZclLevelControlCluster(com.zsmartsystems.zigbee.zcl.clusters.ZclLevelControlCluster) ZigBeeEndpoint(com.zsmartsystems.zigbee.ZigBeeEndpoint) IeeeAddress(com.zsmartsystems.zigbee.IeeeAddress) Test(org.junit.Test)

Aggregations

IeeeAddress (com.zsmartsystems.zigbee.IeeeAddress)1 ZigBeeEndpoint (com.zsmartsystems.zigbee.ZigBeeEndpoint)1 ZigBeeNode (com.zsmartsystems.zigbee.ZigBeeNode)1 ZclLevelControlCluster (com.zsmartsystems.zigbee.zcl.clusters.ZclLevelControlCluster)1 Test (org.junit.Test)1