001package org.slf4j.rule;
002
003import static org.junit.Assert.fail;
004
005import org.junit.Ignore;
006import org.junit.Rule;
007import org.junit.Test;
008
009@Ignore // this test has intentional fails
010public class BlaTest {
011
012    @Rule
013    public RunInNewThreadRule runInThread = new RunInNewThreadRule();
014
015    @Test
016    public void aTest() {
017        System.out.println("running aTest in "+ Thread.currentThread().getName());
018    }
019    
020    @RunInNewThread
021    @Test
022    public void bTest() {
023        System.out.println("running bTest in "+ Thread.currentThread().getName());
024    }
025  
026    @RunInNewThread(timeout = 2000L)
027    @Test
028    public void cTest() {
029        System.out.println("running cTest in "+ Thread.currentThread().getName());
030    }
031    @RunInNewThread()
032    @Test
033    public void dTest() {
034        System.out.println("running dTest in "+ Thread.currentThread().getName());
035        fail();
036    }
037}
038