1 package org.slf4j.rule;
2
3 import static org.junit.Assert.fail;
4
5 import org.junit.Ignore;
6 import org.junit.Rule;
7 import org.junit.Test;
8
9 @Ignore
10 public class BlaTest {
11
12 @Rule
13 public RunInNewThreadRule runInThread = new RunInNewThreadRule();
14
15 @Test
16 public void aTest() {
17 System.out.println("running aTest in "+ Thread.currentThread().getName());
18 }
19
20 @RunInNewThread
21 @Test
22 public void bTest() {
23 System.out.println("running bTest in "+ Thread.currentThread().getName());
24 }
25
26 @RunInNewThread(timeout = 2000L)
27 @Test
28 public void cTest() {
29 System.out.println("running cTest in "+ Thread.currentThread().getName());
30 }
31 @RunInNewThread()
32 @Test
33 public void dTest() {
34 System.out.println("running dTest in "+ Thread.currentThread().getName());
35 fail();
36 }
37 }
38