-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare module dependencies bootique/bootique#203
- Loading branch information
Showing
6 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...que-shiro-web-mdc/src/test/java/io/bootique/shiro/web/mdc/ShiroWebModuleProviderTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
package io.bootique.shiro.web.mdc; | ||
|
||
import io.bootique.BQRuntime; | ||
import io.bootique.shiro.web.ShiroWebModule; | ||
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 ShiroWebModuleProviderTest { | ||
|
||
@Rule | ||
public BQTestFactory testFactory = new BQTestFactory(); | ||
|
||
@Test | ||
public void testPresentInJar() { | ||
BQModuleProviderChecker.testPresentInJar(ShiroWebMDCModuleProvider.class); | ||
} | ||
|
||
@Test | ||
public void testModuleDeclaresDependencies() { | ||
final BQRuntime bqRuntime = testFactory.app().module(new ShiroWebMDCModuleProvider()).createRuntime(); | ||
BQModuleProviderChecker.testModulesLoaded(bqRuntime, of( | ||
ShiroWebModule.class, | ||
ShiroWebMDCModule.class | ||
)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters