Got stuck on AbstractFlowTests ...

Tom Zeller tzeller at dragonacea.biz
Sat Jun 21 09:31:24 EDT 2014


I was cleaning up the changes we talked about on yesterday's dev call
regarding system startup properties, and I got stuck on
AbstractFlowTests. By default, the AbstractTestNGSpringContextTests
spin up a GenericWebApplicationContext, which prefers servlet context
resources instead of the file system resources that we need, so
${idp.home} as a path does not work like we talked about. So, I guess
I need to create a custom ContextLoader for the AbstractFlowTests to
return the custom application context which prefers file system
resources, but I just am not sure how to do that right now.

The @ContextConfiguration annotation takes a "loader" value which is a
class that extends ContextLoader, which is what I'll need to provide.
It looks straightforward, but then I started looking at the default
Spring implementations and ... I'll need some more time, which I'm not
sure I'll have more of today.

If anyone has implemented a custom ContextLoader for the Spring test
context framework, let me know.

I'm thinking that providing the custom prefer filesystem app ctx for
the tests is not that big of deal in general, but I'm signalling I did
not expect that hurdle.

I can commit some of the classes without changing configs if anyone
has time to take a look at some point.


More information about the dev mailing list