diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-10-04 12:32:13 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-10-04 12:32:24 -0400 |
commit | 17a7490cabfd4428cfdb5d9106dc076b1dc4b905 (patch) | |
tree | 32b4cb8f610da83d349d3030665dccc10c17f740 /sangria-log4j/src/test/java | |
parent | 181bf8b43411ff309517ca6ca804fc34dae1e13a (diff) | |
download | sangria-17a7490cabfd4428cfdb5d9106dc076b1dc4b905.tar.xz |
log4j: Test best practices.
Diffstat (limited to 'sangria-log4j/src/test/java')
-rw-r--r-- | sangria-log4j/src/test/java/com/tavianator/sangria/log4j/SangriaLog4jModuleTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sangria-log4j/src/test/java/com/tavianator/sangria/log4j/SangriaLog4jModuleTest.java b/sangria-log4j/src/test/java/com/tavianator/sangria/log4j/SangriaLog4jModuleTest.java index d91cf90..a3ecd66 100644 --- a/sangria-log4j/src/test/java/com/tavianator/sangria/log4j/SangriaLog4jModuleTest.java +++ b/sangria-log4j/src/test/java/com/tavianator/sangria/log4j/SangriaLog4jModuleTest.java @@ -29,6 +29,7 @@ import org.apache.logging.log4j.Logger; import org.junit.Before; import org.junit.Test; +import static com.tavianator.sangria.test.SangriaMatchers.*; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; @@ -74,7 +75,8 @@ public class SangriaLog4jModuleTest { } @Test - public void testDeDuplication() { - Guice.createInjector(new SangriaLog4jModule(), new SangriaLog4jModule()); + public void testBestPractices() { + assertThat(new SangriaLog4jModule(), is(atomic())); + assertThat(new SangriaLog4jModule(), followsBestPractices()); } } |