SenderReceiverHelperMCCIMT000100UV01 { public static MCCIMT000100UV01Receiver CreateReceiver(II receiverDeviceId) { MCCIMT000100UV01Receiver receiver = new MCCIMT000100UV01Receiver(); receiver.setTypeCode(CommunicationFunctionType.RCV); receiver.setDevice(createDevice(receiverDeviceId)); return receiver; }  static MCCIMT000100UV01Sender CreateSender(II senderDeviceId); static MCCIMT000100UV01Sender CreateSender(); static MCCIMT000100UV01Receiver CreateReceiver(II receiverDeviceId); static MCCIMT000100UV01Receiver CreateReceiver();  }
@Test public void testCreateReceiver() { MCCIMT000100UV01Receiver receiverDevice = new MCCIMT000100UV01Receiver(); SenderReceiverHelperMCCIMT000100UV01 receiver = new SenderReceiverHelperMCCIMT000100UV01(); receiverDevice = receiver.CreateReceiver(createReceiverDeviceId()); assertEquals(receiverDevice.getDevice().getId().get(0).getAssigningAuthorityName(), "CONNECTReceiver"); assertEquals(receiverDevice.getDevice().getId().get(0).getExtension(), "D123401"); }
@Test public void CreateReceiver() { MCCIMT000100UV01Receiver receiverDevice = new MCCIMT000100UV01Receiver(); SenderReceiverHelperMCCIMT000100UV01 receiver = new SenderReceiverHelperMCCIMT000100UV01(); receiverDevice = receiver.CreateReceiver(); assertNull(receiverDevice.getDevice().getId().get(0)); }