Thursday, 15 April 2010

java - Spring ContextConfiguration Initializers not run under maven test -



java - Spring ContextConfiguration Initializers not run under maven test -

i have junit test running flawlessely within spring application context. application context includes 2 xml files initializer. junit base of operations class follows:

@runwith(springjunit4classrunner.class) @contextconfiguration( locations = { "classpath:/applicationcontext.xml", "classpath:/applicationcontext-security.xml"}, initializers = com.abc.configurationinitializer.class ) @transactionconfiguration @transactional public abstract class basetest extends abstracttransactionaljunit4springcontexttests {......

however when running test under maven application context fails load , because initializer class not run.

why initializer(s) class not beingness run?

my bad - initializer ran crashed thereafter

java spring maven junit

No comments:

Post a Comment