Java Doc for EJBTestModule.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) 


java.lang.Object
   com.mockrunner.ejb.EJBTestModule

EJBTestModule
public class EJBTestModule (Code)
Module for EJB tests.



Constructor Summary
public  EJBTestModule(EJBMockObjectFactory mockFactory)
    

Method Summary
public  voidbindToContext(String name, Object object)
    
public  ObjectcreateBean(String name)
     Create an EJB.
public  ObjectcreateBean(String name, Object[] parameters)
     Create an EJB.
public  ObjectcreateBean(String name, String createMethod, Object[] parameters)
     Create an EJB.
public  ObjectcreateBean(String name, String createMethod, Object[] parameters, Class[] parameterTypes)
     Create an EJB.
public  ObjectcreateEntityBean(String name, Object primaryKey)
     Create an entity EJB.
public  ObjectcreateEntityBean(String name, Object[] parameters, Object primaryKey)
     Create an entity EJB.
public  ObjectcreateEntityBean(String name, String createMethod, Object[] parameters, Object primaryKey)
     Create an entity EJB.
public  ObjectcreateEntityBean(String name, String createMethod, Object[] parameters, Class[] parameterTypes, Object primaryKey)
     Create an entity EJB.
public  voiddeploy(BasicEjbDescriptor descriptor)
     Deploys a bean to the mock container using the specified descriptor.
public  voiddeploy(BasicEjbDescriptor descriptor, TransactionPolicy policy)
     Deploys a bean to the mock container using the specified descriptor.
public  voiddeployEntityBean(String jndiName, Class beanClass)
     Deploys an entity bean to the mock container.
public  voiddeployEntityBean(String jndiName, Class beanClass, TransactionPolicy policy)
     Deploys an entity bean to the mock container.
public  voiddeployMessageBean(String connectionFactoryJndiName, String destinationJndiName, ConnectionFactory connectionFactory, Destination destination, Object bean)
     Deploys a message driven bean to the mock container. You have to specify JNDI names for connection factory and destination.
public  voiddeployMessageBean(String connectionFactoryJndiName, String destinationJndiName, ConnectionFactory connectionFactory, Destination destination, Object bean, TransactionPolicy policy)
     Deploys a message driven bean to the mock container. You have to specify JNDI names for connection factory and destination.
public  voiddeploySessionBean(String jndiName, Class beanClass)
     Deploys a stateless session bean to the mock container.
public  voiddeploySessionBean(String jndiName, Class beanClass, boolean stateful)
     Deploys a session bean to the mock container.
public  voiddeploySessionBean(String jndiName, Class beanClass, TransactionPolicy policy)
     Deploys a stateless session bean to the mock container.
public  voiddeploySessionBean(String jndiName, Class beanClass, boolean stateful, TransactionPolicy policy)
     Deploys a session bean to the mock container.
public  voiddeploySessionBean(String jndiName, Object bean)
     Deploys a stateless session bean to the mock container.
public  voiddeploySessionBean(String jndiName, Object bean, boolean stateful)
     Deploys a session bean to the mock container.
public  voiddeploySessionBean(String jndiName, Object bean, TransactionPolicy policy)
     Deploys a stateless session bean to the mock container.
public  voiddeploySessionBean(String jndiName, Object bean, boolean stateful, TransactionPolicy policy)
     Deploys a session bean to the mock container.
public  ObjectfindByPrimaryKey(String name, Object primaryKey)
     Finds an entity EJB by its primary key.
public  Objectlookup(String name)
     Lookup an object.
public  ObjectlookupBean(String name)
    
public  ObjectlookupBean(String name, Object[] parameters)
    
public  ObjectlookupBean(String name, String createMethod, Object[] parameters)
    
public  voidresetUserTransaction()
     Resets the com.mockrunner.mock.ejb.MockUserTransaction .
public  voidsetBusinessInterfacePackage(String businessInterfacePackage)
     Sets the package for the bean remote (local respectively) interface.
public  voidsetBusinessInterfaceSuffix(String businessInterfaceSuffix)
     Sets the suffix of the remote (local respectively) interface.
public  voidsetHomeInterfacePackage(String homeInterfacePackage)
     Sets the package for the bean home (local home respectively) interface.
public  voidsetHomeInterfaceSuffix(String homeInterfaceSuffix)
     Sets the suffix of the home (local home respectively) interface.
