package io.bootique.job.instrumented;

import io.bootique.BQRuntime;
import io.bootique.job.runtime.JobModule;
import io.bootique.metrics.MetricsModule;
import io.bootique.test.junit.BQModuleProviderChecker;
import io.bootique.test.junit.BQTestFactory;
import org.junit.Rule;
import org.junit.Test;

import static com.google.common.collect.ImmutableList.of;

public class InstrumentedJobModuleProviderIT {

    @Rule
    public BQTestFactory testFactory = new BQTestFactory();

    @Test
    public void testPresentInJar() {
        BQModuleProviderChecker.testPresentInJar(InstrumentedJobModuleProvider.class);
    }

    @Test
    public void testModuleDeclaresDependencies() {
        final BQRuntime bqRuntime = testFactory.app().module(new InstrumentedJobModuleProvider()).createRuntime();
        BQModuleProviderChecker.testModulesLoaded(bqRuntime, of(JobModule.class, MetricsModule.class));
    }
}

@@ -201,16 +201,64 @@
 hecker;%0A
+import io.bootique.test.junit.BQRuntimeChecker;%0A
 import i
@@ -345,67 +345,8 @@
 t;%0A%0A
-import static com.google.common.collect.ImmutableList.of;%0A%0A
 publ
@@ -783,38 +783,31 @@
 ;%0A        BQ
-ModuleProvider
+Runtime
 Checker.test
@@ -835,11 +835,8 @@
 me, 
-of(
 JobM
@@ -868,17 +868,16 @@
 e.class)
-)
 ;%0A    %7D%0A

Declare module dependencies bootique/bootique#203