Browse Source

Refactor ConcurrentBeanWrapperTests to use @RepeatedTest

Closes gh-26968
pull/26917/head
Elvys Soares 5 years ago committed by GitHub
parent
commit
9295bcc4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      spring-beans/src/test/java/org/springframework/beans/ConcurrentBeanWrapperTests.java

8
spring-beans/src/test/java/org/springframework/beans/ConcurrentBeanWrapperTests.java

@ -26,8 +26,10 @@ import java.util.Set; @@ -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 { @@ -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

Loading…
Cancel
Save