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

net.thucydides.junit.guice.JUnitInjectors Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.thucydides.junit.guice;

import com.google.inject.Guice;
import com.google.inject.Injector;

/**
 * Somewhere to hold the Guice injector.
 * There might be a better way to do this.
 */
public class JUnitInjectors {

    private static Injector injector;

    public static Injector getInjector() {
        if (injector == null) {
            injector = Guice.createInjector(new ThucydidesJUnitModule());
        }
        return injector;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy