private void fireLcConfigX(LcConfigXResponse lcConfigXResponse) { byte[] address = lcConfigXResponse.getAddr(); LcConfigX lcConfigX = lcConfigXResponse.getLcConfigX(); synchronized (messageListeners) { for (MessageListener l : messageListeners) { l.lcConfigX(address, lcConfigX); } } // check if the config is finished if (!lcConfigX.isContinueDetected()) { // notify the bulk sender notifyBulkSender(lcConfigXResponse.getAddr(), LcConfigXResponse.TYPE); } else { LOGGER.info("Continue detected in LcConfigX."); } }
public LcConfigX getLcConfigX() { byte[] data = getData(); return MessageUtils.getLcConfigX(data); } }
for (BidibMessage response : responses) { if (response instanceof LcConfigXResponse) { result.add(((LcConfigXResponse) response).getLcConfigX());
break; case BidibLibrary.MSG_LC_CONFIGX: result = new LcConfigXResponse(result.getAddr(), result.getNum(), result.getType(), result.getData()); break; case BidibLibrary.MSG_LC_KEY:
for (BidibMessage response : responses) { if (response instanceof LcConfigXResponse) { result.add(((LcConfigXResponse) response).getLcConfigX());
Mockito.verify(messageListener, Mockito.times(1)).lcConfigX(nodeAddress, lcConfigXResponse.getLcConfigX());