Java Doc for A_AdvancedHomeEC.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » jtests » clients » entity » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.jtests.clients.entity 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.jtests.util.JTestCase
   org.objectweb.jonas.jtests.clients.entity.A_AdvancedHomeEC

All known Subclasses:   org.objectweb.jonas.jtests.clients.entity.F_AdvancedHomeEC,  org.objectweb.jonas.jtests.clients.entity.F_AdvancedHomeEC2,
A_AdvancedHomeEC
abstract public class A_AdvancedHomeEC extends JTestCase (Code)
This is an advanced test suite for home interface on entity bean CMP. Beans used: annuaire
author:
   Philippe Coq, Philippe Durieux, Helene Joanin (jonas team)


Field Summary
 Stringmyname
    
 Stringmynum
    

Constructor Summary
public  A_AdvancedHomeEC(String name)
    

Method Summary
public  void_testDuplicateKey()
     Test DuplicateKeyException.
public  void_testDuplicateKeyTx()
     Test DuplicateKeyException.
abstract public  PersonneHomegetHome()
     return PersonneHome, that can be either CMP v1 or CMP v2 bean.
protected  voidsetUp()
    
public  voidtestCreateAndBusiness()
    
public  voidtestCreateInTx()
     test Create inside a Transaction.
public  voidtestCreateNull()
    
public  voidtestCreateRemoveInTx()
    
public  voidtestDuplicateKey2()
    
public  voidtestFindAllEnum()
     test du findAll, returning an Enumeration.
public  voidtestFindTwice()
     test 2 findByPrimaryKey in the same tx, with an update between the 2 calls.
public  voidtestFinderInTx()
    
public  voidtestIsolation()
    
public  voidtestManyCreate()
    
public  voidtestRemove()
    
public  voidtestRemove2()
    
public  voidtestRemoveCreate()
    
public  voidtestRemoveCreate2()
    
public  voidtestRemoveCreate3()
    
public  voidtestRemoveCreateTx()
    
public  voidtestRemoveHandle()
    
public  voidtestRemoveInTx()
    
public  voidtestRemovePKRB()
    
public  voidtestRemovePk()
    
public  voidtestRemovePkInTx()
    
public  voidtestRemovePkNonExistent()
     Test remove(pk) of a non-existent pk.
public  voidtestRemovePkNonExistentInTx()
     Test remove(pk) of a non-existent pk inside transaction.
public  voidtestRemoveRB()
    
public  voidtestRemoveTwice()
    
public  voidtestRemoveTwiceTx()
    
public  voidtestSimpleCreateInTx()
     test a simple Create inside a Transaction.
public  voidtestSimpleRemove()
     test a simple Remove Find an instance already in database and remove it.

Field Detail
myname
String myname(Code)



mynum
String mynum(Code)




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




Method Detail
_testDuplicateKey
public void _testDuplicateKey() throws Exception(Code)
Test DuplicateKeyException. Create outside tx known bug #300836: remove it from the list



_testDuplicateKeyTx
public void _testDuplicateKeyTx() throws Exception(Code)
Test DuplicateKeyException. Create in an implicit tx known bug #300836: remove it from the list



getHome
abstract public PersonneHome getHome()(Code)
return PersonneHome, that can be either CMP v1 or CMP v2 bean.



setUp
protected void setUp()(Code)



testCreateAndBusiness
public void testCreateAndBusiness() throws Exception(Code)
Test Create + Business Method inside the same Tx



testCreateInTx
public void testCreateInTx() throws Exception(Code)
test Create inside a Transaction.



testCreateNull
public void testCreateNull() throws Exception(Code)
Verify that we can create an entity with a null name



testCreateRemoveInTx
public void testCreateRemoveInTx() throws Exception(Code)
Test create + remove in transactions



testDuplicateKey2
public void testDuplicateKey2() throws Exception(Code)



testFindAllEnum
public void testFindAllEnum() throws Exception(Code)
test du findAll, returning an Enumeration. Some of the beans are already in the database, some other are created.



