org.webpieces.webserver.test.SeleniumOverridesForTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-webserver-test Show documentation
Show all versions of http-webserver-test Show documentation
The full webpieces server AS A library
package org.webpieces.webserver.test;
import org.webpieces.templating.api.TemplateCompileConfig;
import org.webpieces.templating.api.TemplateService;
import org.webpieces.templating.impl.DevTemplateService;
import com.google.inject.Binder;
import com.google.inject.Module;
public class SeleniumOverridesForTest implements Module {
private TemplateCompileConfig templateConfig;
public SeleniumOverridesForTest() {
this(new TemplateCompileConfig());
}
public SeleniumOverridesForTest(TemplateCompileConfig templateCompileConfig) {
this.templateConfig = templateCompileConfig;
}
@Override
public void configure(Binder binder) {
//This actually helps us test the full cycle of gradle plugin compile to using
//the compiled template where the ProdTemplateService would test 'less' code
//so we get more bang for our buck in code coverage...
binder.bind(TemplateService.class).to(DevTemplateService.class);
binder.bind(TemplateCompileConfig.class).toInstance(templateConfig);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy