Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.junit.jupiter.api.AfterEach;
- import org.junit.jupiter.api.Assertions;
- import org.junit.jupiter.api.BeforeEach;
- import org.junit.jupiter.api.Test;
- public class ThreadingTest
- {
- @BeforeEach
- public void setUp() throws Exception
- {
- System.out.println( "Setup command " + Thread.currentThread().toString() );
- }
- @AfterEach
- public void tearDown() throws Exception
- {
- System.out.println( "Teardown command " + Thread.currentThread().getName() );
- }
- @Test
- public void test1() throws Exception
- {
- System.out.println("Test 1 thread is: "+Thread.currentThread().getName());
- Assertions.assertTrue( true );
- }
- @Test
- public void test2() throws Exception
- {
- System.out.println("Test 2 thread is: "+Thread.currentThread().getName());
- Assertions.assertTrue( true );
- }
- @Test
- public void test3() throws Exception
- {
- System.out.println("Test 3 thread is: "+Thread.currentThread().getName());
- Assertions.assertTrue( true );
- }
- @Test
- public void test4() throws Exception
- {
- System.out.println("Test 4 thread is: "+Thread.currentThread().getName());
- Assertions.assertTrue( true );
- }
- @Test
- public void test5() throws Exception
- {
- System.out.println("Test 5 thread is: "+Thread.currentThread().getName());
- Assertions.assertTrue( true );
- }
- }
Add Comment
Please, Sign In to add comment