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
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ public enum PrimitiveFieldType implements FieldType {
@Override
public Field newVariableList(String name, int size) {
return ChannelBufferField.newVariable(this, name, size);
return ByteArrayField.newVariable(this, name, size);
}
@Override
......
......@@ -114,6 +114,7 @@ public class MessageTest {
assertEquals("Hello, ROS! # comment", rawMessage.getString("data"));
}
@Test
public void testInt8List() {
topicDefinitionResourceProvider.add("foo/foo", "int8[] data");
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