Ignore:
Timestamp:
2016-02-13T19:35:29+01:00 (9 years ago)
Author:
floscher
Message:

[mapillary] Fix usage of traffico.ttf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/TestUtil.java

    r31820 r32067  
    33import static org.junit.Assert.assertEquals;
    44import static org.junit.Assert.assertTrue;
     5import static org.junit.Assert.fail;
    56
    67import java.lang.reflect.Constructor;
     8import java.lang.reflect.InvocationTargetException;
    79import java.lang.reflect.Method;
    810import java.lang.reflect.Modifier;
     
    2022 * @author floscher
    2123 */
    22 public class TestUtil {
     24public final class TestUtil {
    2325  private static boolean isInitialized;
    2426
     
    3335   * That is needed e.g. to use {@link MapillaryLayer#getInstance()}
    3436   */
    35   public static final void initPlugin() {
     37  public static final synchronized void initPlugin() {
    3638    if (!isInitialized) {
    3739      System.setProperty("josm.home", "test/data/preferences");
     
    7375        assertTrue(m.getDeclaringClass() != c || Modifier.isStatic(m.getModifiers()));
    7476      }
    75     } catch (Exception e) {
    76       assertTrue(e.getMessage(), false);
     77    } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
     78      fail(e.getLocalizedMessage());
    7779    }
    7880  }
Note: See TracChangeset for help on using the changeset viewer.