@Test public void sendTransaction() { ZigBeeEndpoint endpoint = getEndpoint(); ZclCommand command = mockZclCommand(DefaultResponse.class); ZigBeeTransactionMatcher matcher = Mockito.mock(ZigBeeTransactionMatcher.class); endpoint.sendTransaction(command, matcher); Mockito.verify(endpoint.getParentNode(), Mockito.timeout(TIMEOUT).times(1)).sendTransaction(command, matcher); endpoint.sendTransaction(command); Mockito.verify(endpoint.getParentNode(), Mockito.timeout(TIMEOUT).times(1)).sendTransaction(command); }
public void sendTransaction(ZigBeeCommand command) { command.setDestinationAddress(getEndpointAddress()); node.sendTransaction(command); }
ZigBeeEndpoint { public void sendTransaction(ZigBeeCommand command) { command.setDestinationAddress(getEndpointAddress()); node.sendTransaction(command); } }
ZigBeeEndpoint { public void sendTransaction(ZigBeeCommand command) { command.setDestinationAddress(getEndpointAddress()); node.sendTransaction(command); } ZigBeeEndpoint(ZigBeeNode node, int endpoint); }
ZigBeeEndpoint { public void sendTransaction(ZigBeeCommand command) { command.setDestinationAddress(getEndpointAddress()); node.sendTransaction(command); } ZigBeeEndpoint(ZigBeeNode node, int endpoint); int getDeviceId(); void setDeviceId(int deviceId); int getDeviceVersion(); void setDeviceVersion(int deviceVersion); int getEndpointId(); Collection<Integer> getInputClusterIds(); boolean addInputCluster(ZclCluster cluster); ZclCluster getInputCluster(int clusterId); ZclCluster getOutputCluster(int clusterId); void setInputClusterIds(List<Integer> inputClusterIds); IeeeAddress getIeeeAddress(); ZigBeeEndpointAddress getEndpointAddress(); Collection<Integer> getOutputClusterIds(); void setOutputClusterIds(Collection<Integer> outputClusterIds); boolean addOutputCluster(ZclCluster cluster); int getProfileId(); void setProfileId(int profileId); ZigBeeNode getParentNode(); ZigBeeStatus addApplication(ZigBeeApplication application); ZigBeeApplication getApplication(int clusterId); void commandReceived(ZclCommand command); boolean updateEndpoint(ZigBeeEndpoint endpoint); ZigBeeEndpointDao getDao(); void setDao(ZigBeeEndpointDao dao); void sendTransaction(ZigBeeCommand command); Future<CommandResult> sendTransaction(ZigBeeCommand command, ZigBeeTransactionMatcher responseMatcher); NotificationService getNotificationService(); @Override String toString(); }
ZigBeeEndpoint { public void sendTransaction(ZigBeeCommand command) { command.setDestinationAddress(getEndpointAddress()); node.sendTransaction(command); } ZigBeeEndpoint(ZigBeeNode node, int endpoint); int getDeviceId(); void setDeviceId(int deviceId); int getDeviceVersion(); void setDeviceVersion(int deviceVersion); int getEndpointId(); Collection<Integer> getInputClusterIds(); boolean addInputCluster(ZclCluster cluster); ZclCluster getInputCluster(int clusterId); ZclCluster getOutputCluster(int clusterId); void setInputClusterIds(List<Integer> inputClusterIds); IeeeAddress getIeeeAddress(); ZigBeeEndpointAddress getEndpointAddress(); Collection<Integer> getOutputClusterIds(); void setOutputClusterIds(Collection<Integer> outputClusterIds); boolean addOutputCluster(ZclCluster cluster); int getProfileId(); void setProfileId(int profileId); ZigBeeNode getParentNode(); ZigBeeStatus addApplication(ZigBeeApplication application); ZigBeeApplication getApplication(int clusterId); void commandReceived(ZclCommand command); boolean updateEndpoint(ZigBeeEndpoint endpoint); ZigBeeEndpointDao getDao(); void setDao(ZigBeeEndpointDao dao); void sendTransaction(ZigBeeCommand command); Future<CommandResult> sendTransaction(ZigBeeCommand command, ZigBeeTransactionMatcher responseMatcher); NotificationService getNotificationService(); @Override String toString();  }