Skip to content

Commit 9295bcc

Browse files
authored
Refactor ConcurrentBeanWrapperTests to use @RepeatedTest
Closes gh-26968
1 parent 746b1b2 commit 9295bcc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626

2727
import org.apache.commons.logging.Log;
2828
import org.apache.commons.logging.LogFactory;
29+
import org.junit.jupiter.api.RepeatedTest;
2930
import org.junit.jupiter.api.Test;
3031

32+
3133
import static org.assertj.core.api.Assertions.assertThat;
3234

3335
/**
@@ -44,11 +46,9 @@ public class ConcurrentBeanWrapperTests {
4446

4547
private Throwable ex = null;
4648

47-
@Test
49+
@RepeatedTest(100)
4850
public void testSingleThread() {
49-
for (int i = 0; i < 100; i++) {
50-
performSet();
51-
}
51+
performSet();
5252
}
5353

5454
@Test

0 commit comments

Comments
 (0)