testFindTwice
public void testFindTwice() throws Exception(Code)
test 2 findByPrimaryKey in the same tx, with an update between the 2 calls. We shall see the modifications, even before the commit occurs.



testFinderInTx
public void testFinderInTx() throws Exception(Code)
Test finder in transactions



testIsolation
public void testIsolation() throws Exception(Code)
Combination of other tests This test the transaction isolation in entity bean container this test must never hang



testManyCreate
public void testManyCreate() throws Exception(Code)
Test many Create calls



testRemove
public void testRemove() throws Exception(Code)
Test bean.remove : create / find / remove / find



testRemove2
public void testRemove2() throws Exception(Code)
Test bean.remove : create / find / remove / bussiness method Ensure the javax.ejb.EJBException is thrown when trying to invoke an accessor method on a deleted entitybean object



testRemoveCreate
public void testRemoveCreate() throws Exception(Code)



testRemoveCreate2
public void testRemoveCreate2() throws Exception(Code)



testRemoveCreate3
public void testRemoveCreate3() throws Exception(Code)



testRemoveCreateTx
public void testRemoveCreateTx() throws Exception(Code)



testRemoveHandle
public void testRemoveHandle() throws Exception(Code)
Test remove(handle): create / find / remove(handle) / find CMP2: bug #300419



testRemoveInTx
public void testRemoveInTx() throws Exception(Code)
Test bean.remove inside a tx: create / find / remove / find



testRemovePKRB
public void testRemovePKRB() throws Exception(Code)
Test remove by PK in a tx rolled back we modify the bean instance outside tx, then we check that the bean state has not been changed by the rolled back remove



testRemovePk
public void testRemovePk() throws Exception(Code)
Test remove(pk): create / find / remove(pk) / find



testRemovePkInTx
public void testRemovePkInTx() throws Exception(Code)
Test remove(pk) inside transaction: create / find / remove(pk) / find



testRemovePkNonExistent
public void testRemovePkNonExistent() throws Exception(Code)
Test remove(pk) of a non-existent pk.



testRemovePkNonExistentInTx
public void testRemovePkNonExistentInTx() throws Exception(Code)
Test remove(pk) of a non-existent pk inside transaction. See ejb2.1 18.3.1



testRemoveRB
public void testRemoveRB() throws Exception(Code)
Test remove in a tx rolled back we modify the bean instance outside tx, then we check that the bean state has not been changed by the rolled back remove



testRemoveTwice
public void testRemoveTwice() throws Exception(Code)
test remove twice



testRemoveTwiceTx
public void testRemoveTwiceTx() throws Exception(Code)
test remove twice in same transaction



testSimpleCreateInTx
public void testSimpleCreateInTx() throws Exception(Code)
test a simple Create inside a Transaction.



testSimpleRemove
public void testSimpleRemove() throws Exception(Code)
test a simple Remove Find an instance already in database and remove it.



Fields inherited from org.objectweb.jonas.jtests.util.JTestCase
final public static String PACKAGE(Code)(Java Doc)
protected static Context ictx(Code)(Java Doc)
protected static String jonasName(Code)(Java Doc)
protected StringBuffer msgerror(Code)(Java Doc)
protected static String testtorun(Code)(Java Doc)
public static UserTransaction utx(Code)(Java Doc)

Methods inherited from org.objectweb.jonas.jtests.util.JTestCase
protected static void callTest(String classname, String testname) throws Exception(Code)(Java Doc)
protected static void callrepeatedTest(String classname, String testname, int n) throws Exception(Code)(Java Doc)
public static void debug(String msg)(Code)(Java Doc)
public static void error(String msg)(Code)(Java Doc)
public DBEnv getDBEnv()(Code)(Java Doc)
public int random(int max) throws RemoteException(Code)(Java Doc)
protected void setUp()(Code)(Java Doc)
public void sleep(int msec)(Code)(Java Doc)
public void sync(boolean passivate)(Code)(Java Doc)
protected void tearDown() throws Exception(Code)(Java Doc)
public void testEmpty() throws Exception(Code)(Java Doc)
public void unloadBeans(String filename)(Code)(Java Doc)
public void useBeans(String filename, boolean create)(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.