(String[] args)
| 62 | private static Topic topic; |
| 63 | |
| 64 | protected static void setUp(String[] args) { |
| 65 | dpf = TheParticipantFactory.WithArgs(new StringSeqHolder(args)); |
| 66 | |
| 67 | participant = |
| 68 | dpf.create_participant(DOMAIN_ID, PARTICIPANT_QOS_DEFAULT.get(), null, DEFAULT_STATUS_MASK.value); |
| 69 | |
| 70 | builtinSubscriber = participant.get_builtin_subscriber(); |
| 71 | |
| 72 | MessageTypeSupport typeSupport = new MessageTypeSupportImpl(); |
| 73 | if (typeSupport.register_type(participant, "Messenger::Message") != RETCODE_OK.value) { |
| 74 | throw new IllegalStateException("Unable to register type!"); |
| 75 | } |
| 76 | |
| 77 | topic = participant.create_topic("BuiltinTopics::Topic", typeSupport.get_type_name(), |
| 78 | TOPIC_QOS_DEFAULT.get(), null, 0); |
| 79 | } |
| 80 | |
| 81 | private static boolean waitForSample(DataReader dr) { |
| 82 | DDS.ReadCondition dr_rc = dr.create_readcondition(ANY_SAMPLE_STATE.value, ANY_VIEW_STATE.value, ALIVE_INSTANCE_STATE.value); |
no test coverage detected