diff --git a/scheme/proto/src/test/java/cz/o2/proxima/scheme/proto/ProtoMessageValueAccessorTest.java b/scheme/proto/src/test/java/cz/o2/proxima/scheme/proto/ProtoMessageValueAccessorTest.java index d9705c68d..3ab7b2fbc 100644 --- a/scheme/proto/src/test/java/cz/o2/proxima/scheme/proto/ProtoMessageValueAccessorTest.java +++ b/scheme/proto/src/test/java/cz/o2/proxima/scheme/proto/ProtoMessageValueAccessorTest.java @@ -244,7 +244,8 @@ public void testCreateProtoWhereRepeatedFieldChangedToOptional() { public void testFieldAccessors() { final StructureValueAccessor accessor = new ProtoMessageValueAccessor<>(ValueSchemeMessage::getDefaultInstance); - final InnerMessage innerMessage = InnerMessage.newBuilder().setInnerDoubleType(1.2).build(); + final InnerMessage innerMessage = + InnerMessage.newBuilder().setInnerEnum(Directions.LEFT).setInnerDoubleType(1.2).build(); final ValueSchemeMessage message = ValueSchemeMessage.newBuilder() .setStringType("test string") @@ -261,6 +262,7 @@ public void testFieldAccessors() { (StructureValueAccessor) accessor.getFieldAccessor("inner_message"); assertEquals( 1.2d, innerMessageAccessor.getRawFieldValue("inner_double_type", innerMessage), 0.0); + assertEquals("LEFT", innerMessageAccessor.getRawFieldValue("inner_enum", innerMessage)); // Test string type accessor. @SuppressWarnings("unchecked")