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

All known Subclasses:   org.objectweb.jonas.jtests.clients.entity.F_BasicHomeSharedEB,  org.objectweb.jonas.jtests.clients.entity.F_BasicHomeInterfaceEB,  org.objectweb.jonas.jtests.clients.entity.A_BasicHomeInterfaceEC,
A_BasicHomeInterface
abstract public class A_BasicHomeInterface extends JTestCase (Code)
test cases common to both suites CMP and BMP.


Field Summary
protected static  SimpleHomehome
    

Constructor Summary
public  A_BasicHomeInterface(String name)
    

Method Summary
public  void_testLoopBack()
     test loopback on non reentrant bean outside tx Invalid this test because loopback with no transaction context is not clearly specified in EJB spec.
public  voidessaiA1()
    
public  voidessaiA1C()
    
public  voidessaiA2()
    
public  voidessaiA2C()
    
public  voidessaiC1()
    
public  voidessaiC2()
    
public  voidessaiF1()
    
public  voidessaiF2()
    
public  voidessaiR1()
    
public  voidessaiR1C()
    
public  voidessaiR2()
    
public  voidessaiR2C()
    
abstract public  SimpleHomegetHome()
     return SimpleHome, that can be either BMP or CMP bean.
protected  voidsetUp()
     init environment: - load beans - create/init database for entities.
public  voidtestAccessTwiceTx()
     test that we can access the instance twice in the same transaction, even if the bean is non reentrant.
public  voidtestCreateFindUserTx()
    
public  voidtestCreateNewEntity()
    
public  voidtestCreateRolledBack()
    
public  voidtestCreateRolledBackPK()
    
public  voidtestFindAccessTx()
     test that we can access the instance twice in the same transaction, even if the bean is non reentrant.
public  voidtestFindAfterRBR()
    
public  voidtestFindByPK()
     testFindByPK verify that findByPrimaryKey find an existing entityBean pre condition: an element with "pk1" as primary key must exist in the database findByPrimaryKey("testFindByPK") must pass.
public  voidtestFindUnexistingPK()
     testFindUnexistingPK verify that findByPrimaryKey throw Finder Exception when the specified entity beab doesn't exist.
public  voidtestFinderCollection()
    
public  voidtestFinderEnum()
    
public  voidtestFinderEnumObjNotFound()
    
public  voidtestHomeRemoveCommitted()
    
public  voidtestHomeRemoveRolledBack()
    
public  voidtestLoopBackTx()
    
public  voidtestLoopFindByPK()
    
public  voidtestLoopFinder()
    
public  voidtestOtherFinder()
    
public  voidtestRemoveByPKTwice()
     test remove by PK twice.
public  voidtestRemoveInTransaction()
     same test without second tx.
public  voidtestRemoveInsideTransaction()
     testRemoveInsideTransaction Verify that after a remove inside a transaction, the bean cannot be found anymore pre condition the pk4 instance must exist.
public  voidtestRemoveRolledBack()
    
public  voidtestRemoveTwice()
     test remove by EJBObject twice.
public  voidtestRemoveViaEJBHome()
    
public  voidtestRemoveViaEJBObject()
    

Field Detail
home
protected static SimpleHome home(Code)




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




Method Detail
_testLoopBack
public void _testLoopBack() throws Exception(Code)
test loopback on non reentrant bean outside tx Invalid this test because loopback with no transaction context is not clearly specified in EJB spec.



essaiA1
public void essaiA1() throws Exception(Code)



essaiA1C
public void essaiA1C() throws Exception(Code)



essaiA2
public void essaiA2() throws Exception(Code)



essaiA2C
public void essaiA2C() throws Exception(Code)



essaiC1
public void essaiC1() throws Exception(Code)



essaiC2
public void essaiC2() throws Exception(Code)



essaiF1
public void essaiF1() throws Exception(Code)



essaiF2
public void essaiF2() throws Exception(Code)



essaiR1
public void essaiR1() throws Exception(Code)



essaiR1C
public void essaiR1C() throws Exception(Code)



essaiR2
public void essaiR2() throws Exception(Code)



essaiR2C
public void essaiR2C() throws Exception(Code)



getHome
abstract public SimpleHome getHome()(Code)
return SimpleHome, that can be either BMP or CMP bean.



setUp
protected void setUp()(Code)
init environment: - load beans - create/init database for entities.



