Java Doc for StatefulSessionUnitTestCase.java in  » EJB-Server-JBoss-4.2.1 » testsuite » org » jboss » test » cts » test » 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.cts.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.test.cts.test.StatefulSessionUnitTestCase

All known Subclasses:   org.jboss.test.securitymgr.test.StatefulSessionUnitTestCase,
StatefulSessionUnitTestCase
public class StatefulSessionUnitTestCase extends JBossTestCase (Code)
Tests of stateful session beans
author:
   kimptoc
author:
   Scott.Stark@jboss.org
author:
   d_jencks converted to JBossTestCase, added logging.
version:
   $Revision: 57211 $


Field Summary
final static  intMAX_SIZE
    

Constructor Summary
public  StatefulSessionUnitTestCase(String name)
    

Method Summary
public static  Testsuite()
    
public  voidtestBMTSessionHandleNoDefaultJNDI()
     Test of BMT handle that is unmarshalled in a environment where new InitialContext() will not work.
public  voidtestBadUserTx()
    
public  voidtestBasicSession()
     EJB 1.1 (Page 40) "The container is responsible for making the home interfaces of its deployed enterprise of its deployed enterprise beans available to the client through JNDI API extension.
public  voidtestCompareSerializeGetPK()
    
public  voidtestEJBHomeInterface()
     Method testEJBHomeInterface EJB 1.1 (Page 42) "The home interface allows a client to do the following:" - Create a new session object - Remove session object - Get the javax.ejb.EJBMetaData interface for the session bean.
public  voidtestHomeFromRemoteNoDefaultJNDI()
     Test of accessing the home interface from the remote interface in an env new InitialContext() will not work.
public  voidtestInVMSessionHandlePassivation()
     Create a StatefulSessionBean and then create a handle to a stateful session bean in the session.
public  voidtestLocalInterfacePassivation()
     Create a StatefulSessionBean and then create a local interface to an entity in the session.
public  voidtestLoopback()
     Method testLoopback EJB 1.1 [6.5.6] A client call to bean 'A' which calls bean 'B' and bean 'B' in turn calls a method on bean 'A', there should be a RemoteException should be thrown.
public  voidtestPassivationBySize()
     Create a StatefulSessionBean and then force passivation by creating another session bean and then activated by invoking a business method.
public  voidtestPassivationByTime()
     Create a StatefulSessionBean and then force passivation by waiting for 45 seconds.
public  voidtestProbeBeanContext()
    
public  voidtestRemoveSessionObject()
     Method testRemoveSessionObject EJB 1.1 (Page 42) Removing a Session Object.
public  voidtestSerialization()
     Method testSerialization EJB 1.1 [5.7] Page 45 Session bean must be serializable.
public  voidtestSessionHandleNoDefaultJNDI()
     Test of handle that is unmarshalled in a environment where new InitialContext() will not work.
public  voidtestSessionHandlePassivation()
     Create a StatefulSessionBean and then create a handle to a session bean in the session.
public  voidtestSessionRefPassivation()
     Create a StatefulSessionBean and then create a handle to a session bean in the session.
public  voidtestStrictPooling()
     Run MAX_SIZE instances currently with a strictMaxSize setting of 5 to see that at most 5 instances are active in the bean instance.
public  voidtestUnSerialization()
     Method testUnSerialization EJB 1.1 [5.7] Page 45 Part II of the test, makes sure the bean can be resurected and used.
public  voidtestUserTx()
    

Field Detail
MAX_SIZE
final static int MAX_SIZE(Code)




Constructor Detail
StatefulSessionUnitTestCase
public StatefulSessionUnitTestCase(String name)(Code)




Method Detail
suite
public static Test suite() throws Exception(Code)



testBMTSessionHandleNoDefaultJNDI
public void testBMTSessionHandleNoDefaultJNDI() throws Exception(Code)
Test of BMT handle that is unmarshalled in a environment where new InitialContext() will not work.
throws:
  Exception -



testBadUserTx
public void testBadUserTx() throws Exception(Code)



testBasicSession
public void testBasicSession() throws Exception(Code)
EJB 1.1 (Page 40) "The container is responsible for making the home interfaces of its deployed enterprise of its deployed enterprise beans available to the client through JNDI API extension.



testCompareSerializeGetPK
public void testCompareSerializeGetPK() throws Exception(Code)
Method testCompareSerializeGetPK EJB 1.1 [5.5] Page 43 EJBOjbect.getPrimaryKey results in a RemoteException Get a serializable handle Compare on bean to another for equality



