use of com.zsmartsystems.zigbee.zdo.command.MatchDescriptorRequest in project com.zsmartsystems.zigbee by zsmartsystems.
the class ClusterMatcherTest method testMatcherMatchInOut.
@Test
public void testMatcherMatchInOut() {
ClusterMatcher matcher = getMatcher();
matcher.addCluster(0x500);
matcher.addCluster(0x600);
List<Integer> clusterListIn = new ArrayList<Integer>();
List<Integer> clusterListOut = new ArrayList<Integer>();
clusterListIn.add(0x500);
clusterListOut.add(0x500);
MatchDescriptorRequest request = new MatchDescriptorRequest();
request.setSourceAddress(new ZigBeeEndpointAddress(1234, 5));
request.setProfileId(0x104);
request.setInClusterList(clusterListIn);
request.setOutClusterList(clusterListOut);
matcher.commandReceived(request);
assertEquals(1, mockedCommandCaptor.getAllValues().size());
}
Aggregations