Changeset 10222 in josm for trunk/test/performance/org/openstreetmap/josm/data
- Timestamp:
- 2016-05-15T21:14:06+02:00 (9 years ago)
- Location:
- trunk/test/performance/org/openstreetmap/josm/data/osm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java
r10002 r10222 20 20 import org.openstreetmap.josm.PerformanceTestUtils.PerformanceTestTimer; 21 21 import org.openstreetmap.josm.data.osm.OsmDataGenerator.KeyValueDataGenerator; 22 23 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 22 24 23 25 /** … … 38 40 */ 39 41 @Rule 42 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 40 43 public Timeout globalTimeout = Timeout.seconds(15*60); 41 44 … … 52 55 */ 53 56 @Test 54 public void meassureStringEqualsIntern() { 57 @SuppressFBWarnings(value = "DM_STRING_CTOR", justification = "test Strings that are interned and those that are not") 58 public void measureStringEqualsIntern() { 55 59 String str1Interned = "string1"; 56 60 String str1InternedB = "string1"; … … 196 200 */ 197 201 @Test 202 @SuppressFBWarnings(value = "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT") 198 203 public void testKeyValueGetKeysGet() { 199 204 for (double tagNodeRatio : TAG_NODE_RATIOS) { -
trunk/test/performance/org/openstreetmap/josm/data/osm/RoundingPerformanceTest.java
r7937 r10222 7 7 import org.openstreetmap.josm.data.coor.LatLon; 8 8 import org.openstreetmap.josm.data.coor.LatLonTest; 9 10 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 9 11 10 12 /** … … 22 24 */ 23 25 @Test 26 @SuppressFBWarnings(value = "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT") 24 27 public void test() { 25 28 final int n = 1000000; -
trunk/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRendererPerformanceTestParent.java
r10197 r10222 24 24 import org.openstreetmap.josm.io.OsmReader; 25 25 26 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 27 26 28 /** 27 29 * Abstract superclass of {@code StyledMapRendererPerformanceTest} and {@code WireframeMapRendererPerformanceTest}. … … 32 34 private static final int IMG_HEIGHT = 1050; 33 35 36 @SuppressFBWarnings(value = "MS_PKGPROTECT") 34 37 protected static Graphics2D g; 38 @SuppressFBWarnings(value = "MS_PKGPROTECT") 35 39 protected static BufferedImage img; 40 @SuppressFBWarnings(value = "MS_PKGPROTECT") 36 41 protected static NavigatableComponent nc; 37 42 private static DataSet dsRestriction; … … 43 48 */ 44 49 @Rule 50 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 45 51 public Timeout globalTimeout = Timeout.seconds(15*60); 46 52 … … 121 127 } 122 128 123 /** run this manually to verify that the rendering is set up properly */ 129 /** 130 * run this manually to verify that the rendering is set up properly 131 * @throws IOException if any I/O error occurs 132 */ 133 @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD") 124 134 private void dumpRenderedImage() throws IOException { 125 File outputfile = new File("test-neubrandenburg.png"); 126 ImageIO.write(img, "png", outputfile); 135 ImageIO.write(img, "png", new File("test-neubrandenburg.png")); 127 136 } 128 137 } -
trunk/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRendererPerformanceTest.java
r10197 r10222 9 9 import org.junit.BeforeClass; 10 10 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 11 12 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 11 13 12 14 /** … … 27 29 } 28 30 29 /** run this manually to verify that the rendering is set up properly */ 31 /** 32 * run this manually to verify that the rendering is set up properly 33 * @throws IOException if any I/O error occurs 34 */ 35 @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD") 30 36 private void dumpRenderedImage() throws IOException { 31 File outputfile = new File("test-neubrandenburg.png"); 32 ImageIO.write(img, "png", outputfile); 37 ImageIO.write(img, "png", new File("test-neubrandenburg.png")); 33 38 } 34 39 }
Note:
See TracChangeset
for help on using the changeset viewer.