Liangda-w commented on issue #9426:
URL: https://github.com/apache/shardingsphere/issues/9426#issuecomment-792003041


   Hi @tristaZero and @ThanoshanMV, I'm facing the following exception when 
running `SQLParserParameterizedTest`:
   
   ```
   java.lang.Exception: Test class should have exactly one public zero-argument 
constructor
   
        at 
org.junit.runners.BlockJUnit4ClassRunner.validateZeroArgConstructor(BlockJUnit4ClassRunner.java:171)
        at 
org.junit.runners.BlockJUnit4ClassRunner.validateConstructor(BlockJUnit4ClassRunner.java:148)
        at 
org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:127)
        at org.junit.runners.ParentRunner.validate(ParentRunner.java:416)
        at org.junit.runners.ParentRunner.<init>(ParentRunner.java:84)
        at 
org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:65)
        at 
org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:10)
        at 
org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
        at 
org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
        at 
org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
        at 
org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
        at 
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:50)
        at 
com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
        at 
com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220)
        at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)
   ```
   Below the Run/Debug Configuration. I've also tried to mark the `java` 
directory as Test Resource Root and the `resource` directory as Test Resources 
Root, but it still shows the warning that `SQLParserParameterizedTest` isn't a 
test class. Do you have any ideas how to fix this?
   
   
![image](https://user-images.githubusercontent.com/66914151/110216347-f54ff780-7eae-11eb-8b67-35fb608ce7ee.png)
   
   


----------------------------------------------------------------
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]


Reply via email to