wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes testing problem in entity bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "testing problem in entity bean" Watch "testing problem in entity bean" New topic
Author

testing problem in entity bean

nitin garg
Greenhorn

Joined: Oct 13, 2004
Posts: 1
Hi,
I want to know what problems we get when we test our entity bean inside the container.
Each and every time we have to deploy our bean inside the container.It takes too much time.this is i think one problem.Is it really a big problem or not?

Plz tell me some related document abt testing problems in Entity Beans.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29275
    
140

Nitin,
Welcome to JavaRanch!

What are you trying to test? It is a best practice to keep logic out of the entity beans, so that can be tested separately. There are often some methods in the bean to test (like returning a value object.) You can test these by just instantiating the bean from java. If you haven't already looked at junit, it is the standard framework for doing this. Regardless, you will want to test with the container at some point.


[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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: testing problem in entity bean
 
Similar Threads
no any errors occured but database hasnt changed
Bitter EJB
access specifier to Servlet class
Changes in Entity Bean are not saved
Bean managed Transaction for Entity Beans