net.thucydides.junit.guice.JUnitInjectors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serenity-junit Show documentation
Show all versions of serenity-junit Show documentation
Serenity JUnit integration
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