Skip to content
Snippets Groups Projects
Commit 9d4fe89d authored by Rodrigo Queiro's avatar Rodrigo Queiro
Browse files

Add @Test to testInt8List and fix it

This makes sure it is run. This was caught by error-prone.

The test was also failing, so fix the copy-paste error in
PrimitiveFieldType that broke it.
parent 304e5219
Branches
Tags
No related merge requests found
...@@ -81,7 +81,7 @@ public enum PrimitiveFieldType implements FieldType { ...@@ -81,7 +81,7 @@ public enum PrimitiveFieldType implements FieldType {
@Override @Override
public Field newVariableList(String name, int size) { public Field newVariableList(String name, int size) {
return ChannelBufferField.newVariable(this, name, size); return ByteArrayField.newVariable(this, name, size);
} }
@Override @Override
......
...@@ -114,6 +114,7 @@ public class MessageTest { ...@@ -114,6 +114,7 @@ public class MessageTest {
assertEquals("Hello, ROS! # comment", rawMessage.getString("data")); assertEquals("Hello, ROS! # comment", rawMessage.getString("data"));
} }
@Test
public void testInt8List() { public void testInt8List() {
topicDefinitionResourceProvider.add("foo/foo", "int8[] data"); topicDefinitionResourceProvider.add("foo/foo", "int8[] data");
RawMessage rawMessage = messageFactory.newFromType("foo/foo"); RawMessage rawMessage = messageFactory.newFromType("foo/foo");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment