Hello,I've used EqualsVerifier successfully in the past, very useful =)Today, I ran into an issue with EqualsVerifier verifying an Object with a Joda time LocalDate field:java.lang.AbstractMethodError: org.joda.time.Chronology.year()Lorg/joda/time/DateTimeField;
I created a very simple test to demonstrate. In a previous post it was suggested that perhaps it was an internal String usage by the Joda time library. If that is the case, is there a recommended work-around?Thanks!-StanTest Code: uses Lombok for the Equals and HashCode implementation, but I also tried manually implementing and got the same error.public class JodaTimeEqualsVerifierTest{@Test public void test() {// passesEqualsVerifier.forClass(ObjectContainingString.class).verify();// Causes AbstractMethodErrorEqualsVerifier.forClass(ObjectContainingLocalDate.class).verify();}}@AllArgsConstructor @EqualsAndHashCodefinal class ObjectContainingString {private final String time;}@AllArgsConstructor @EqualsAndHashCodefinal class ObjectContainingLocalDate {private final LocalDate time;}Complete project posted to github for easy reference: https://github.com/sek/learning_lombokFull Stack Trace:java.lang.AssertionError: java.lang.AbstractMethodError: org.joda.time.Chronology.year()Lorg/joda/time/DateTimeField;--For more information, go to: http://code.google.com/p/equalsverifier/wiki/ErrorMessagesat nl.jqno.equalsverifier.util.Assert.fail(Assert.java:80)at nl.jqno.equalsverifier.EqualsVerifier.handleError(EqualsVerifier.java:355)at nl.jqno.equalsverifier.EqualsVerifier.verify(EqualsVerifier.java:343)at com.example.learning_lombok.EqualsTest.testJodaTimeField(EqualsTest.java:15)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:601)at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)at org.junit.runners.ParentRunner.run(ParentRunner.java:309)at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
You received this message because you are subscribed to the Google Groups "equalsverifier" group.
To unsubscribe from this group and stop receiving emails from it, send an email to equalsverifie...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.