Browse Source

Polishing

pull/35151/head
Sam Brannen 6 months ago
parent
commit
191d092952
  1. 8
      spring-context/src/test/java/org/springframework/resilience/ConcurrencyLimitTests.java
  2. 20
      spring-context/src/test/java/org/springframework/resilience/ReactiveRetryInterceptorTests.java
  3. 14
      spring-context/src/test/java/org/springframework/resilience/RetryInterceptorTests.java

8
spring-context/src/test/java/org/springframework/resilience/ConcurrencyLimitTests.java

@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat; @@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Juergen Hoeller
* @since 7.0
*/
public class ConcurrencyLimitTests {
class ConcurrencyLimitTests {
@Test
void withSimpleInterceptor() {
@ -98,7 +98,7 @@ public class ConcurrencyLimitTests { @@ -98,7 +98,7 @@ public class ConcurrencyLimitTests {
}
public static class NonAnnotatedBean {
static class NonAnnotatedBean {
AtomicInteger counter = new AtomicInteger();
@ -117,7 +117,7 @@ public class ConcurrencyLimitTests { @@ -117,7 +117,7 @@ public class ConcurrencyLimitTests {
}
public static class AnnotatedMethodBean {
static class AnnotatedMethodBean {
AtomicInteger current = new AtomicInteger();
@ -138,7 +138,7 @@ public class ConcurrencyLimitTests { @@ -138,7 +138,7 @@ public class ConcurrencyLimitTests {
@ConcurrencyLimit(2)
public static class AnnotatedClassBean {
static class AnnotatedClassBean {
AtomicInteger current = new AtomicInteger();

20
spring-context/src/test/java/org/springframework/resilience/ReactiveRetryInterceptorTests.java

@ -44,7 +44,7 @@ import static org.assertj.core.api.Assertions.assertThatRuntimeException; @@ -44,7 +44,7 @@ import static org.assertj.core.api.Assertions.assertThatRuntimeException;
* @author Juergen Hoeller
* @since 7.0
*/
public class ReactiveRetryInterceptorTests {
class ReactiveRetryInterceptorTests {
@Test
void withSimpleInterceptor() {
@ -189,7 +189,7 @@ public class ReactiveRetryInterceptorTests { @@ -189,7 +189,7 @@ public class ReactiveRetryInterceptorTests {
}
public static class NonAnnotatedBean {
static class NonAnnotatedBean {
AtomicInteger counter = new AtomicInteger();
@ -202,7 +202,7 @@ public class ReactiveRetryInterceptorTests { @@ -202,7 +202,7 @@ public class ReactiveRetryInterceptorTests {
}
public static class AnnotatedMethodBean {
static class AnnotatedMethodBean {
AtomicInteger counter = new AtomicInteger();
@ -219,7 +219,7 @@ public class ReactiveRetryInterceptorTests { @@ -219,7 +219,7 @@ public class ReactiveRetryInterceptorTests {
@Retryable(delay = 10, jitter = 5, multiplier = 2.0, maxDelay = 40,
includes = IOException.class, excludes = AccessDeniedException.class,
predicate = CustomPredicate.class)
public static class AnnotatedClassBean {
static class AnnotatedClassBean {
AtomicInteger counter = new AtomicInteger();
@ -258,7 +258,7 @@ public class ReactiveRetryInterceptorTests { @@ -258,7 +258,7 @@ public class ReactiveRetryInterceptorTests {
// Bean classes for boundary testing
public static class MinimalRetryBean {
static class MinimalRetryBean {
AtomicInteger counter = new AtomicInteger();
@ -271,7 +271,7 @@ public class ReactiveRetryInterceptorTests { @@ -271,7 +271,7 @@ public class ReactiveRetryInterceptorTests {
}
public static class ZeroDelayJitterBean {
static class ZeroDelayJitterBean {
AtomicInteger counter = new AtomicInteger();
@ -284,7 +284,7 @@ public class ReactiveRetryInterceptorTests { @@ -284,7 +284,7 @@ public class ReactiveRetryInterceptorTests {
}
public static class JitterGreaterThanDelayBean {
static class JitterGreaterThanDelayBean {
AtomicInteger counter = new AtomicInteger();
@ -297,7 +297,7 @@ public class ReactiveRetryInterceptorTests { @@ -297,7 +297,7 @@ public class ReactiveRetryInterceptorTests {
}
public static class FluxMultiValueBean {
static class FluxMultiValueBean {
AtomicInteger counter = new AtomicInteger();
@ -310,7 +310,7 @@ public class ReactiveRetryInterceptorTests { @@ -310,7 +310,7 @@ public class ReactiveRetryInterceptorTests {
}
public static class SuccessfulOperationBean {
static class SuccessfulOperationBean {
AtomicInteger counter = new AtomicInteger();
@ -323,7 +323,7 @@ public class ReactiveRetryInterceptorTests { @@ -323,7 +323,7 @@ public class ReactiveRetryInterceptorTests {
}
public static class ImmediateFailureBean {
static class ImmediateFailureBean {
AtomicInteger counter = new AtomicInteger();

14
spring-context/src/test/java/org/springframework/resilience/RetryInterceptorTests.java

@ -47,7 +47,7 @@ import static org.assertj.core.api.Assertions.assertThatIOException; @@ -47,7 +47,7 @@ import static org.assertj.core.api.Assertions.assertThatIOException;
* @author Juergen Hoeller
* @since 7.0
*/
public class RetryInterceptorTests {
class RetryInterceptorTests {
@Test
void withSimpleInterceptor() {
@ -137,7 +137,7 @@ public class RetryInterceptorTests { @@ -137,7 +137,7 @@ public class RetryInterceptorTests {
}
public static class NonAnnotatedBean {
static class NonAnnotatedBean {
int counter = 0;
@ -148,7 +148,7 @@ public class RetryInterceptorTests { @@ -148,7 +148,7 @@ public class RetryInterceptorTests {
}
public static class AnnotatedMethodBean {
static class AnnotatedMethodBean {
int counter = 0;
@ -163,7 +163,7 @@ public class RetryInterceptorTests { @@ -163,7 +163,7 @@ public class RetryInterceptorTests {
@Retryable(delay = 10, jitter = 5, multiplier = 2.0, maxDelay = 40,
includes = IOException.class, excludes = AccessDeniedException.class,
predicate = CustomPredicate.class)
public static class AnnotatedClassBean {
static class AnnotatedClassBean {
int counter = 0;
@ -189,7 +189,7 @@ public class RetryInterceptorTests { @@ -189,7 +189,7 @@ public class RetryInterceptorTests {
multiplierString = "${multiplier}", maxDelayString = "${maxDelay}",
includes = IOException.class, excludes = AccessDeniedException.class,
predicate = CustomPredicate.class)
public static class AnnotatedClassBeanWithStrings {
static class AnnotatedClassBeanWithStrings {
int counter = 0;
@ -220,7 +220,7 @@ public class RetryInterceptorTests { @@ -220,7 +220,7 @@ public class RetryInterceptorTests {
}
public static class DoubleAnnotatedBean {
static class DoubleAnnotatedBean {
AtomicInteger current = new AtomicInteger();
@ -248,7 +248,7 @@ public class RetryInterceptorTests { @@ -248,7 +248,7 @@ public class RetryInterceptorTests {
@EnableResilientMethods
public static class EnablingConfig {
static class EnablingConfig {
}
}

Loading…
Cancel
Save