Off Topic: Spring Testing

View: New views
3 Messages — Rating Filter:   Alert me  

Off Topic: Spring Testing

by Malte Finsterwalder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

slightly off topic: Does anyone here know, whether I can convince
Springs test support to reuse a single container for multiple JUnit
test classes?
I use the SpringJUnit4ClassRunner at them moment.

Greetings,
   Malte

Re: Off Topic: Spring Testing

by krosenvold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SpringJUnit4ClassRunner does this by default. The "locations" field of @ContextConfigurations is actually the key into the cached spring contexts.

--- In junit@..., Malte Finsterwalder <malte@...> wrote:

>
> Hi there,
>
> slightly off topic: Does anyone here know, whether I can convince
> Springs test support to reuse a single container for multiple JUnit
> test classes?
> I use the SpringJUnit4ClassRunner at them moment.
>
> Greetings,
>    Malte
>



Re: Re: Off Topic: Spring Testing

by Malte Finsterwalder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/28 krosenvold <kristian@...>:
> SpringJUnit4ClassRunner does this by default. The "locations" field of @ContextConfigurations is actually the key into the cached spring contexts.

Duh...

Thanks,
   Malte