Identify in a unit test if Jetbrains IntelliJ IDEA 8 or 9 is running
- by Ran Biron
I need to know, in a context of a unit test, if Jetbrains IntelliJ idea is the test initiator and if it is, which version is running (or at least if it's "9" or earlier).
I don't mind doing dirty tricks (reflection, filesystem, environment...) but I do need this to work "out-of-the-box" (without each developer having to setup something special).
I've tried some reflection but couldn't find a unique identifier I could latch onto.
Any idea?
Oh - the language is Java.