我在JUnit中遇到AssertEquals的问题,因为我试图比较两个对象的比例,我得到这个错误:
java.lang.AssertionError: expected: com.euris.Price<Price [1p 19s 2d -2a]> but was: com.euris.Price<Price [1p 19s 2d -2a]>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:144)
at com.euris.exercise.ExerciseApplicationTests.contextLoads(ExerciseApplicationTests.java:31)
mework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
任何人都可以帮助我吗?