aspose file tools*
The moose likes Testing and the fly likes Using JUNIT for project using JSF+SPRING+HIBERNATE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Using JUNIT for project using JSF+SPRING+HIBERNATE" Watch "Using JUNIT for project using JSF+SPRING+HIBERNATE" New topic
Author

Using JUNIT for project using JSF+SPRING+HIBERNATE

Ingoba Ningthoujam
Ranch Hand

Joined: Dec 04, 2006
Posts: 90
Hi I am using JSF, SPRING and HIBERANTE in my current project. So, can anyone tell me the rough idea about using JUNIT in this combination. I know how to use JUNIT in Struts.

Thanks in advance.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

Ingoba,
JUnit can be used with those technologies. Take it a lower level one class at a time. For example with Hibernate: do you want to write a unit or integration test? For what kind of class? What do you want to know about it?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ingoba Ningthoujam
Ranch Hand

Joined: Dec 04, 2006
Posts: 90
Thanks Jeanne. Actually I want write the unit as well as integration testing. Is it possible to run all the unit test classes as a whole at one time?
Please clarify in detail.

Thanks in advance.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

Originally posted by Ingoba Ningthoujam:
Is it possible to run all the unit test classes as a whole at one time?

Yes, you can run an existing test suite containing many unit tests in one shot. When writing them, you still need to think about them one at a time though.
Ingoba Ningthoujam
Ranch Hand

Joined: Dec 04, 2006
Posts: 90
Thank you very much once again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using JUNIT for project using JSF+SPRING+HIBERNATE
 
Similar Threads
junit with jsf, Spring and hibernate
J2ee Spring project
@Autowired not working in JUnit using spring 2.5
Can I use JUnit to test JSF based web application?
spring JSF integration