I am trying to run JUnits from my IntelliJ Idea When I try to run the Test.java file it gives me an error saying that
java: OutOfMemoryError: insuffic
In my case, my SpringBootTest configuration has Build (whole project) gradle task in "Before launch". So that's my omission. Eliminating that and issue's gone away.
Or Settings -> Compiler : increase build heap size