Search in sources :

Example 1 with VersionResolver

use of org.ops4j.pax.exam.options.MavenUrlReference.VersionResolver in project jetty.project by eclipse.

the class TestJettyOSGiBootCore method config.

@Configuration
public Option[] config() {
    VersionResolver resolver = MavenUtils.asInProject();
    ArrayList<Option> options = new ArrayList<Option>();
    options.addAll(provisionCoreJetty());
    options.add(CoreOptions.junitBundles());
    options.addAll(httpServiceJetty());
    options.addAll(Arrays.asList(options(systemProperty("pax.exam.logging").value("none"))));
    options.addAll(Arrays.asList(options(systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value(LOG_LEVEL))));
    options.addAll(Arrays.asList(options(systemProperty("org.eclipse.jetty.LEVEL").value(LOG_LEVEL))));
    options.addAll(Arrays.asList(options(systemProperty("org.eclipse.jetty.annotations.LEVEL").value("DEBUG"))));
    return options.toArray(new Option[options.size()]);
}
Also used : VersionResolver(org.ops4j.pax.exam.options.MavenUrlReference.VersionResolver) ArrayList(java.util.ArrayList) Option(org.ops4j.pax.exam.Option) Configuration(org.ops4j.pax.exam.Configuration)

Aggregations

ArrayList (java.util.ArrayList)1 Configuration (org.ops4j.pax.exam.Configuration)1 Option (org.ops4j.pax.exam.Option)1 VersionResolver (org.ops4j.pax.exam.options.MavenUrlReference.VersionResolver)1