Skip to content

Commit

Permalink
add workaround to jqno/equalsverifier#197
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@14004 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
don-vip committed Jul 5, 2018
1 parent e9f82b4 commit 72cd10e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void testTicket11957() throws IOException, IllegalDataException {
public void testEqualsContract() {
TestUtils.assumeWorkingEqualsVerifier();
EqualsVerifier.forClass(NodePair.class).usingGetClass()
.suppress(Warning.ANNOTATION) // FIXME: remove it after https://github.com/jqno/equalsverifier/issues/152 is fixed
.suppress(Warning.ANNOTATION) // FIXME: remove it after https://github.com/jqno/equalsverifier/issues/197 is fixed
.withPrefabValues(Node.class, new Node(1), new Node(2))
.verify();
}
Expand Down
5 changes: 4 additions & 1 deletion test/unit/org/openstreetmap/josm/gui/MapStatusTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;

/**
* Test {@link MapStatus}
Expand All @@ -27,6 +28,8 @@ public class MapStatusTest {
@Test
public void testEqualsContract() {
TestUtils.assumeWorkingEqualsVerifier();
EqualsVerifier.forClass(MapStatus.StatusTextHistory.class).withIgnoredFields("text").verify();
EqualsVerifier.forClass(MapStatus.StatusTextHistory.class)
.suppress(Warning.ANNOTATION) // FIXME: To remove once https://github.com/jqno/equalsverifier/issues/197 is fixed
.withIgnoredFields("text").verify();
}
}

0 comments on commit 72cd10e

Please sign in to comment.