wood burning stoves 2.0*
The moose likes Testing and the fly likes testcases Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "testcases" Watch "testcases" New topic


reena Mehta

Joined: Nov 17, 2010
Posts: 24

please tell me can i write Servlet test cases and Struts Test cases in same test Class
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30138

You can't. Both of those frameworks require you to extend their class. You can extract common code into a helper class though so why does it matter if they are in the same test case?

[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
It is sorta covered in the JavaRanch Style Guide.
subject: testcases
Similar Threads
how to write and run junit test cases in eclipse?
Continuous Integration Vs TDD(Test Driven Development)
Test cases
Is JUnit Cumbersome
Test-Driven Development