terrymanu opened a new issue #7538:
URL: https://github.com/apache/shardingsphere/issues/7538
There are 2 problems in AbstractBootstrapInitializerTest.
1. Test cases are too slow, it spend 13 seconds in my laptop.
2. When run `AbstractBootstrapInitializerTest` (run subclass
`GovernanceBootstrapInitializerTest` and `StandardBootstrapInitializerTest`
together), exception thrown:
```
Exception in thread "Thread-2" java.lang.ExceptionInInitializerError
at
org.apache.shardingsphere.proxy.frontend.ShardingSphereProxy.start(ShardingSphereProxy.java:65)
at
org.apache.shardingsphere.proxy.init.impl.AbstractBootstrapInitializer.init(AbstractBootstrapInitializer.java:60)
at
org.apache.shardingsphere.proxy.init.impl.AbstractBootstrapInitializerTest.triggerAbstractBootstrapInitializerInit(AbstractBootstrapInitializerTest.java:87)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to
java.lang.Integer
at
org.apache.shardingsphere.proxy.backend.context.BackendExecutorContext.<init>(BackendExecutorContext.java:36)
at
org.apache.shardingsphere.proxy.backend.context.BackendExecutorContext.<clinit>(BackendExecutorContext.java:33)
at
org.apache.shardingsphere.proxy.frontend.ShardingSphereProxy.start(ShardingSphereProxy.java:65)
at
org.apache.shardingsphere.proxy.init.impl.AbstractBootstrapInitializer.init(AbstractBootstrapInitializer.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.mockito.internal.creation.bytebuddy.MockMethodAdvice.tryInvoke(MockMethodAdvice.java:201)
at
org.mockito.internal.creation.bytebuddy.MockMethodAdvice.access$400(MockMethodAdvice.java:29)
at
org.mockito.internal.creation.bytebuddy.MockMethodAdvice$SuperMethodCall.invoke(MockMethodAdvice.java:157)
at
org.mockito.internal.creation.bytebuddy.InterceptedInvocation.callRealMethod(InterceptedInvocation.java:131)
at
org.mockito.internal.stubbing.answers.CallsRealMethods.answer(CallsRealMethods.java:43)
at org.mockito.Answers.answer(Answers.java:100)
at
org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:97)
at
org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:32)
at
org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:36)
at
org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:57)
at
org.mockito.internal.creation.bytebuddy.MockMethodAdvice.handle(MockMethodAdvice.java:99)
... 3 more
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]