Ignore:
Timestamp:
2017-11-04T20:27:56+01:00 (4 years ago)
Author:
Don-vip
Message:

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

Location:
trunk/test/unit/org/openstreetmap/josm/spi/preferences
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/spi/preferences/ListListSettingTest.java

    r12884 r13079  
    44import org.junit.Rule;
    55import org.junit.Test;
     6import org.openstreetmap.josm.TestUtils;
    67import org.openstreetmap.josm.testutils.JOSMTestRules;
    78
     
    2526    @Test
    2627    public void testEqualsContract() {
     28        TestUtils.assumeWorkingEqualsVerifier();
    2729        EqualsVerifier.forClass(ListListSetting.class).usingGetClass()
    2830            .withIgnoredFields("isNew", "time")
  • trunk/test/unit/org/openstreetmap/josm/spi/preferences/ListSettingTest.java

    r12884 r13079  
    44import org.junit.Rule;
    55import org.junit.Test;
     6import org.openstreetmap.josm.TestUtils;
    67import org.openstreetmap.josm.testutils.JOSMTestRules;
    78
     
    2526    @Test
    2627    public void testEqualsContract() {
     28        TestUtils.assumeWorkingEqualsVerifier();
    2729        EqualsVerifier.forClass(ListSetting.class).usingGetClass()
    2830            .withIgnoredFields("isNew", "time")
  • trunk/test/unit/org/openstreetmap/josm/spi/preferences/MapListSettingTest.java

    r12884 r13079  
    44import org.junit.Rule;
    55import org.junit.Test;
     6import org.openstreetmap.josm.TestUtils;
    67import org.openstreetmap.josm.testutils.JOSMTestRules;
    78
     
    2526    @Test
    2627    public void testEqualsContract() {
     28        TestUtils.assumeWorkingEqualsVerifier();
    2729        EqualsVerifier.forClass(MapListSetting.class).usingGetClass()
    2830            .withIgnoredFields("isNew", "time")
  • trunk/test/unit/org/openstreetmap/josm/spi/preferences/StringSettingTest.java

    r12884 r13079  
    44import org.junit.Rule;
    55import org.junit.Test;
     6import org.openstreetmap.josm.TestUtils;
    67import org.openstreetmap.josm.testutils.JOSMTestRules;
    78
     
    2526    @Test
    2627    public void testEqualsContract() {
     28        TestUtils.assumeWorkingEqualsVerifier();
    2729        EqualsVerifier.forClass(StringSetting.class).usingGetClass()
    2830            .withIgnoredFields("isNew", "time")
Note: See TracChangeset for help on using the changeset viewer.