Refactor ConcurrentBeanWrapperTests to use @RepeatedTest

Closes gh-26968
This commit is contained in:
Elvys Soares 2021-05-23 13:40:36 -03:00 committed by GitHub
parent 746b1b2fe1
commit 9295bcc4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -26,8 +26,10 @@ import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
@ -44,11 +46,9 @@ public class ConcurrentBeanWrapperTests {
private Throwable ex = null;
@Test
@RepeatedTest(100)
public void testSingleThread() {
for (int i = 0; i < 100; i++) {
performSet();
}
performSet();
}
@Test