aboutsummaryrefslogtreecommitdiff
path: root/integration/src/test/java/org/slf4j/IncompatibleMultiBindingAssertionTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'integration/src/test/java/org/slf4j/IncompatibleMultiBindingAssertionTest.java')
-rw-r--r--integration/src/test/java/org/slf4j/IncompatibleMultiBindingAssertionTest.java24
1 files changed, 13 insertions, 11 deletions
diff --git a/integration/src/test/java/org/slf4j/IncompatibleMultiBindingAssertionTest.java b/integration/src/test/java/org/slf4j/IncompatibleMultiBindingAssertionTest.java
index 80c9b00e..c8fb4081 100644
--- a/integration/src/test/java/org/slf4j/IncompatibleMultiBindingAssertionTest.java
+++ b/integration/src/test/java/org/slf4j/IncompatibleMultiBindingAssertionTest.java
@@ -24,33 +24,35 @@
*/
package org.slf4j;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
import java.io.PrintStream;
import java.util.List;
import java.util.Random;
-import junit.framework.TestCase;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
-public class IncompatibleMultiBindingAssertionTest extends TestCase {
+public class IncompatibleMultiBindingAssertionTest {
StringPrintStream sps = new StringPrintStream(System.err);
PrintStream old = System.err;
int diff = 1024 + new Random().nextInt(10000);
- public IncompatibleMultiBindingAssertionTest(String name) {
- super(name);
- }
-
- protected void setUp() throws Exception {
- super.setUp();
+ @Before
+ public void setUp() throws Exception {
System.setErr(sps);
}
- protected void tearDown() throws Exception {
- super.tearDown();
+ @After
+ public void tearDown() throws Exception {
System.setErr(old);
}
- public void test() throws Exception {
+ @Test
+ public void smoke() throws Exception {
try {
Logger logger = LoggerFactory.getLogger(this.getClass());
String msg = "hello world " + diff;