Java Doc for EJBTestCase.java in  » EJB-Server-JBoss-4.2.1 » testsuite » org » jboss » test » util » ejb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » testsuite » org.jboss.test.util.ejb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.test.util.ejb.EJBTestCase

All known Subclasses:   org.jboss.test.cmp2.commerce.OneToOneUniTest,  org.jboss.test.cmp2.jbas3717.JBAS3717UnitTestCase,  org.jboss.test.cmp2.jbas979.JBAS979UnitTestCase,  org.jboss.test.cmp2.jbas1665.JBAS1665UnitTestCase,  org.jboss.test.cmp2.simple.SimpleUnitTestCase,  org.jboss.test.cmp2.commerce.QueryTest,  org.jboss.test.cmp2.commerce.ManyToManyBiTest,  org.jboss.test.cmp2.jbas1361.JBAS1361UnitTestCase,  org.jboss.test.cmp2.commerce.CommerceTest,  org.jboss.test.cmp2.readonly.ReadonlyUnitTestCase,  org.jboss.test.cmp2.commerce.CascadeDeleteTest,  org.jboss.test.cmp2.commerce.LimitOffsetTest,  org.jboss.test.exception.EntityExceptionUnitTestCase,  org.jboss.test.cmp2.commerce.UserLocalTest,  org.jboss.test.cmp2.relationship.oneToOneBidirectional.ABTest,  org.jboss.test.cmp2.distinct.DistinctUnitTestCase,  org.jboss.test.exception.ExceptionUnitTestCase,  org.jboss.test.cmp2.ejbselect.EJBSelectUnitTestCase,  org.jboss.test.cmp2.cmrtree.test.CascadeDeleteUnitTestCase,  org.jboss.test.cmp2.relationship.oneToManyUnidirectional.ABTest,  org.jboss.test.cmp2.commerce.ManyToOneUniTest,  org.jboss.test.cmp2.relationship.oneToManyBidirectional.ABTest,  org.jboss.test.naming.ejb.NamingTests,  org.jboss.test.cmp2.enums.test.EnumUnitTestCase,  org.jboss.test.cmp2.relationship.manyToManyUnidirectional.ABTest,  org.jboss.test.cmp2.commerce.LazyResultSetLoadingTest,  org.jboss.test.cmp2.partitionindex.PartitionIndexUnitTestCase,  org.jboss.test.cmp2.fkmapping.test.FKMappingUnitTestCase,  org.jboss.test.cmp2.commerce.OneToManyBiTest,  org.jboss.test.cmp2.ageout.test.JDBC2PmAgeOutUnitTestCase,  org.jboss.test.cmp2.relationship.oneToOneUnidirectional.ABTest,  org.jboss.test.cmp2.jbas3541.JBAS3541UnitTestCase,  org.jboss.test.cmp2.relationship.manyToManyBidirectional.ABTest,  org.jboss.test.cmp2.idxandusersql.test.IdxAndUsersqlUnitTestCase,  org.jboss.test.cmp2.commerce.TxTesterTest,  org.jboss.test.cts.ejb.LocalEjbTests,  org.jboss.test.cmp2.dbschema.util.AbstractDBSchemaTest,  org.jboss.test.cmp2.relationship.manyToOneUnidirectional.ABTest,  org.jboss.test.cmp2.simple.PageSizeUnitTestCase,  org.jboss.test.cmp2.keygen.test.KeyGenerationUnitTestCase,  org.jboss.test.cmp2.lob.LOBUnitTestCase,
EJBTestCase
public class EJBTestCase extends TestCase (Code)
An ejb test case is an extension to test case where the test is executed in the ejb server's virtual machine. Two new methods setUpEJB and tearDownEJB have been added. These methods work just like setUp and tearDown except they run in a sepperate transaction. The execution order is as follows:
 1. setUpEJB (TX 1)
 2. run (TX 2)
 2.1. runBare
 2.1.1 setUp
 2.1.2 
 2.1.3 tearDown
 3. ejbTearDown (TX 2)
 
For an ejb test case to run successfully, the following must be setup:
 1. The ejb test case class must be availabe to the client vm.
 2. The ejb test case class must be availabe to the EJBTestRunner bean
 on the server.
 3. The EJBTestRunnerHome must be bound to "ejb/EJBTestRunner" in the
 jndi context obtained from new InitialContext();
 4. The EJBTestRunner bean must be configured as specified in the 
 EJBTestRunner javadoc.
 

See Also:   EJBTestRunner
See Also:   junit.framework.TestCase
author:
   Dain Sundstrom
author:
   Scott Stark
author:
   Dimitris Andreadis
version:
   $Revision: 61778 $


Field Summary
protected  Propertiesprops
    

Constructor Summary
public  EJBTestCase(String methodName)
     Constructs a test case that will run the method with the specified name.

Method Summary
public  StringgetEJBRunnerJndiName()
     Allow EJBTestCase subclasses to override the EJBRunnerHome JNDI name The JNDI name of the EJBRunnerHome home interface binding.
public  PropertiesgetProps()
    
public  booleanisServerSide()
    
public  voidrun(TestResult result)
    
public  voidrunBare()
    
public  voidsetProps(Properties props)
    
public  voidsetServerSide(boolean serverSide)
     Sets the flag that is used to determine if the class is running on the server side.
public  voidsetUpEJB(Properties props)
     Sets up the ejb test case.
public  voidsetUpEJB()
    
public  voidtearDownEJB(Properties props)
     Tears down the ejb test case.
public  voidtearDownEJB()
    

Field Detail
props
protected Properties props(Code)




Constructor Detail
EJBTestCase
public EJBTestCase(String methodName)(Code)
Constructs a test case that will run the method with the specified name.
Parameters:
  methodName - the name of the method that will executed when this test is run




Method Detail
getEJBRunnerJndiName
public String getEJBRunnerJndiName()(Code)
Allow EJBTestCase subclasses to override the EJBRunnerHome JNDI name The JNDI name of the EJBRunnerHome home interface binding. Thedefault is "ejb/EJBTestRunner"



getProps
public Properties getProps()(Code)
the properties associated with the test case



isServerSide
public boolean isServerSide()(Code)
Is this class running on the server side? true if this class is running on the server side



run
public void run(TestResult result)(Code)



runBare
public void runBare() throws Throwable(Code)



setProps
public void setProps(Properties props)(Code)

Parameters:
  props - the properties associated with the test case



setServerSide
public void setServerSide(boolean serverSide)(Code)
Sets the flag that is used to determine if the class is running on the server side.
Parameters:
  serverSide - boolean flag that this class uses to determineif it's running on the server side.



setUpEJB
public void setUpEJB(Properties props) throws Exception(Code)
Sets up the ejb test case. This method is called before each test is executed and is run in a private transaction.
Parameters:
  props - the properties passed in from the client
throws:
  Exception - if a problem occures



setUpEJB
public void setUpEJB() throws Exception(Code)



tearDownEJB
public void tearDownEJB(Properties props) throws Exception(Code)
Tears down the ejb test case. This method is called after each test is executed and is run in a private transaction.
Parameters:
  props - the properties passed in from the client
throws:
  Exception - if a problem occures



tearDownEJB
public void tearDownEJB() throws Exception(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.