package io.bootique.logback.sentry;

import io.bootique.BQRuntime;
import io.bootique.logback.LogbackModule;
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 LogbackSentryModuleProviderIT {

    @Rule
    public BQTestFactory testFactory = new BQTestFactory();

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

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

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

@@ -157,16 +157,64 @@
 hecker;%0A
+import io.bootique.test.junit.BQRuntimeChecker;%0A
 import i
@@ -301,67 +301,8 @@
 t;%0A%0A
-import static com.google.common.collect.ImmutableList.of;%0A%0A
 publ
@@ -864,38 +864,31 @@
 ;%0A        BQ
-ModuleProvider
+Runtime
 Checker.test
@@ -916,11 +916,8 @@
 me, 
-of(
 Logb
@@ -959,17 +959,16 @@
 e.class)
-)
 ;%0A    %7D%0A

Declare module dependencies bootique/bootique#203