package io.bootique.linkmove;

import io.bootique.BQRuntime;
import io.bootique.cayenne.CayenneModule;
import io.bootique.jdbc.JdbcModule;
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 LinkMoveModuleProviderIT {

    @Rule
    public BQTestFactory testFactory = new BQTestFactory();

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

    @Test
    public void testMetadata() {
        BQModuleProviderChecker.testMetadata(LinkMoveModuleProvider.class);
    }

    @Test
    public void testModuleDeclaresDependencies() {
        final BQRuntime bqRuntime = testFactory.app().module(new LinkMoveModuleProvider()).createRuntime();
        BQModuleProviderChecker.testModulesLoaded(bqRuntime, of(
                JdbcModule.class,
                LinkMoveModule.class,
                CayenneModule.class
        ));
    }
}

@@ -187,16 +187,64 @@
 hecker;%0A
+import io.bootique.test.junit.BQRuntimeChecker;%0A
 import i
@@ -331,67 +331,8 @@
 t;%0A%0A
-import static com.google.common.collect.ImmutableList.of;%0A%0A
 publ
@@ -874,38 +874,31 @@
 ;%0A        BQ
-ModuleProvider
+Runtime
 Checker.test
@@ -925,12 +925,8 @@
 ime,
- of(
 %0A   
@@ -1038,17 +1038,16 @@
         
-)
 );%0A    %7D

Declare module dependencies bootique/bootique#203