All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.junit.GwtBlockJUnit4ClassRunner Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.junit;

import com.googlecode.gwt.test.internal.GwtConfig;
import org.junit.runner.Runner;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;

/**
 * gwt-test-utils {@link Runner}, which adds a {@link GwtRunListener} before running each test.
 * For internal use only.
 *
 * @author Gael Lazzari
 */
public class GwtBlockJUnit4ClassRunner extends BlockJUnit4ClassRunner {

    public GwtBlockJUnit4ClassRunner(Class klass) throws InitializationError {
        super(klass);
    }

    @Override
    public void run(RunNotifier notifier) {
        notifier.addListener(new GwtRunListener());
        GwtConfig.get().setupGwtModule(getTestClass().getJavaClass());
        super.run(notifier);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy