Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUnit integration with EJB and Spring

 
Arun Vasu
Greenhorn
Posts: 24
Android Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to JUnit and need to write JUnit test cases involving Spring and EJB in one functionality.

Please read below the exact scenario.

1. Fetching a list of employees using Spring jdbcTemplate.
2. Disable these employees using an EJB service.

Currently I am using org.springframework.test.AbstractDependencyInjectionSpringContextTests for creating unit test for employee fetching using Spring.
After this I need to call the EJB service for this employee list to disable them.

Please help me whether I can integrate these Sring and EJB in same JUnit test case or I need to write separate test cases ?

Your help is greatly appreciated
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our test forum.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arun,
Yes, you can use the same integration test case if the EJB is a remote call.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic