Setting Environment Variables for All JUnit Tests in Eclipse
I am trying to set up some unit tests, which use the database.  I would like to use a test database on the developer's computer instead of on the production database.  The method I have in place now is to check an environment variable when connecting to the database, and if that variable exists to connect to the local one instead of the production one.

I can set environment variables in Eclipse through the Run Configurations, but I want this to happen whenever a JUnit test is run (just in case).

Is this possible in Eclipse?
Setting Environment Variables for All JUnit Tests in Eclipse
===

I am trying to set up some unit tests, which use the database.  I would like to use a test database on the developer's computer instead of on the production database.  The method I have in place now is to check an environment variable when connecting to the database, and if that variable exists to connect to the local one instead of the production one.

I can set environment variables in Eclipse through the Run Configurations, but I want this to happen whenever a JUnit test is run (just in case).

Is this possible in Eclipse?