public  voidsetImplementationSuffix(String impSuffix)
     Sets the suffix of the bean implementation class.
public  voidsetInterfacePackage(String interfacePackage)
     Sets the package for the bean home and remote interfaces.
public  voidverifyCommitted()
     Verifies that the transaction was committed.
public  voidverifyMarkedForRollback()
     Verifies that the transaction was marked for rollback using the method setRollbackOnly().
public  voidverifyNotCommitted()
     Verifies that the transaction was not committed.
public  voidverifyNotMarkedForRollback()
     Verifies that the transaction was not marked for rollback.
public  voidverifyNotRolledBack()
     Verifies that the transaction was not rolled back.
public  voidverifyRolledBack()
     Verifies that the transaction was rolled back.


Constructor Detail
EJBTestModule
public EJBTestModule(EJBMockObjectFactory mockFactory)(Code)




Method Detail
bindToContext
public void bindToContext(String name, Object object)(Code)
Adds an object to the mock context by calling rebind
Parameters:
  name - JNDI name of the object
Parameters:
  object - the object to add



createBean
public Object createBean(String name)(Code)
Create an EJB. The method looks up the home interface, calls the create method and returns the result, which you can cast to the remote interface. This method only works with create methods that have an empty parameter list. The create method must have the name create with no postfix. It works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the corresponding create method cannot be found, this method returns null.
Parameters:
  name - JNDI name of the bean the bean
throws:
  RuntimeException - in case of error



createBean
public Object createBean(String name, Object[] parameters)(Code)
Create an EJB. The method looks up the home interface, calls the create method with the specified parameters and returns the result, which you can cast to the remote interface. The create method must have the name create with no postfix. This method works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the corresponding create method cannot be found, this method returns null. This method does not allow null as a parameter, because the type of the parameter cannot be determined in this case.
Parameters:
  name - JNDI name of the bean
Parameters:
  parameters - the parameters, null parameters are not allowed,primitive types are automatically unwrapped the bean
throws:
  RuntimeException - in case of error



createBean
public Object createBean(String name, String createMethod, Object[] parameters)(Code)
Create an EJB. The method looks up the home interface, calls the create method with the specified parameters and returns the result, which you can cast to the remote interface. This method works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the corresponding create method cannot be found, this method returns null. This method does not allow null as a parameter, because the type of the parameter cannot be determined in this case.
Parameters:
  name - JNDI name of the bean
Parameters:
  createMethod - the name of the create method
Parameters:
  parameters - the parameters, null parameters are not allowed,primitive types are automatically unwrapped the bean
throws:
  RuntimeException - in case of error



createBean
public Object createBean(String name, String createMethod, Object[] parameters, Class[] parameterTypes)(Code)
Create an EJB. The method looks up the home interface, calls the create method with the specified parameters and returns the result, which you can cast to the remote interface. This method works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the corresponding create method cannot be found, this method returns null. This method does allow null as a parameter.
Parameters:
  name - JNDI name of the bean
Parameters:
  createMethod - the name of the create method
Parameters:
  parameters - the parameters, null is allowed as a parameter
Parameters:
  parameterTypes - the type of the specified parameters the bean
throws:
  RuntimeException - in case of error



createEntityBean
public Object createEntityBean(String name, Object primaryKey)(Code)
Create an entity EJB. The method looks up the home interface, calls the create method and returns the result, which you can cast to the remote interface. This method only works with create methods that have an empty parameter list. The create method must have the name create with no postfix. It works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the corresponding create method cannot be found, this method returns null. The created entity EJB is added to the mock database automatically using the provided primary key.
Parameters:
  name - JNDI name of the bean
Parameters:
  primaryKey - the primary key the bean
throws:
  RuntimeException - in case of error



createEntityBean
public Object createEntityBean(String name, Object[] parameters, Object primaryKey)(Code)
Create an entity EJB. The method looks up the home interface, calls the create method with the specified parameters and returns the result, which you can cast to the remote interface. The create method must have the name create with no postfix. This method works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the corresponding create method cannot be found, this method returns null. The created entity EJB is added to the mock database automatically using the provided primary key. This method does not allow null as a parameter, because the type of the parameter cannot be determined in this case.
Parameters:
  name - JNDI name of the bean
Parameters:
  parameters - the parameters, null parameters are not allowed,primitive types are automatically unwrapped
