spmallette commented on a change in pull request #1360:
URL: https://github.com/apache/tinkerpop/pull/1360#discussion_r526072615



##########
File path: 
gremlin-driver/src/test/java/org/apache/tinkerpop/gremlin/driver/ser/binary/types/sample/SamplePersonSerializerTest.java
##########
@@ -93,7 +93,7 @@ public void readValueAndWriteValueShouldBeSymmetric() throws 
IOException {
             writer.writeValue(person, buffer, nullable);
             final SamplePerson actual = reader.readValue(buffer, 
SamplePerson.class, nullable);
 
-            assertThat(actual, new ReflectionEquals(person));
+            Assert.assertTrue(new ReflectionEquals(person).matches(actual));

Review comment:
       nit: we tend to prefer to statically import the assertion method and to 
avoid `assertTrue()` which provides a terrible failure message, thus we would 
typically prefer: `assertThat(new ReflectionEquals(person).matches(actual), 
is(true))`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to