testEJBHomeInterface
public void testEJBHomeInterface() throws Exception(Code)
Method testEJBHomeInterface EJB 1.1 (Page 42) "The home interface allows a client to do the following:" - Create a new session object - Remove session object - Get the javax.ejb.EJBMetaData interface for the session bean. - Obtain a handle for the home interface
throws:
  Exception -



testHomeFromRemoteNoDefaultJNDI
public void testHomeFromRemoteNoDefaultJNDI() throws Exception(Code)
Test of accessing the home interface from the remote interface in an env new InitialContext() will not work.
throws:
  Exception -



testInVMSessionHandlePassivation
public void testInVMSessionHandlePassivation() throws Exception(Code)
Create a StatefulSessionBean and then create a handle to a stateful session bean in the session. The handle is serialized into an in memory array to test serialization of handles in the absence of custom marshalling streams. This has to use the FacadeStatefulSessionBean due to the fact that the MaxOne Stateful Session configuration is not able to passivate the outer session bean when it tries to create a new session due to the session context being locked by the invocation.



testLocalInterfacePassivation
public void testLocalInterfacePassivation() throws Exception(Code)
Create a StatefulSessionBean and then create a local interface to an entity in the session. This bean is then passivated by creating another session bean and then activated by invoking a business method. The purpose is to test that the session is passivated and that the local interface is restored.



testLoopback
public void testLoopback() throws Exception(Code)
Method testLoopback EJB 1.1 [6.5.6] A client call to bean 'A' which calls bean 'B' and bean 'B' in turn calls a method on bean 'A', there should be a RemoteException should be thrown.



testPassivationBySize
public void testPassivationBySize() throws Exception(Code)
Create a StatefulSessionBean and then force passivation by creating another session bean and then activated by invoking a business method. This relies on a custom container config that specifies container-cache-conf/cache-policy-conf/max-capacity=1



testPassivationByTime
public void testPassivationByTime() throws Exception(Code)
Create a StatefulSessionBean and then force passivation by waiting for 45 seconds. This relies on a custom container config that specifies container-cache-conf/cache-policy-conf/remover-period=65 container-cache-conf/cache-policy-conf/overager-period=40 container-cache-conf/cache-policy-conf/max-bean-age=30 container-cache-conf/cache-policy-conf/max-bean-life=60



testProbeBeanContext
public void testProbeBeanContext() throws Exception(Code)
Method testProbeBeanContext EJB 1.1 [6.4.1] Page 51



testRemoveSessionObject
public void testRemoveSessionObject() throws Exception(Code)
Method testRemoveSessionObject EJB 1.1 (Page 42) Removing a Session Object. Because session objects do not have primary keys that are accessible to clients, invoking the javax.ejb.Home.remove( Object primaryKey ) method on a session results in the javax.ejb.RemoveException.



testSerialization
public void testSerialization() throws Exception(Code)
Method testSerialization EJB 1.1 [5.7] Page 45 Session bean must be serializable.



testSessionHandleNoDefaultJNDI
public void testSessionHandleNoDefaultJNDI() throws Exception(Code)
Test of handle that is unmarshalled in a environment where new InitialContext() will not work.
throws:
  Exception -



testSessionHandlePassivation
public void testSessionHandlePassivation() throws Exception(Code)
Create a StatefulSessionBean and then create a handle to a session bean in the session. This bean is then passivated by creating another session bean and then activated by invoking a business method. The purpose is to test that the session is passivated and that the session handle can be used to restore the session bean reference.



testSessionRefPassivation
public void testSessionRefPassivation() throws Exception(Code)
Create a StatefulSessionBean and then create a handle to a session bean in the session. This bean is then passivated by creating another session bean and then activated by invoking a business method. The purpose is to test that the session is passivated and that the session handle can be used to restore the session bean reference.



testStrictPooling
public void testStrictPooling() throws Exception(Code)
Run MAX_SIZE instances currently with a strictMaxSize setting of 5 to see that at most 5 instances are active in the bean instance.
throws:
  Exception -



testUnSerialization
public void testUnSerialization() throws Exception(Code)
Method testUnSerialization EJB 1.1 [5.7] Page 45 Part II of the test, makes sure the bean can be resurected and used.



testUserTx
public void testUserTx() 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.