Browse Source

Bumping versions

pull/1255/head
buildmaster 2 years ago
parent
commit
142d8e50f7
  1. 1
      spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/RetryAwareServiceInstanceListSupplierTests.java
  2. 3
      spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/SameInstancePreferenceServiceInstanceListSupplierTests.java
  3. 6
      spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/TestSelectedServiceInstanceSupplier.java

1
spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/RetryAwareServiceInstanceListSupplierTests.java

@ -91,4 +91,5 @@ class RetryAwareServiceInstanceListSupplierTests { @@ -91,4 +91,5 @@ class RetryAwareServiceInstanceListSupplierTests {
supplier.selectedServiceInstance(firstInstance);
verify(delegate, times(1)).selectedServiceInstance(any(ServiceInstance.class));
}
}

3
spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/SameInstancePreferenceServiceInstanceListSupplierTests.java

@ -86,7 +86,8 @@ class SameInstancePreferenceServiceInstanceListSupplierTests { @@ -86,7 +86,8 @@ class SameInstancePreferenceServiceInstanceListSupplierTests {
void shouldCallSelectedServiceInstanceOnItsDelegate() {
ServiceInstance firstInstance = serviceInstance("test-4");
TestSelectedServiceInstanceSupplier delegate = mock(TestSelectedServiceInstanceSupplier.class);
DelegatingServiceInstanceListSupplier supplier = new SameInstancePreferenceServiceInstanceListSupplier(delegate);
DelegatingServiceInstanceListSupplier supplier = new SameInstancePreferenceServiceInstanceListSupplier(
delegate);
supplier.selectedServiceInstance(firstInstance);
verify(delegate, times(1)).selectedServiceInstance(any(ServiceInstance.class));
}

6
spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/TestSelectedServiceInstanceSupplier.java

@ -17,10 +17,12 @@ @@ -17,10 +17,12 @@
package org.springframework.cloud.loadbalancer.core;
/**
* Test supplier interface extending {@link ServiceInstanceListSupplier} and {@link SelectedInstanceCallback}.
* Useful if you need to verify certain behavior happened on a mock for example.
* Test supplier interface extending {@link ServiceInstanceListSupplier} and
* {@link SelectedInstanceCallback}. Useful if you need to verify certain behavior
* happened on a mock for example.
*
* @author Jürgen Kreitler
*/
public interface TestSelectedServiceInstanceSupplier extends ServiceInstanceListSupplier, SelectedInstanceCallback {
}

Loading…
Cancel
Save