Search in sources :

Example 1 with Config

use of org.jenkinsci.test.acceptance.Config in project acceptance-test-harness by jenkinsci.

the class World method configure.

@Override
protected void configure() {
    // lowest priority is our default binding
    Module m = new FallbackConfig();
    // let extensions override the fallback config
    m = Modules.override(m).with(new ExtensionFinder(cl));
    // user config trumps everything
    m = Modules.override(m).with(new Config());
    install(m);
}
Also used : FallbackConfig(org.jenkinsci.test.acceptance.FallbackConfig) ExtensionFinder(com.cloudbees.sdk.extensibility.ExtensionFinder) FallbackConfig(org.jenkinsci.test.acceptance.FallbackConfig) Config(org.jenkinsci.test.acceptance.Config) Module(com.google.inject.Module) AbstractModule(com.google.inject.AbstractModule)

Aggregations

ExtensionFinder (com.cloudbees.sdk.extensibility.ExtensionFinder)1 AbstractModule (com.google.inject.AbstractModule)1 Module (com.google.inject.Module)1 Config (org.jenkinsci.test.acceptance.Config)1 FallbackConfig (org.jenkinsci.test.acceptance.FallbackConfig)1