Parameters:
  primaryKey - the primary key the bean
throws:
  RuntimeException - in case of error



createEntityBean
public Object createEntityBean(String name, String createMethod, Object[] parameters, Object primaryKey)(Code)
Create an entity EJB. The method looks up the home interface, calls the create method with the specified parameters and returns the result, which you can cast to the remote interface. This method works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the corresponding create method cannot be found, this method returns null. The created entity EJB is added to the mock database automatically using the provided primary key. This method does not allow null as a parameter, because the type of the parameter cannot be determined in this case.
Parameters:
  name - JNDI name of the bean
Parameters:
  createMethod - the name of the create method
Parameters:
  parameters - the parameters, null parameters are not allowed,primitive types are automatically unwrapped
Parameters:
  primaryKey - the primary key the bean
throws:
  RuntimeException - in case of error



createEntityBean
public Object createEntityBean(String name, String createMethod, Object[] parameters, Class[] parameterTypes, Object primaryKey)(Code)
Create an entity EJB. The method looks up the home interface, calls the create method with the specified parameters and returns the result, which you can cast to the remote interface. This method works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the corresponding create method cannot be found, this method returns null. The created entity EJB is added to the mock database automatically using the provided primary key. This method does allow null as a parameter.
Parameters:
  name - JNDI name of the bean
Parameters:
  createMethod - the name of the create method
Parameters:
  parameters - the parameters, null is allowed as a parameter
Parameters:
  primaryKey - the primary key the bean
throws:
  RuntimeException - in case of error



deploy
public void deploy(BasicEjbDescriptor descriptor)(Code)
Deploys a bean to the mock container using the specified descriptor. Sets the transaction policy SUPPORTS. Determines the type of bean (session, entity, message driven) using the descriptor.
Parameters:
  descriptor - the descriptor



deploy
public void deploy(BasicEjbDescriptor descriptor, TransactionPolicy policy)(Code)
Deploys a bean to the mock container using the specified descriptor. Determines the type of bean (session, entity, message driven) using the descriptor. The specified transaction policy will be automatically set. If the specified transaction policy is null, no transaction policy will be set. This makes sense for BMT EJBs. Please note that the deploy methods of this class without a transaction policy argument automatically set the SUPPORTS policy, which also works fine for BMT EJBs.
Parameters:
  descriptor - the descriptor
Parameters:
  policy - the transaction policy



deployEntityBean
public void deployEntityBean(String jndiName, Class beanClass)(Code)
Deploys an entity bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. Sets the transaction policy SUPPORTS.
Parameters:
  jndiName - the JNDI name
Parameters:
  beanClass - the bean implementation class



deployEntityBean
public void deployEntityBean(String jndiName, Class beanClass, TransactionPolicy policy)(Code)
Deploys an entity bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. The specified transaction policy will be automatically set.
Parameters:
  jndiName - the JNDI name
Parameters:
  beanClass - the bean implementation class
Parameters:
  policy - the transaction policy



deployMessageBean
public void deployMessageBean(String connectionFactoryJndiName, String destinationJndiName, ConnectionFactory connectionFactory, Destination destination, Object bean)(Code)
Deploys a message driven bean to the mock container. You have to specify JNDI names for connection factory and destination. For creating connection factory and destination objects you can use com.mockrunner.mock.jms.JMSMockObjectFactory and com.mockrunner.jms.DestinationManager . The specified objects are automatically bound to JNDI using the specified names. The mock container automatically creates a connection and session. Sets the transaction policy NOT_SUPPORTED.
Parameters:
  connectionFactoryJndiName - the JNDI name of the connection factory
Parameters:
  destinationJndiName - the JNDI name of the destination
Parameters:
  connectionFactory - the connection factory
Parameters:
  destination - the destination
Parameters:
  bean - the message driven bean instance



deployMessageBean
public void deployMessageBean(String connectionFactoryJndiName, String destinationJndiName, ConnectionFactory connectionFactory, Destination destination, Object bean, TransactionPolicy policy)(Code)
Deploys a message driven bean to the mock container. You have to specify JNDI names for connection factory and destination. For creating connection factory and destination objects you can use com.mockrunner.mock.jms.JMSMockObjectFactory and com.mockrunner.jms.DestinationManager . The specified objects are automatically bound to JNDI using the specified names. The mock container automatically creates a connection and session. The specified transaction policy will be automatically set.
Parameters:
  connectionFactoryJndiName - the JNDI name of the connection factory
