(String[] args)
| 40 | private static Subscriber subscriber; |
| 41 | |
| 42 | protected static void setUp(String[] args) { |
| 43 | dpf = TheParticipantFactory.WithArgs(new StringSeqHolder(args)); |
| 44 | assert (dpf != null); |
| 45 | |
| 46 | participant = dpf.create_participant(DOMAIN_ID, PARTICIPANT_QOS_DEFAULT.get(), null, DEFAULT_STATUS_MASK.value); |
| 47 | assert (participant != null); |
| 48 | |
| 49 | DataTypeSupport typeSupport = new DataTypeSupportImpl(); |
| 50 | |
| 51 | int result = typeSupport.register_type(participant, "Complex::Data"); |
| 52 | assert (result != RETCODE_ERROR.value); |
| 53 | |
| 54 | ElectionNews_tTypeSupportImpl electionNewsTypeSupport = new ElectionNews_tTypeSupportImpl(); |
| 55 | |
| 56 | result = electionNewsTypeSupport.register_type(participant, "Complex::ElectionNews_t"); |
| 57 | assert (result != RETCODE_ERROR.value); |
| 58 | |
| 59 | topic = participant.create_topic("Complex::Topic", "Complex::Data", |
| 60 | TOPIC_QOS_DEFAULT.get(), null, |
| 61 | DEFAULT_STATUS_MASK.value); |
| 62 | assert (topic != null); |
| 63 | |
| 64 | union_topic = participant.create_topic("Complex::UnionTopic", "Complex::ElectionNews_t", |
| 65 | TOPIC_QOS_DEFAULT.get(), null, |
| 66 | DEFAULT_STATUS_MASK.value); |
| 67 | assert (union_topic != null); |
| 68 | |
| 69 | publisher = participant.create_publisher(PUBLISHER_QOS_DEFAULT.get(), null, DEFAULT_STATUS_MASK.value); |
| 70 | assert (publisher != null); |
| 71 | |
| 72 | // Use the API to configure the transport |
| 73 | TransportConfig transport_config = |
| 74 | TheTransportRegistry.create_config("Config"); |
| 75 | assert (transport_config != null); |
| 76 | |
| 77 | TransportInst transport_inst = |
| 78 | TheTransportRegistry.create_inst("myctp", |
| 79 | TheTransportRegistry.TRANSPORT_TCP); |
| 80 | assert (transport_inst != null); |
| 81 | transport_config.addLast(transport_inst); |
| 82 | |
| 83 | TheTransportRegistry.bind_config(transport_config, publisher); |
| 84 | |
| 85 | subscriber = participant.create_subscriber(SUBSCRIBER_QOS_DEFAULT.get(), null, DEFAULT_STATUS_MASK.value); |
| 86 | assert (subscriber != null); |
| 87 | |
| 88 | TheTransportRegistry.bind_config(transport_config, subscriber); |
| 89 | } |
| 90 | |
| 91 | protected static void testQuotes() throws Exception { |
| 92 | System.out.println("And now for something completely different..."); |
no test coverage detected