Search code examples
javaintellij-ideaintellij-14intellij-15

IntelliJ Running other class files, how do I stop this?


Why this other class file is running instead of the one I clicked on please help. My Process is included in the gif, I can't tell why this is occurring.


Solution

  • This usually happens because before running the test class, the IDE needs to build the project, it found a class that has error and can not complete the test. You can try to fix the ButtonPanel.java class and try to run the test again