use of io.github.nucleuspowered.nucleus.tests.util.TestModule in project Nucleus by NucleusPowered.
the class ChatUtilTests method setup.
@BeforeClass
public static void setup() throws Exception {
TestBase.testSetup();
NucleusPlugin plugin = Guice.createInjector(new TestModule()).getInstance(NucleusPlugin.class);
Field parserToTest = TextParsingUtils.class.getDeclaredField("urlParser");
parserToTest.setAccessible(true);
patternToTest = (Pattern) parserToTest.get(new TextParsingUtils(plugin));
}
Aggregations