testAccessTwiceTx
public void testAccessTwiceTx() throws Exception(Code)
test that we can access the instance twice in the same transaction, even if the bean is non reentrant.



testCreateFindUserTx
public void testCreateFindUserTx() throws Exception(Code)
Verify that we can create an entity and retrieve it by a finder method inside the same transaction



testCreateNewEntity
public void testCreateNewEntity() throws Exception(Code)
testCreateNewEntity verify that we can create a new entityBean We create a new entity testCreateNewEntity, 20, 6 the findByTestName("testCreateNewEntity") must pass and the resulting must be equals to 20 pre condition the testCreateNewEntity element must not exist



testCreateRolledBack
public void testCreateRolledBack() throws Exception(Code)



testCreateRolledBackPK
public void testCreateRolledBackPK() throws Exception(Code)



testFindAccessTx
public void testFindAccessTx() throws Exception(Code)
test that we can access the instance twice in the same transaction, even if the bean is non reentrant.



testFindAfterRBR
public void testFindAfterRBR() throws Exception(Code)
Test that the removed is no more seen after the rollback



testFindByPK
public void testFindByPK() throws Exception(Code)
testFindByPK verify that findByPrimaryKey find an existing entityBean pre condition: an element with "pk1" as primary key must exist in the database findByPrimaryKey("testFindByPK") must pass.



testFindUnexistingPK
public void testFindUnexistingPK() throws Exception(Code)
testFindUnexistingPK verify that findByPrimaryKey throw Finder Exception when the specified entity beab doesn't exist. pre condition there is no element with "pk999" in the table findByPrimaryKey("testFindUnexistingPK") must throw Finder Exception



testFinderCollection
public void testFinderCollection() throws Exception(Code)
testFinderCollection verify a finder method that return a Collection pre condition there are 4 elements with c_numtest =4 (pk4,...,pk7) findInCollection returns all the beans where c_numtest = 4 this test is equivalent to testcase2 in SimpleTest in finder_col



testFinderEnum
public void testFinderEnum() throws Exception(Code)
testFinderEnum verify a finder method that return a Enumeration pre condition there are 3 elements with num =4 all of them have a field info equals to 10



testFinderEnumObjNotFound
public void testFinderEnumObjNotFound() throws Exception(Code)
testFinderEnumObjNotFound verify that a finder method that can return a Enumeration return an empty enumeration where there is no matching bean pre condition there is no elements with NumTest = 999



testHomeRemoveCommitted
public void testHomeRemoveCommitted() throws Exception(Code)
test remove by PK in transaction



testHomeRemoveRolledBack
public void testHomeRemoveRolledBack() throws Exception(Code)
testHomeRemoveRolledBack verify that we can access to a bean after remove has been rolledback it is the same that testRemoveRolledBack but with home.remove(pk); pre condition the testHomeRemoveRolledBack must exist



testLoopBackTx
public void testLoopBackTx() throws Exception(Code)
test loopback on non reentrant bean in same tx



testLoopFindByPK
public void testLoopFindByPK() throws Exception(Code)
test loop on finder method (findByPrimaryKey)



testLoopFinder
public void testLoopFinder() throws Exception(Code)
test loop on other finder method



testOtherFinder
public void testOtherFinder() throws Exception(Code)
testOtherFinder verify that we can use finder method other than findByPrimaryKey pre condition an element with "pk2" as primary key must exist in the database findByTestName("testOtherFinder") must pass



testRemoveByPKTwice
public void testRemoveByPKTwice() throws Exception(Code)
test remove by PK twice. test that a removeByPrimaryKey can be followed by a create of the same entity.



testRemoveInTransaction
public void testRemoveInTransaction() throws Exception(Code)
same test without second tx.



testRemoveInsideTransaction
public void testRemoveInsideTransaction() throws Exception(Code)
testRemoveInsideTransaction Verify that after a remove inside a transaction, the bean cannot be found anymore pre condition the pk4 instance must exist.



testRemoveRolledBack
public void testRemoveRolledBack() throws Exception(Code)
testRemoveRolledBack verify that we can access to a bean after remove has been rolledback pre condition the testRemoveRolledBack must exist



testRemoveTwice
public void testRemoveTwice() throws Exception(Code)
test remove by EJBObject twice. test that a remove can be followed by a create of the same entity.



testRemoveViaEJBHome
public void testRemoveViaEJBHome() throws Exception(Code)



testRemoveViaEJBObject
public void testRemoveViaEJBObject() throws Exception(Code)



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.