java-tutorials/testing-modules/testng/src/test/java/com/baeldung/MultiThreadedIntegrationTest.java
Grzegorz Piwowarek 776a01429e
Group testing modules (#3014)
* move security content from spring-security-rest-full

* swagger update

* move query language to new module

* rename spring-security-rest-full to spring-rest-full

* group persistence modules

* group testing modules

* try fix conflict
2017-11-12 11:16:46 +01:00

15 lines
349 B
Java

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