Bumping versions

This commit is contained in:
buildmaster
2023-06-01 13:16:20 +00:00
parent f2068833bd
commit 142d8e50f7
3 changed files with 7 additions and 3 deletions

View File

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

View File

@@ -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));
}

View File

@@ -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 {
}