private void setupInstance(GwtModuleRunner gwtModuleRunner) { if (this.gwtModuleRunner != null) { throw new GwtTestException( "Because of the single-threaded nature of the GWT environment, gwt-test-utils tests can not be run in multiple thread at the same time"); } this.gwtModuleRunner = gwtModuleRunner; this.checkedModuleName = getCheckedModuleName(); setLocale(gwtModuleRunner.getLocale()); setupDebugIdImpl(gwtModuleRunner); if (gwtModuleRunner.getHostPagePath() == null) { LOGGER.warn( "Cannot find the actual HTML host page for module '" + gwtModuleRunner.getModuleName() + "'. You should override " + GwtModuleRunner.class.getName() + ".getHostPagePath(String moduleFullQualifiedName) method to specify it."); } AfterTestCallbackManager.get().registerCallback(this); }
public String getHostPagePath() { return gwtModuleRunner.getHostPagePath(); }