Open opensource21 opened 11 years ago
I have the follwing test using Mockito and fest-assert Version 1.4. Assert.assertEquals is the normal JUnit-assert.
@Test public void bugReport() { // Arrange final Iterator<String> result = mock(Iterator.class); final List<String> listMock = mock(List.class); when(listMock.iterator()).thenReturn(result); // Act final Iterator<String> testResult = listMock.iterator(); // Assert Assert.assertSame(result, testResult); assertThat(testResult).isEqualTo(result); }
It fails at the last line. The problem is that is compares a org.fest.assertions.IteratorAssert.PrettyPrintIterator with result. This fails.
Same for Type java.util.ListIterator<String>.
java.util.ListIterator<String>
I have the follwing test using Mockito and fest-assert Version 1.4. Assert.assertEquals is the normal JUnit-assert.
It fails at the last line. The problem is that is compares a org.fest.assertions.IteratorAssert.PrettyPrintIterator with result. This fails.