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

Last change on this file since 17383 was 17275, checked in by Don-vip, 3 years ago

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

  • Property svn:eol-style set to native
File size: 591 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4import org.junit.jupiter.api.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 */
13class PairTest {
14
15 /**
16 * Unit test of methods {@link Pair#equals} and {@link Pair#hashCode}.
17 */
18 @Test
19 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.