Parameters:
  destinationJndiName - the JNDI name of the destination
Parameters:
  connectionFactory - the connection factory
Parameters:
  destination - the destination
Parameters:
  bean - the message driven bean instance
Parameters:
  policy - the transaction policy



deploySessionBean
public void deploySessionBean(String jndiName, Class beanClass)(Code)
Deploys a stateless session bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. Sets the transaction policy SUPPORTS.
Parameters:
  jndiName - the JNDI name
Parameters:
  beanClass - the bean implementation class



deploySessionBean
public void deploySessionBean(String jndiName, Class beanClass, boolean stateful)(Code)
Deploys a session bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. Sets the transaction policy SUPPORTS.
Parameters:
  jndiName - the JNDI name
Parameters:
  beanClass - the bean implementation class
Parameters:
  stateful - is the bean stateful



deploySessionBean
public void deploySessionBean(String jndiName, Class beanClass, TransactionPolicy policy)(Code)
Deploys a stateless session bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. The specified transaction policy will be automatically set.
Parameters:
  jndiName - the JNDI name
Parameters:
  beanClass - the bean implementation class
Parameters:
  policy - the transaction policy



deploySessionBean
public void deploySessionBean(String jndiName, Class beanClass, boolean stateful, TransactionPolicy policy)(Code)
Deploys a session bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. The specified transaction policy will be automatically set.
Parameters:
  jndiName - the JNDI name
Parameters:
  beanClass - the bean implementation class
Parameters:
  stateful - is the bean stateful
Parameters:
  policy - the transaction policy



deploySessionBean
public void deploySessionBean(String jndiName, Object bean)(Code)
Deploys a stateless session bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. Sets the transaction policy SUPPORTS.
Parameters:
  jndiName - the JNDI name
Parameters:
  bean - the bean implementation



deploySessionBean
public void deploySessionBean(String jndiName, Object bean, boolean stateful)(Code)
Deploys a session bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. Sets the transaction policy SUPPORTS.
Parameters:
  jndiName - the JNDI name
Parameters:
  bean - the bean implementation
Parameters:
  stateful - is the bean stateful



deploySessionBean
public void deploySessionBean(String jndiName, Object bean, TransactionPolicy policy)(Code)
Deploys a stateless session bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. The specified transaction policy will be automatically set.
Parameters:
  jndiName - the JNDI name
Parameters:
  bean - the bean implementation
Parameters:
  policy - the transaction policy



deploySessionBean
public void deploySessionBean(String jndiName, Object bean, boolean stateful, TransactionPolicy policy)(Code)
Deploys a session bean to the mock container. You have to specify the implementation class and the JNDI name. The frameworks determines the home and remote interfaces based on the information specified with the setSuffix and setPackage methods. The specified transaction policy will be automatically set.
Parameters:
  jndiName - the JNDI name
Parameters:
  bean - the bean implementation
Parameters:
  stateful - is the bean stateful
Parameters:
  policy - the transaction policy



findByPrimaryKey
public Object findByPrimaryKey(String name, Object primaryKey)(Code)
Finds an entity EJB by its primary key. The method looks up the home interface, calls the findByPrimaryKey method and returns the result, which you can cast to the remote interface. This method works with the mock container but may fail with a real remote container. This method throws a RuntimeException if no object with the specified name can be found. If the found object is no EJB home interface, or if the findByPrimaryKey method cannot be found, this method returns null. If the mock container throws an exception because the primary key cannot be found in the entity database, this method returns null.
Parameters:
  name - JNDI name of the bean
Parameters:
  primaryKey - the primary key the bean
throws:
  RuntimeException - in case of error



lookup
public Object lookup(String name)(Code)
Lookup an object. If the object is not bound to the InitialContext, a RuntimeException will be thrown.
Parameters:
  name - JNDI name of the object the object
throws:
  RuntimeException - if an object with the specified name cannot be found.



lookupBean
public Object lookupBean(String name)(Code)
EJBTestModule.createBean(String)



lookupBean
public Object lookupBean(String name, Object[] parameters)(Code)
EJBTestModule.createBean(String,Object[])



lookupBean
public Object lookupBean(String name, String createMethod, Object[] parameters)(Code)
EJBTestModule.createBean(String,String,Object[])



