Use Spring for JUnit testing

Hi,

I have a java application and need to write up some Junit test cases.
My team wants to play around with the Spring framework.

Can not figure out if this can be doable without changing any code.
Of course we can create new classes but I am not sure if this is appropriate.

The java application does't use the Spring framework but wants to the use the Springframework for JUnit testing.

What do you think?.
dkim18Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sweetfa2Commented:
Sounds like overkill to me.  The idea of JUnit is to create tests that test a single piece of functionality.  There is little point in bringing spring in just to do unit testing.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
girionisCommented:
Why do you want to use Spring to do JUnit? Are there any particular requirements? It's like you want to use a spaceship to travel from your house to your neighbour's house.
0
dkim18Author Commented:
I think I will just create one example using one dao by showing how to inject one of dao classes into that example class.
0
girionisCommented:
I am still not sure what exactly you want to achieve.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.