aspose file tools
The moose likes Testing and the fly likes Junit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Junit" Watch "Junit" New topic
Author

Junit

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 602
Can Junit be used for integration testing?

I have an api that needs to be tested.
I have a test client java program that simulates the input values and runs the integration test cases.
Can Junit be used in this case?
Or it's used for unit testing i.e. testing the individual java class?

Thanks,
Trupti
Jair Rillo Junior
Ranch Hand

Joined: Aug 27, 2008
Posts: 114
Yes, it can.

You can do both, Unit Testing and Integration Testing using JUnit.

Usually the tests seem similar, however in Unit Testing you will use Mock Objects, as long as Integration Testing you will use the object itself.


Regards, Jair Rillo Junior
http://www.jairrillo.com/blog, SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 5.0, IBM SOA Associate (Test 664).
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Junit
 
Similar Threads
What Is Unit Testing -- and what it is NOT.
Sunmicrosystem
WebService testing
Unit testting for Struts application -JUnit or Cactus?
Testing In EXtreme Programming