You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2021/08/02 09:09:12 UTC
[GitHub] [incubator-shenyu] HessTina-YuI opened a new issue #1850: ExtensionLoaderTest#testGetExtensionLoaderCanNotInstantiatedSPI has error
HessTina-YuI opened a new issue #1850:
URL: https://github.com/apache/incubator-shenyu/issues/1850
## Describe the bug
<!--
A clear and concise description of what the bug is.
-->
## Environment
- ShenYu version(s): [e.g. 2.4.0]
## Steps to reproduce
mvn test
## Expected behavior
<!--
A clear and concise description of what you expected to happen.
-->
## Debug logs
<!--
Add your debug logs here.
-->
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
java.lang.AssertionError:
Expected: a string containing "Extension instance(name: canNotInstantiated, class: class org.apache.shenyu.spi.fixture.CanNotInstantiatedSPI) could not be instantiated: Class org.apache.shenyu.spi.ExtensionLoader can not access a member of class org.apache.shenyu.spi.fixture.CanNotInstantiatedSPI with modifiers \"private\""
but: was "Extension instance(name: canNotInstantiated, class: class org.apache.shenyu.spi.fixture.CanNotInstantiatedSPI) could not be instantiated: class org.apache.shenyu.spi.ExtensionLoader cannot access a member of class org.apache.shenyu.spi.fixture.CanNotInstantiatedSPI with modifiers "private""
Expected :a string containing "Extension instance(name: canNotInstantiated, class: class org.apache.shenyu.spi.fixture.CanNotInstantiatedSPI) could not be instantiated: Class org.apache.shenyu.spi.ExtensionLoader can not access a member of class org.apache.shenyu.spi.fixture.CanNotInstantiatedSPI with modifiers \"private\""
Actual :"Extension instance(name: canNotInstantiated, class: class org.apache.shenyu.spi.fixture.CanNotInstantiatedSPI) could not be instantiated: class org.apache.shenyu.spi.ExtensionLoader cannot access a member of class org.apache.shenyu.spi.fixture.CanNotInstantiatedSPI with modifiers "private""
<Click to see difference>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.apache.shenyu.spi.ExtensionLoaderTest.testGetExtensionLoaderCanNotInstantiatedSPI(ExtensionLoaderTest.java:186)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:221)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
```
replace this line with your debug logs
```
</details>
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] dengliming closed issue #1850: ExtensionLoaderTest#testGetExtensionLoaderCanNotInstantiatedSPI has error
Posted by GitBox <gi...@apache.org>.
dengliming closed issue #1850:
URL: https://github.com/apache/incubator-shenyu/issues/1850
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org