Enable PMD rule SimplifiableTestAssertion and fix violations

This commit is contained in:
Manuel Fuhr 2022-11-13 15:55:52 +01:00
parent 09a9c1a104
commit b1a88b01ab
9 changed files with 25 additions and 30 deletions

View file

@ -10,7 +10,7 @@ public class MapcreatorTest {
@Test
public void mapcreatorTest() throws Exception {
URL mapurl = this.getClass().getResource("/dreieich.osm.gz");
Assert.assertTrue("test-osm-map dreieich.osm not found", mapurl != null);
Assert.assertNotNull("test-osm-map dreieich.osm not found", mapurl);
File mapFile = new File(mapurl.getFile());
File workingDir = mapFile.getParentFile();
File profileDir = new File(workingDir, "/../../../../misc/profiles2");