Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions rcljava/src/test/java/org/ros2/rcljava/node/NodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -954,10 +954,10 @@ public final void testGetTopicNamesAndTypes() throws Exception {
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_one");
Publisher<rcljava.msg.UInt32> publisher2 = node.<rcljava.msg.UInt32>createPublisher(
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_two");
Subscription<rcljava.msg.Empty> subscription = node.<rcljava.msg.Empty>createSubscription(
rcljava.msg.Empty.class, "test_get_topic_names_and_types_one",
new Consumer<rcljava.msg.Empty>() {
public void accept(final rcljava.msg.Empty msg) {}
Subscription<rcljava.msg.UInt32> subscription = node.<rcljava.msg.UInt32>createSubscription(
rcljava.msg.UInt32.class, "test_get_topic_names_and_types_one",
new Consumer<rcljava.msg.UInt32>() {
public void accept(final rcljava.msg.UInt32 msg) {}
});
Subscription<rcljava.msg.Empty> subscription2 = node.<rcljava.msg.Empty>createSubscription(
rcljava.msg.Empty.class, "test_get_topic_names_and_types_three",
Expand All @@ -975,7 +975,7 @@ public void accept(final Collection<NameAndTypes> namesAndTypes) {
namesAndTypes.contains(
new NameAndTypes(
"/test_get_topic_names_and_types_one",
new ArrayList(Arrays.asList("rcljava/msg/Empty", "rcljava/msg/UInt32")))));
new ArrayList(Arrays.asList("rcljava/msg/UInt32")))));
assertTrue(
"topic 'test_get_topic_names_and_types_two' was not discovered",
namesAndTypes.contains(
Expand Down