BAEL-701 Introduction to TestNG

This commit is contained in:
dhruba619
2017-03-01 16:47:07 +05:30
parent 99c8ee5228
commit d1f0b2e554
16 changed files with 597 additions and 454 deletions

View File

@@ -0,0 +1,14 @@
package baeldung.com;
import org.testng.Assert;
import org.testng.annotations.Test;
public class MultiThreadedTests {
@Test(threadPoolSize = 5, invocationCount = 10, timeOut = 1000)
public void givenMethod_whenRunInThreads_thenCorrect(){
int count = Thread.activeCount();
Assert.assertTrue(count>1);
}
}