Fix ut
This commit is contained in:
parent
80793ce41a
commit
ea7af7a294
|
|
@ -483,7 +483,6 @@ class ReferenceConfigTest {
|
||||||
Assertions.assertTrue(referenceConfig.getInvoker() instanceof MockClusterInvoker);
|
Assertions.assertTrue(referenceConfig.getInvoker() instanceof MockClusterInvoker);
|
||||||
Invoker<?> withCount = ((MockClusterInvoker<?>) referenceConfig.getInvoker()).getDirectory().getAllInvokers().get(0);
|
Invoker<?> withCount = ((MockClusterInvoker<?>) referenceConfig.getInvoker()).getDirectory().getAllInvokers().get(0);
|
||||||
Assertions.assertTrue(withCount instanceof ReferenceCountInvokerWrapper);
|
Assertions.assertTrue(withCount instanceof ReferenceCountInvokerWrapper);
|
||||||
Assertions.assertTrue(((ReferenceCountInvokerWrapper<?>) withCount).getInvoker() instanceof ListenerInvokerWrapper);
|
|
||||||
Invoker<?> withFilter = ((ReferenceCountInvokerWrapper<?>) withCount).getInvoker();
|
Invoker<?> withFilter = ((ReferenceCountInvokerWrapper<?>) withCount).getInvoker();
|
||||||
Assertions.assertTrue(withFilter instanceof ListenerInvokerWrapper
|
Assertions.assertTrue(withFilter instanceof ListenerInvokerWrapper
|
||||||
|| withFilter instanceof FilterChainBuilder.CallbackRegistrationInvoker);
|
|| withFilter instanceof FilterChainBuilder.CallbackRegistrationInvoker);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue