Java Doc for BasicEJBTestCaseAdapter.java in  » Testing » mockrunner-0.4 » com » mockrunner » 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 » Testing » mockrunner 0.4 » com.mockrunner.ejb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.mockrunner.ejb.BasicEJBTestCaseAdapter

All known Subclasses:   com.mockrunner.test.ejb.BasicEJBTestCaseAdapterTest,  com.mockrunner.example.ejb.BillManagerSessionTest,
BasicEJBTestCaseAdapter
abstract public class BasicEJBTestCaseAdapter extends TestCase (Code)
Delegator for com.mockrunner.ejb.EJBTestModule . You can subclass this adapter or use com.mockrunner.ejb.EJBTestModule directly (so your test case can use another base class). This basic adapter can be used if you don't need any other modules. It does not extend com.mockrunner.base.BaseTestCase . If you want to use several modules in conjunction, consider subclassing com.mockrunner.ejb.EJBTestCaseAdapter . This class is generated from the com.mockrunner.ejb.EJBTestModule and should not be edited directly.



Constructor Summary
public  BasicEJBTestCaseAdapter()
    
public  BasicEJBTestCaseAdapter(String name)
    

Method Summary
protected  voidbindToContext(String name, Object object)
    
protected  ObjectcreateBean(String name)
    
protected  ObjectcreateBean(String name, String createMethod, Object[] parameters)
    
protected  ObjectcreateBean(String name, String createMethod, Object[] parameters, Class[] parameterTypes)
    
protected  ObjectcreateBean(String name, Object[] parameters)
    
protected  EJBMockObjectFactorycreateEJBMockObjectFactory()
     Creates a com.mockrunner.mock.ejb.EJBMockObjectFactory .
protected  EJBTestModulecreateEJBTestModule()
     Creates a com.mockrunner.ejb.EJBTestModule based on the current com.mockrunner.mock.ejb.EJBMockObjectFactory .
protected  EJBTestModulecreateEJBTestModule(EJBMockObjectFactory mockFactory)
     Creates a com.mockrunner.ejb.EJBTestModule with the specified com.mockrunner.mock.ejb.EJBMockObjectFactory .
protected  ObjectcreateEntityBean(String name, String createMethod, Object[] parameters, Class[] parameterTypes, Object primaryKey)
    
protected  ObjectcreateEntityBean(String name, String createMethod, Object[] parameters, Object primaryKey)
    
protected  ObjectcreateEntityBean(String name, Object primaryKey)
    
protected  ObjectcreateEntityBean(String name, Object[] parameters, Object primaryKey)
    
protected  voiddeploy(BasicEjbDescriptor descriptor)
    
protected  voiddeploy(BasicEjbDescriptor descriptor, TransactionPolicy policy)
    
protected  voiddeployEntityBean(String jndiName, Class beanClass, TransactionPolicy policy)
    
protected  voiddeployEntityBean(String jndiName, Class beanClass)
    
protected  voiddeployMessageBean(String connectionFactoryJndiName, String destinationJndiName, ConnectionFactory connectionFactory, Destination destination, Object bean, TransactionPolicy policy)
    
protected  voiddeployMessageBean(String connectionFactoryJndiName, String destinationJndiName, ConnectionFactory connectionFactory, Destination destination, Object bean)
    
protected  voiddeploySessionBean(String jndiName, Class beanClass, TransactionPolicy policy)
    
protected  voiddeploySessionBean(String jndiName, Class beanClass)
    
protected  voiddeploySessionBean(String jndiName, Class beanClass, boolean stateful)
    
protected  voiddeploySessionBean(String jndiName, Object bean, TransactionPolicy policy)
    
protected  voiddeploySessionBean(String jndiName, Class beanClass, boolean stateful, TransactionPolicy policy)
    
protected  voiddeploySessionBean(String jndiName, Object bean)
    
protected  voiddeploySessionBean(String jndiName, Object bean, boolean stateful)
    
protected  voiddeploySessionBean(String jndiName, Object bean, boolean stateful, TransactionPolicy policy)
    
protected  ObjectfindByPrimaryKey(String name, Object primaryKey)
    
protected  EJBMockObjectFactorygetEJBMockObjectFactory()
     Gets the com.mockrunner.mock.ejb.EJBMockObjectFactory .
protected  EJBTestModulegetEJBTestModule()
     Gets the com.mockrunner.ejb.EJBTestModule .
protected  Objectlookup(String name)
    
protected  ObjectlookupBean(String name)
    
protected  ObjectlookupBean(String name, String createMethod, Object[] parameters)
    
protected  ObjectlookupBean(String name, Object[] parameters)
    
protected  voidresetUserTransaction()
    
protected  voidsetBusinessInterfacePackage(String businessInterfacePackage)
    
protected  voidsetBusinessInterfaceSuffix(String businessInterfaceSuffix)
    
protected  voidsetEJBMockObjectFactory(EJBMockObjectFactory ejbMockObjectFactory)
     Sets the com.mockrunner.mock.ejb.EJBMockObjectFactory .
protected  voidsetEJBTestModule(EJBTestModule ejbTestModule)
     Sets the com.mockrunner.ejb.EJBTestModule .
protected  voidsetHomeInterfacePackage(String homeInterfacePackage)
    
protected  voidsetHomeInterfaceSuffix(String homeInterfaceSuffix)
    
protected  voidsetImplementationSuffix(String impSuffix)
    
protected  voidsetInterfacePackage(String interfacePackage)
    
protected  voidsetUp()
     Creates the com.mockrunner.ejb.EJBTestModule .
protected  voidtearDown()
    
protected  voidverifyCommitted()
    
protected  voidverifyMarkedForRollback()
    
protected  voidverifyNotCommitted()
    
protected  voidverifyNotMarkedForRollback()
    
protected  voidverifyNotRolledBack()
    
protected  voidverifyRolledBack()
    


Constructor Detail
BasicEJBTestCaseAdapter
public BasicEJBTestCaseAdapter()(Code)



BasicEJBTestCaseAdapter
public BasicEJBTestCaseAdapter(String name)(Code)




Method Detail
bindToContext
protected void bindToContext(String name, Object object)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.bindToContext(StringObject)



createBean
protected Object createBean(String name)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.createBean(String)



createBean
protected Object createBean(String name, String createMethod, Object[] parameters)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.createBean(StringStringObject[])



createBean
protected Object createBean(String name, String createMethod, Object[] parameters, Class[] parameterTypes)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.createBean(StringStringObject[]Class[])



createBean
protected Object createBean(String name, Object[] parameters)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.createBean(StringObject[])



createEJBMockObjectFactory
protected EJBMockObjectFactory createEJBMockObjectFactory()(Code)
Creates a com.mockrunner.mock.ejb.EJBMockObjectFactory . the created com.mockrunner.mock.ejb.EJBMockObjectFactory



createEJBTestModule
protected EJBTestModule createEJBTestModule()(Code)
Creates a com.mockrunner.ejb.EJBTestModule based on the current com.mockrunner.mock.ejb.EJBMockObjectFactory . Same as createEJBTestModule(getEJBMockObjectFactory()). the created com.mockrunner.ejb.EJBTestModule



createEJBTestModule
protected EJBTestModule createEJBTestModule(EJBMockObjectFactory mockFactory)(Code)
Creates a com.mockrunner.ejb.EJBTestModule with the specified com.mockrunner.mock.ejb.EJBMockObjectFactory . the created com.mockrunner.ejb.EJBTestModule



createEntityBean
protected Object createEntityBean(String name, String createMethod, Object[] parameters, Class[] parameterTypes, Object primaryKey)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.createEntityBean(StringStringObject[]Class[]Object)



createEntityBean
protected Object createEntityBean(String name, String createMethod, Object[] parameters, Object primaryKey)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.createEntityBean(StringStringObject[]Object)



createEntityBean
protected Object createEntityBean(String name, Object primaryKey)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.createEntityBean(StringObject)



createEntityBean
protected Object createEntityBean(String name, Object[] parameters, Object primaryKey)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.createEntityBean(StringObject[]Object)



deploy
protected void deploy(BasicEjbDescriptor descriptor)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploy(BasicEjbDescriptor)



deploy
protected void deploy(BasicEjbDescriptor descriptor, TransactionPolicy policy)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploy(BasicEjbDescriptorTransactionPolicy)



deployEntityBean
protected void deployEntityBean(String jndiName, Class beanClass, TransactionPolicy policy)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deployEntityBean(StringClassTransactionPolicy)



deployEntityBean
protected void deployEntityBean(String jndiName, Class beanClass)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deployEntityBean(StringClass)



deployMessageBean
protected void deployMessageBean(String connectionFactoryJndiName, String destinationJndiName, ConnectionFactory connectionFactory, Destination destination, Object bean, TransactionPolicy policy)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deployMessageBean(StringStringConnectionFactoryDestinationObjectTransactionPolicy)



deployMessageBean
protected void deployMessageBean(String connectionFactoryJndiName, String destinationJndiName, ConnectionFactory connectionFactory, Destination destination, Object bean)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deployMessageBean(StringStringConnectionFactoryDestinationObject)



deploySessionBean
protected void deploySessionBean(String jndiName, Class beanClass, TransactionPolicy policy)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploySessionBean(StringClassTransactionPolicy)



deploySessionBean
protected void deploySessionBean(String jndiName, Class beanClass)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploySessionBean(StringClass)



deploySessionBean
protected void deploySessionBean(String jndiName, Class beanClass, boolean stateful)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploySessionBean(StringClassboolean)



deploySessionBean
protected void deploySessionBean(String jndiName, Object bean, TransactionPolicy policy)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploySessionBean(StringObjectTransactionPolicy)



deploySessionBean
protected void deploySessionBean(String jndiName, Class beanClass, boolean stateful, TransactionPolicy policy)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploySessionBean(StringClassbooleanTransactionPolicy)



deploySessionBean
protected void deploySessionBean(String jndiName, Object bean)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploySessionBean(StringObject)



deploySessionBean
protected void deploySessionBean(String jndiName, Object bean, boolean stateful)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploySessionBean(StringObjectboolean)



deploySessionBean
protected void deploySessionBean(String jndiName, Object bean, boolean stateful, TransactionPolicy policy)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.deploySessionBean(StringObjectbooleanTransactionPolicy)



findByPrimaryKey
protected Object findByPrimaryKey(String name, Object primaryKey)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.findByPrimaryKey(StringObject)



getEJBMockObjectFactory
protected EJBMockObjectFactory getEJBMockObjectFactory()(Code)
Gets the com.mockrunner.mock.ejb.EJBMockObjectFactory . the com.mockrunner.mock.ejb.EJBMockObjectFactory



getEJBTestModule
protected EJBTestModule getEJBTestModule()(Code)
Gets the com.mockrunner.ejb.EJBTestModule . the com.mockrunner.ejb.EJBTestModule



lookup
protected Object lookup(String name)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.lookup(String)



lookupBean
protected Object lookupBean(String name)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.lookupBean(String)



lookupBean
protected Object lookupBean(String name, String createMethod, Object[] parameters)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.lookupBean(StringStringObject[])



lookupBean
protected Object lookupBean(String name, Object[] parameters)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.lookupBean(StringObject[])



resetUserTransaction
protected void resetUserTransaction()(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.resetUserTransaction



setBusinessInterfacePackage
protected void setBusinessInterfacePackage(String businessInterfacePackage)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.setBusinessInterfacePackage(String)



setBusinessInterfaceSuffix
protected void setBusinessInterfaceSuffix(String businessInterfaceSuffix)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.setBusinessInterfaceSuffix(String)



setEJBMockObjectFactory
protected void setEJBMockObjectFactory(EJBMockObjectFactory ejbMockObjectFactory)(Code)
Sets the com.mockrunner.mock.ejb.EJBMockObjectFactory .
Parameters:
  ejbMockObjectFactory - the com.mockrunner.mock.ejb.EJBMockObjectFactory



setEJBTestModule
protected void setEJBTestModule(EJBTestModule ejbTestModule)(Code)
Sets the com.mockrunner.ejb.EJBTestModule .
Parameters:
  ejbTestModule - the com.mockrunner.ejb.EJBTestModule



setHomeInterfacePackage
protected void setHomeInterfacePackage(String homeInterfacePackage)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.setHomeInterfacePackage(String)



setHomeInterfaceSuffix
protected void setHomeInterfaceSuffix(String homeInterfaceSuffix)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.setHomeInterfaceSuffix(String)



setImplementationSuffix
protected void setImplementationSuffix(String impSuffix)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.setImplementationSuffix(String)



setInterfacePackage
protected void setInterfacePackage(String interfacePackage)(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.setInterfacePackage(String)



setUp
protected void setUp() throws Exception(Code)
Creates the com.mockrunner.ejb.EJBTestModule . If you overwrite this method, you must call super.setUp().



tearDown
protected void tearDown() throws Exception(Code)



verifyCommitted
protected void verifyCommitted()(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.verifyCommitted



verifyMarkedForRollback
protected void verifyMarkedForRollback()(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.verifyMarkedForRollback



verifyNotCommitted
protected void verifyNotCommitted()(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.verifyNotCommitted



verifyNotMarkedForRollback
protected void verifyNotMarkedForRollback()(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.verifyNotMarkedForRollback



verifyNotRolledBack
protected void verifyNotRolledBack()(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.verifyNotRolledBack



verifyRolledBack
protected void verifyRolledBack()(Code)
Delegates to com.mockrunner.ejb.EJBTestModule.verifyRolledBack



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