-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not execute tests with JUnit 4.12 in IntelliJ Idea #960
Comments
Closed
stefanbirkner
added a commit
to stefanbirkner/junit
that referenced
this issue
Jul 24, 2014
The prefix has been removed by df00d5e, because we changed the coding style. Unfortunately IntelliJ IDEA reads ClassRequest.fTestClass and FilterRequest.fFilter via reflection. (See http://grepcode.com/file/repository.grepcode.com/java/ext/com.jetbrains/intellij-idea/13.0.0/com/intellij/junit4/JUnit4IdeaTestRunner.java/ ) This makes it impossible to start tests by using IntelliJ IDEA. There is already an issue at JetBrains: [IDEA-127349 ](http://youtrack.jetbrains.com/issue/IDEA-127349) We can revert the fix when this ticket is solved and most users are using an IntelliJ version with the fix.
stefanbirkner
added a commit
to stefanbirkner/junit
that referenced
this issue
Jul 24, 2014
The prefix has been removed by df00d5e, because we changed the coding style. Unfortunately IntelliJ IDEA reads ClassRequest.fTestClass and FilterRequest.fFilter via reflection. (See http://grepcode.com/file/repository.grepcode.com/java/ext/com.jetbrains/intellij-idea/13.0.0/com/intellij/junit4/JUnit4IdeaTestRunner.java/ ) This makes it impossible to start tests by using IntelliJ IDEA. There is already an issue at JetBrains: [IDEA-127349 ](http://youtrack.jetbrains.com/issue/IDEA-127349) We can revert the fix when this ticket is solved and most users are using an IntelliJ version with the fix.
I created pull request #961 to fix this issue. Nevertheless I try to get in contact with IntelliJ in order to find a solution that enables us to change the field names without breaking JUnit for IntelliJ users. |
kcooney
added a commit
that referenced
this issue
Jul 24, 2014
Restore field names with f prefix. Fixes #960.
Thanks! We might want to add a getter method for fFilter in FiltetedRequest. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I execute a test I get the following error:
This problem has been introduced by df00d5e. The field name has changed from
fTestClass
totestClass
. Although this field is private, IntelliJ reads it by reflection within the JUnit4IdeaTestRunner. There is already an issue at JetBrains: IDEA-127349The text was updated successfully, but these errors were encountered: