ok, i figured it out. guis aren't meant to be run in junit tests, because as soon as the tests are completed, the program will exit, and the gui will immediately close. for some reason, the program was staying open when i ran the junit test in windows, but that's not really supposed to happen.

because, in the current project that i'm working on, it makes more sense for me to open the gui in a junit test, i implemented the following workaround: i had the method that ran the gui simply wait until the gui is closed before it continued to execute. to do this, i used the mechanism described here.

Related Query

More Query from same tag