Ignore:
Timestamp:
2016-10-09T23:50:56+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java

    r10758 r11114  
    22package org.openstreetmap.josm.data.osm;
    33
     4import static org.junit.Assert.assertEquals;
    45import static org.junit.Assert.assertFalse;
    56import static org.junit.Assert.assertNotSame;
     
    6667        for (int i = 0; i < STRING_INTERN_TESTS; i++) {
    6768            // warm up
    68             assertTrue(str1.equals(str1B));
     69            assertEquals(str1, str1B);
    6970        }
    7071
     
    7778        timer = PerformanceTestUtils.startTimer("str1.equals(str2) succeeds (without intern)");
    7879        for (int i = 0; i < STRING_INTERN_TESTS; i++) {
    79             assertTrue(str1.equals(str1B));
     80            assertEquals(str1, str1B);
    8081        }
    8182        timer.done();
Note: See TracChangeset for help on using the changeset viewer.