MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / setUp

Method setUp

java/tests/builtintopics/BuiltinTopicsTest.java:64–79  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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);

Callers 1

mainMethod · 0.95

Calls 8

WithArgsMethod · 0.95
getMethod · 0.95
getMethod · 0.95
create_participantMethod · 0.45
register_typeMethod · 0.45
create_topicMethod · 0.45
get_type_nameMethod · 0.45

Tested by

no test coverage detected