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

All known Subclasses:   org.jboss.test.securitymgr.test.BMPUnitTestCase,
BmpUnitTestCase
public class BmpUnitTestCase extends JBossTestCase (Code)
Class BmpTest
author:
   Author: kimptoc
version:
   $Revision: 57211 $


Field Summary
final public static  StringBEAN_NAME
    
final public static  StringBEAN_OTHER_NAME
    
final public static  StringBEAN_PK_007
    

Constructor Summary
public  BmpUnitTestCase(String name)
    

Method Summary
protected  voidsetUp()
    
public static  Testsuite()
    
protected  voidtearDown()
    
public  voidtestContainerObjects()
     Method testContainerObjects EJB 1.1 [9.3] p.
public  voidtestEjbCreate()
     Method testEjbCreate EJB 1.1 [8.3.1] p.
public  voidtestEjbFinder()
     Method testEjbFinder EJB 1.1 [8.3.2] p.
public  voidtestEjbLifeCycle()
     Method testEjbLifeCycle EJB 1.1 [8.4] p.
public  voidtestEjbRemoteIF()
     Method testEjbRemoteIF EJB 1.1 [8.6] p.
public  voidtestEjbRemove()
     Method testEjbRemove EJB 1.1 [8.3.3] p.
public  voidtestEntityHandle()
     Method testEntityHandle EJB 1.1 [8.7] p.
public  voidtestPrimaryKeyObjectIdentity()
     Method testPrimaryKeyObjectIdentity EJB 1.1 [8.5] p.
public  voidtestProbeContainerCallbacks()
    
public  voidtestSessionHandleNoDefaultJNDI()
     Test of handle that is unmarshalled in a environment where new InitialContext() will not work.
public  voidtestUserTransaction()
     Do the UserTransaction tests.

Field Detail
BEAN_NAME
final public static String BEAN_NAME(Code)



BEAN_OTHER_NAME
final public static String BEAN_OTHER_NAME(Code)



BEAN_PK_007
final public static String BEAN_PK_007(Code)




Constructor Detail
BmpUnitTestCase
public BmpUnitTestCase(String name)(Code)
Constructor BmpTest
Parameters:
  name -




Method Detail
setUp
protected void setUp() throws Exception(Code)



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



tearDown
protected void tearDown() throws Exception(Code)



testContainerObjects
public void testContainerObjects()(Code)
Method testContainerObjects EJB 1.1 [9.3] p. 127-129 Container must implement: - Entity EJBHome class - Entity EJBObject class - Handle class - HomeHandle class - Meta-data class



testEjbCreate
public void testEjbCreate() throws Exception(Code)
Method testEjbCreate EJB 1.1 [8.3.1] p. 89 An entity bean's home interface can define zero or more create(...) methods.
throws:
  Exception -



testEjbFinder
public void testEjbFinder() throws Exception(Code)
Method testEjbFinder EJB 1.1 [8.3.2] p. 90 An entity bean's home interface defines one or more finder methods, one for each way to find and entity object or collection of entity objects within the home. Test stategy: Create a bean. Use the bean that has been previously created, and call the finder method. Make sure that a result set is returned and that the bean returned has the same name associated with it as the bean that was previously created.
throws:
  Exception -



testEjbLifeCycle
public void testEjbLifeCycle()(Code)
Method testEjbLifeCycle EJB 1.1 [8.4] p. 92 A client can get a reference to an existing entity objects remote interface in any of the following ways: - Receive the reference as a parameter in a method call. - Find the entity object using a finder method defined in the EB home i/f. - Obtain the reference from the entity objects' handle.
throws:
  Exception -



testEjbRemoteIF
public void testEjbRemoteIF()(Code)
Method testEjbRemoteIF EJB 1.1 [8.6] p. 93-94 The javax.ejb.EJBObject I/F defines the methods that allow the client to perform the following: - Obtain the home interface for the entity object - Remove the entity object - Obtain the entity object's handle - Obtain the entity object's primary key
throws:
  Exception -



testEjbRemove
public void testEjbRemove() throws Exception(Code)
Method testEjbRemove EJB 1.1 [8.3.3] p. 90 Test Strategy: 1) Create a bean to remove. 2) Attempt a simple remove using the remote interface. 3) Create a bean to remove. 4) Attempt a simple remove using the home interface and primary key. 5) Create a bean to remove. 6) Try to remove the instance using its handle. 7) Try to access the instance. This should result in a java.rmi.NoSuchObjectException
throws:
  Exception -



testEntityHandle
public void testEntityHandle()(Code)
Method testEntityHandle EJB 1.1 [8.7] p. 93-94 - Client can get handle to remote interface - Use javax.rmi.PortableRemoteObject.narrow(...) to convert the result of the getEJBObject(). - An entity handle is typically implemented to be usable over a long period of time it must be usable at least across a server restart.
throws:
  Exception -



testPrimaryKeyObjectIdentity
public void testPrimaryKeyObjectIdentity()(Code)
Method testPrimaryKeyObjectIdentity EJB 1.1 [8.5] p. 92-93 Every entity object has a unique identity within its home. If two entity objects have the same home and the same primary key they are considered identitcal. getPrimaryKey() always returns the same value when called one the same entity object. A client can test whether two entity object references refer to the same entity object by using the isIdentical(EBJObject) method. Alternatively, if a client obtains two entity object references from the same home, it can determin if they refer to the same entity by comparing their primary keys using the 'equals' method.
throws:
  Exception -



testProbeContainerCallbacks
public void testProbeContainerCallbacks()(Code)
Method testProbeContainerCallbacks



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



testUserTransaction
public void testUserTransaction() throws Exception(Code)
Do the UserTransaction tests.



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