Changeset 10002 in josm
- Timestamp:
- 2016-03-17T01:56:30+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java
r9458 r10002 3 3 4 4 import static org.junit.Assert.assertFalse; 5 import static org.junit.Assert.assertNotSame; 6 import static org.junit.Assert.assertSame; 5 7 import static org.junit.Assert.assertTrue; 6 8 … … 77 79 timer = PerformanceTestUtils.startTimer("str1 == str2 succeeds"); 78 80 for (int i = 0; i < STRING_INTERN_TESTS; i++) { 79 assert True(str1Interned ==str1InternedB);81 assertSame(str1Interned, str1InternedB); 80 82 } 81 83 timer.done(); … … 83 85 timer = PerformanceTestUtils.startTimer("str1 == str2.intern() succeeds"); 84 86 for (int i = 0; i < STRING_INTERN_TESTS; i++) { 85 assert True(str1Interned ==str1.intern());87 assertSame(str1Interned, str1.intern()); 86 88 } 87 89 timer.done(); … … 89 91 timer = PerformanceTestUtils.startTimer("str1 == str2.intern() succeeds for interned string"); 90 92 for (int i = 0; i < STRING_INTERN_TESTS; i++) { 91 assert True(str1Interned ==str1InternedB.intern());93 assertSame(str1Interned, str1InternedB.intern()); 92 94 } 93 95 timer.done(); … … 101 103 timer = PerformanceTestUtils.startTimer("str1 == str2 fails"); 102 104 for (int i = 0; i < STRING_INTERN_TESTS; i++) { 103 assert False(str1Interned ==str2Interned);105 assertNotSame(str1Interned, str2Interned); 104 106 } 105 107 timer.done(); … … 107 109 timer = PerformanceTestUtils.startTimer("str1 == str2.intern() fails"); 108 110 for (int i = 0; i < STRING_INTERN_TESTS; i++) { 109 assert False(str1Interned ==str2.intern());111 assertNotSame(str1Interned, str2.intern()); 110 112 } 111 113 timer.done();
Note:
See TracChangeset
for help on using the changeset viewer.