Changeset 32067 in osm for applications/editors/josm/plugins/mapillary/test/unit
- Timestamp:
- 2016-02-13T19:35:29+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/TestUtil.java
r31820 r32067 3 3 import static org.junit.Assert.assertEquals; 4 4 import static org.junit.Assert.assertTrue; 5 import static org.junit.Assert.fail; 5 6 6 7 import java.lang.reflect.Constructor; 8 import java.lang.reflect.InvocationTargetException; 7 9 import java.lang.reflect.Method; 8 10 import java.lang.reflect.Modifier; … … 20 22 * @author floscher 21 23 */ 22 public class TestUtil { 24 public final class TestUtil { 23 25 private static boolean isInitialized; 24 26 … … 33 35 * That is needed e.g. to use {@link MapillaryLayer#getInstance()} 34 36 */ 35 public static final void initPlugin() { 37 public static final synchronized void initPlugin() { 36 38 if (!isInitialized) { 37 39 System.setProperty("josm.home", "test/data/preferences"); … … 73 75 assertTrue(m.getDeclaringClass() != c || Modifier.isStatic(m.getModifiers())); 74 76 } 75 } catch (Exception e) { 76 assertTrue(e.getMessage(), false);77 } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { 78 fail(e.getLocalizedMessage()); 77 79 } 78 80 }
Note:
See TracChangeset
for help on using the changeset viewer.