resetUserTransaction
public void resetUserTransaction()(Code)
Resets the com.mockrunner.mock.ejb.MockUserTransaction . Note: If you do not use the com.mockrunner.mock.ejb.MockUserTransaction implementation, this method does nothing.



setBusinessInterfacePackage
public void setBusinessInterfacePackage(String businessInterfacePackage)(Code)
Sets the package for the bean remote (local respectively) interface. Per default, the framework expects that the interfaces are in the same package as the bean implementation classes.
Parameters:
  businessInterfacePackage - the package name for remote interface



setBusinessInterfaceSuffix
public void setBusinessInterfaceSuffix(String businessInterfaceSuffix)(Code)
Sets the suffix of the remote (local respectively) interface. The default is an empty string, i.e. if the implementation class is TestBean, the remote interface is Test
Parameters:
  businessInterfaceSuffix - the bean remote interface suffix



setHomeInterfacePackage
public void setHomeInterfacePackage(String homeInterfacePackage)(Code)
Sets the package for the bean home (local home respectively) interface. Per default, the framework expects that the interfaces are in the same package as the bean implementation classes.
Parameters:
  homeInterfacePackage - the package name for home interface



setHomeInterfaceSuffix
public void setHomeInterfaceSuffix(String homeInterfaceSuffix)(Code)
Sets the suffix of the home (local home respectively) interface. The default is "Home", i.e. if the implementation class is TestBean, the home interface is TestHome
Parameters:
  homeInterfaceSuffix - the bean home interface suffix



setImplementationSuffix
public void setImplementationSuffix(String impSuffix)(Code)
Sets the suffix of the bean implementation class. The default is "Bean", i.e. if the remote interface has the name Test the implementation class is TestBean.
Parameters:
  impSuffix - the bean implementation suffix



setInterfacePackage
public void setInterfacePackage(String interfacePackage)(Code)
Sets the package for the bean home and remote interfaces. Per default, the framework expects that the interfaces are in the same package as the bean implementation classes.
Parameters:
  interfacePackage - the package name for home and remote interfaces



verifyCommitted
public void verifyCommitted()(Code)
Verifies that the transaction was committed. If you are using container managed transactions, you have to set an appropriate transaction policy, e.g. REQUIRED. Otherwise the container will not commit the mock transaction. Note: If you do not use the com.mockrunner.mock.ejb.MockUserTransaction implementation, this method throws a VerifyFailedException.
throws:
  VerifyFailedException - if verification fails



verifyMarkedForRollback
public void verifyMarkedForRollback()(Code)
Verifies that the transaction was marked for rollback using the method setRollbackOnly(). Note: If you do not use the com.mockrunner.mock.ejb.MockUserTransaction implementation, this method throws a VerifyFailedException.
throws:
  VerifyFailedException - if verification fails



verifyNotCommitted
public void verifyNotCommitted()(Code)
Verifies that the transaction was not committed. If you are using container managed transactions, you have to set an appropriate transaction policy, e.g. REQUIRED. Note: If you do not use the com.mockrunner.mock.ejb.MockUserTransaction implementation, this method throws a VerifyFailedException.
throws:
  VerifyFailedException - if verification fails



verifyNotMarkedForRollback
public void verifyNotMarkedForRollback()(Code)
Verifies that the transaction was not marked for rollback. Note: If you do not use the com.mockrunner.mock.ejb.MockUserTransaction implementation, this method throws a VerifyFailedException.
throws:
  VerifyFailedException - if verification fails



verifyNotRolledBack
public void verifyNotRolledBack()(Code)
Verifies that the transaction was not rolled back. If you are using container managed transactions, you have to set an appropriate transaction policy, e.g. REQUIRED. Note: If you do not use the com.mockrunner.mock.ejb.MockUserTransaction implementation, this method throws a VerifyFailedException.
throws:
  VerifyFailedException - if verification fails



verifyRolledBack
public void verifyRolledBack()(Code)
Verifies that the transaction was rolled back. If you are using container managed transactions, you have to set an appropriate transaction policy, e.g. REQUIRED. Otherwise the container will not rollback the mock transaction. Note: If you do not use the com.mockrunner.mock.ejb.MockUserTransaction implementation, this method throws a VerifyFailedException.
throws:
  VerifyFailedException - if verification fails



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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