Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use the Junit with Struts and Springs

 
umesh annegirikar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
I want some illustrative code samples to use Junit in struts code Or Spring Code.
Also i want to know how to write the test cases ,Test Data using JUnit
Please guide me.



Thanks
Umesh




 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, umesh.

In this post I show how to use JUnit with Hibernate/JPA. JUnit with HSQLDB, JPA and Hibernate.

You would need to pass your "entityManager/datasource/session" using a constructor to it.

If you want to call your app with your server running, you would have to use JMeter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic