Refactor ConcurrentBeanWrapperTests to use @RepeatedTest
Closes gh-26968
This commit is contained in:
parent
746b1b2fe1
commit
9295bcc4a4
|
@ -26,8 +26,10 @@ import java.util.Set;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
import org.junit.jupiter.api.RepeatedTest;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,11 +46,9 @@ public class ConcurrentBeanWrapperTests {
|
||||||
|
|
||||||
private Throwable ex = null;
|
private Throwable ex = null;
|
||||||
|
|
||||||
@Test
|
@RepeatedTest(100)
|
||||||
public void testSingleThread() {
|
public void testSingleThread() {
|
||||||
for (int i = 0; i < 100; i++) {
|
performSet();
|
||||||
performSet();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue