This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Testing and the fly likes few basic Q ( in & out container ) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "few basic Q ( in & out container )" Watch "few basic Q ( in & out container )" New topic
Author

few basic Q ( in & out container )

prasanna pati
Ranch Hand

Joined: Jan 29, 2005
Posts: 46
I need to know few basic questions in testing ::

I have some opaque-idea about these but I need to make it clear .

what is In container testing & out-container testing ? why we need these two . when we will go for in-container & when the other type of testing ?

Balachandar Nayak
Greenhorn

Joined: Jul 22, 2005
Posts: 29
hi pras,

InContainer Testing -
Testing your Java/J2EE Programs inside the Container(Application Server)

OutContainer Testing or (Mock Objects)
Testing your Java/J2EE Programs outside the Container(Application Server)

There are cases why and where we have to use Mock or Incontainer Testing
Just go through the following link:

http://jakarta.apache.org/cactus/mock_vs_cactus.html

Regards
Bala
prasanna pati
Ranch Hand

Joined: Jan 29, 2005
Posts: 46
ya but why these r reqd? why we need these ?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
In container testing answers the question: does my code work inside the container? Do I use the container's services correctly? Does the container work together with my the way I expect it to?

Out of container testing, on the other hand, has the advantage that you don't have to deploy before testing, and that the tests typically run considerably faster.

So you use out of container testing for faster feedback, in container testing for integration testing.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
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: few basic Q ( in & out container )
 
Similar Threads
Unit testing custom tags out-of-container
Loadrunner Questions
[Spring Web Flow 2] Spring Web Flow 2 comes with direct support of Tests
INside container vs Outside container
Shared DB Connection Pool