-
Feb 1st, 2012, 08:54 AM
#1
Spring 3.0.5+Junit 4.8.2 Setting system properties before @ContextConfiguration
Hi all, first post here.
I'm in the process of restructuring our test cases and want to take advantage of some of the features in spring 3.0.5 and junit 4.8.2. Our current application is set up using a PropertyPlaceholderConfigurer which looks at three potential properties files - a master file, an environment specific file (eg. dev, stage. prod) and an overrides file. In order for our PropertyPlaceholderConfigurer to find these files, two system properties must be set before the context is loaded - runtime.env and overrides.
My question is this: can we set system properties before the @ContextConfiguration{location=} gets triggered?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules