Do your tests and code under test run in the same JVM?
How does your test project reference the code under test? E.g., does your test project declare a Maven / Gradle dependency to a library that contains the code under test?
When you say "under same JVM", which of the following do you mean:
The tests and the code under test run in the same process. Example: Regular JUnit test that instantiates the class under test.
The tests and the code under test run in different processes (potentially on different machines), but they use the same version of the JVM. Example: Selenium test that runs in JVM A that makes a HTTP call to a server that runs in JVM B.
Hi - two questions: