source: josm/trunk/test/unit/org/openstreetmap/josm/tools/PairTest.java@ 13812

Last change on this file since 13812 was 13079, checked in by Don-vip, 6 years ago

see #15560 - EqualsVerifier does not work with newer Java versions -> disable tests automatically in this case
Workaround to https://github.com/jqno/equalsverifier/issues/177 / https://github.com/raphw/byte-buddy/issues/370
Inspired by https://issues.apache.org/jira/browse/SOLR-11606

  • Property svn:eol-style set to native
File size: 593 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4import org.junit.Test;
5import org.openstreetmap.josm.TestUtils;
6
7import nl.jqno.equalsverifier.EqualsVerifier;
8import nl.jqno.equalsverifier.Warning;
9
10/**
11 * Unit tests of {@link Pair} class.
12 */
13public class PairTest {
14
15 /**
16 * Unit test of methods {@link Pair#equals} and {@link Pair#hashCode}.
17 */
18 @Test
19 public void testEqualsContract() {
20 TestUtils.assumeWorkingEqualsVerifier();
21 EqualsVerifier.forClass(Pair.class).suppress(Warning.NONFINAL_FIELDS).verify();
22 }
23}
Note: See TracBrowser for help on using the repository browser.