opwvhk commented on a change in pull request #1590:
URL: https://github.com/apache/avro/pull/1590#discussion_r822547906
##########
File path: lang/java/avro/src/test/java/org/apache/avro/TestLogicalType.java
##########
@@ -285,14 +288,20 @@ public void
testRegisterLogicalTypeWithFactoryNameNotProvided() {
IsMapContaining.hasEntry("logicalTypeName", factory));
}
+ @Test
+ public void testRegisterLogicalTypeFactoryByServiceLoader() {
+ MatcherAssert.assertThat(LogicalTypes.getCustomRegisteredTypes(),
+ IsMapContaining.hasEntry(equalTo("service-example"),
instanceOf(LogicalTypes.LogicalTypeFactory.class)));
+ }
+
public static void assertEqualsTrue(String message, Object o1, Object o2) {
- Assert.assertTrue("Should be equal (forward): " + message, o1.equals(o2));
- Assert.assertTrue("Should be equal (reverse): " + message, o2.equals(o1));
+ Assert.assertEquals("Should be equal (forward): " + message, o1, o2);
+ Assert.assertEquals("Should be equal (reverse): " + message, o2, o1);
Review comment:
Boyscout rule (plus a few more)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]