I'm getting below error while unit testing-
Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)
Caused by: java.lang.ClassNotFoundException: junit.textui.ResultPrinter
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
Project structure is-
After some investigation in Run Configuration came to know its taking wrong module(main.java.com.example.dexter.sunshine.app) while running this unit case. How can we change this module?