ContextConfiguration.locations
is an Array, so you can specifiy as may locaction you want.
@ContextConfiguration(
loader = SpringockitoContextLoader.class,
locations = {"classpath*:/MockApplicationContext.xml",
"classpath*:/testApplicationContext.xml"}
)
BTW: (this is only a hint from my memory, I dont know if the problem still exists, or if I have done something wrong)
Long time ago I noticed some problems when using two location parameters, because it seams that spring create two conexts (one for each location). Therefor I use an single configuration file that inculde
s the two normal configuration files. (@see https://stackoverflow.com/a/3414669/280244)