File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
Joined: Jun 21, 2001
Sep 11, 2008 13:43:00
be used for integration
I have an api that needs to be tested.
I have a
program that simulates the input values and runs the integration test cases.
Can Junit be used in this case?
Or it's used for
testing i.e. testing the individual java class?
Jair Rillo Junior
Joined: Aug 27, 2008
Sep 11, 2008 15:30:00
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
, SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 5.0, IBM SOA Associate (Test 664).
I agree. Here's the link:
Unit testting for Struts application -JUnit or Cactus?
Testing In EXtreme Programming
What Is Unit Testing -- and what it is NOT.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014