/*******************************************************************************
 * Copyright (c) 2014 Felix Kutzner.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Felix Kutzner - initial implementation.
 ******************************************************************************/

package tools.vitruv.domains.emf.monitorededitor.test.utils;

import java.net.URL;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.eclipse.emf.common.util.URI;

public class BasicTestCase {
    public static final String PLUGIN_NAME = "tools.vitruv.extensions.emf.monitorededitor.tests";

    private static boolean hasLoggerBeenInitialized = false;
    protected Logger LOGGER = Logger.getLogger(BasicTestCase.class);

    public BasicTestCase() {
        synchronized (BasicTestCase.class) {
            if (!hasLoggerBeenInitialized) {
                org.apache.log4j.BasicConfigurator.configure();
                hasLoggerBeenInitialized = true;
                Logger.getRootLogger().setLevel(Level.ALL);
            }
        }
    }

    public static URI getURI(URL modelURL) {
        return URI.createPlatformPluginURI(PLUGIN_NAME + modelURL.getFile(), true);
    }

}

@@ -594,39 +594,8 @@
 L;%0A%0A
-import org.apache.log4j.Level;%0A
 impo
@@ -1158,68 +1158,8 @@
 ue;%0A
-                Logger.getRootLogger().setLevel(Level.ALL);%0A
     

Disable debug output in EMF monitored editor tests