Java Doc for AutoConfigPersistenceUnitsTest.java in  » J2EE » openejb3 » org » apache » openejb » config » 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 » openejb3 » org.apache.openejb.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.openejb.config.AutoConfigPersistenceUnitsTest

AutoConfigPersistenceUnitsTest
public class AutoConfigPersistenceUnitsTest extends TestCase (Code)

version:
   $Revision: 632667 $ $Date: 2008-03-01 14:32:11 -0800 (Sat, 01 Mar 2008) $

Inner Class :public static class Driver implements java.sql.Driver
Inner Class :public static class OrangeDriver extends Driver
Inner Class :public static class LimeDriver extends Driver



Method Summary
protected  voidsetUp()
    
public  voidtest()
     Existing data source "Orange", jta managed Existing data source "OrangeUnmanaged", not jta managed Persistence xml like so: Orange OrangeUnamanged This is the happy path.
public  voidtestEmptyUnitNoAvailableDataSources()
    
public  voidtestEmptyUnitOneAvailableJtaDataSource()
    
public  voidtestEmptyUnitOneAvailableNonJtaDataSource()
    
public  voidtestInvalidOptionsJta()
    
public  voidtestInvalidOptionsNonJta()
    
public  voidtestInvalidRefs()
    
public  voidtestJtaRefToContrarilyConfiguredDataSource()
    
public  voidtestJtaRefToContrarilyConfiguredDataSource2()
    
public  voidtestMissingJtaDataSource()
    
public  voidtestMissingNonJtaDataSource()
    
public  voidtestNonJtaRefToContrarilyConfiguredDataSource()
    
public  voidtestNonJtaRefToContrarilyConfiguredDataSource2()
    
public  voidtestPossiblyAmbiguousJtaOptions()
    
public  voidtestPossiblyAmbiguousNonJtaOptions()
    
public  voidtestSameDataSourceForBoth1()
     Existing data source "Orange", jta managed Persistence xml like so: Orange Orange They used the same data source for both the jta-data-source and non-jta-data-source and we can determine the data source will not work as a non-jta-data-source We should generate the missing data source for them based on the one they supplied.
public  voidtestSameDataSourceForBoth2()
     Existing data source "Orange", not jta managed Persistence xml like so: Orange Orange They used the same data source for both the jta-data-source and non-jta-data-source and we can determine the data source will not work as a jta-data-source We should generate the missing data source for them based on the one they supplied.
public  voidtestSameDataSourceForBoth3()
    
public  voidtestSameDataSourceForBoth4()
    
public  voidtestShortName()
     Existing data source "Orange", jta managed Existing data source "OrangeUnmanaged", not jta managed Persistence xml like so: java:foo/bar/baz/Orange java:foo/bar/baz/OrangeUnamanged The datasources should be mapped correctly despite the vendor specific prefix.
public  voidtestThirdPartyDataSources()
    
public  voidtestThirdPartyDataSources2()
     Existing data source "Orange", not controlled by us Persistence xml like so: Orange Here we should just let them try and get by with just the one data source.
public  voidtestThirdPartyDataSources3()
     Existing data source "Orange", not controlled by us Persistence xml like so: Orange Here we should just let them try and get by with just the one data source.
public  voidtestThirdPartyDataSources4()
     Existing data source "Orange", not controlled by us Persistence xml like so: Orange Orange Here we should just let them try and get by with both jta and non-jta references pointed at the same data source.



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



test
public void test() throws Exception(Code)
Existing data source "Orange", jta managed Existing data source "OrangeUnmanaged", not jta managed Persistence xml like so: Orange OrangeUnamanged This is the happy path.
throws:
  Exception -



testEmptyUnitNoAvailableDataSources
public void testEmptyUnitNoAvailableDataSources() throws Exception(Code)
Existing data source "Orange", not jta managed Persistence xml like so: The should be auto linked to the Orange data source We should generate a based on the
throws:
  Exception -



testEmptyUnitOneAvailableJtaDataSource
public void testEmptyUnitOneAvailableJtaDataSource() throws Exception(Code)
Existing data source "Orange", jta managed Persistence xml like so: The should be auto linked to the Orange data source We should generate a based on the
throws:
  Exception -



testEmptyUnitOneAvailableNonJtaDataSource
public void testEmptyUnitOneAvailableNonJtaDataSource() throws Exception(Code)
Existing data source "Orange", not jta managed Persistence xml like so: The should be auto linked to the Orange data source We should generate a based on the
throws:
  Exception -



testInvalidOptionsJta
public void testInvalidOptionsJta() throws Exception(Code)
Existing data source "Orange", not jta managed Existing data source "Lime", jta managed Persistence xml like so: Orange We should generate a based on the
throws:
  Exception -



testInvalidOptionsNonJta
public void testInvalidOptionsNonJta() throws Exception(Code)
Existing data source "Orange", not jta managed Existing data source "Lime", jta managed Persistence xml like so: Orange We should generate a based on the
throws:
  Exception -



testInvalidRefs
public void testInvalidRefs() throws Exception(Code)
Existing data source "Orange", jta managed Existing data source "OrangeUnmanaged", not jta managed Persistence xml like so: DoesNotExist AlsoDoesNotExist We should automatically hook them up to the configured datasources that do match
throws:
  Exception -



testJtaRefToContrarilyConfiguredDataSource
public void testJtaRefToContrarilyConfiguredDataSource() throws Exception(Code)
Existing data source "OrangeOne", not jta managed Existing data source "OrangeTwo", not jta managed Persistence xml like so: OrangeOne OrangeTwo This configuration should be rejected
throws:
  Exception -



testJtaRefToContrarilyConfiguredDataSource2
public void testJtaRefToContrarilyConfiguredDataSource2() throws Exception(Code)
Existing data source "OrangeOne", not jta managed Persistence xml like so: OrangeOne This configuration should be rejected
throws:
  Exception -



testMissingJtaDataSource
public void testMissingJtaDataSource() throws Exception(Code)
Existing data source "Orange" not jta managed Persistence xml like so: Orange We should generate a based on the
throws:
  Exception -



testMissingNonJtaDataSource
public void testMissingNonJtaDataSource() throws Exception(Code)
Existing data source "Orange" not jta managed Persistence xml like so: Orange We should generate a based on the
throws:
  Exception -



testNonJtaRefToContrarilyConfiguredDataSource
public void testNonJtaRefToContrarilyConfiguredDataSource() throws Exception(Code)
Existing data source "OrangeOne", not jta managed Existing data source "OrangeTwo", not jta managed Persistence xml like so: OrangeOne OrangeTwo This configuration should be rejected
throws:
  Exception -



testNonJtaRefToContrarilyConfiguredDataSource2
public void testNonJtaRefToContrarilyConfiguredDataSource2() throws Exception(Code)
Existing data source "OrangeOne", not jta managed Persistence xml like so: OrangeOne This configuration should be rejected
throws:
  Exception -



testPossiblyAmbiguousJtaOptions
public void testPossiblyAmbiguousJtaOptions() throws Exception(Code)
Existing data source "Orange", not jta managed Existing data source "Lime", jta managed Persistence xml like so: Orange We should select the based on the closest match to the
throws:
  Exception -



testPossiblyAmbiguousNonJtaOptions
public void testPossiblyAmbiguousNonJtaOptions() throws Exception(Code)
Existing data source "Orange", not jta managed Existing data source "Lime", jta managed Persistence xml like so: Orange We should select the based on the closest match to the
throws:
  Exception -



testSameDataSourceForBoth1
public void testSameDataSourceForBoth1() throws Exception(Code)
Existing data source "Orange", jta managed Persistence xml like so: Orange Orange They used the same data source for both the jta-data-source and non-jta-data-source and we can determine the data source will not work as a non-jta-data-source We should generate the missing data source for them based on the one they supplied.
throws:
  Exception -



testSameDataSourceForBoth2
public void testSameDataSourceForBoth2() throws Exception(Code)
Existing data source "Orange", not jta managed Persistence xml like so: Orange Orange They used the same data source for both the jta-data-source and non-jta-data-source and we can determine the data source will not work as a jta-data-source We should generate the missing data source for them based on the one they supplied.
throws:
  Exception -



testSameDataSourceForBoth3
public void testSameDataSourceForBoth3() throws Exception(Code)
Existing data source "OrangeOne", jta managed Existing data source "OrangeTwo", not jta managed Persistence xml like so: OrangeOne OrangeOne They used the same data source for both the jta-data-source and non-jta-data-source and we can determine the data source will not work as a non-jta-data-source BUT they have explicitly configured a data source that nearly matches the named datasource and would be identical to what we would auto-create
throws:
  Exception -



testSameDataSourceForBoth4
public void testSameDataSourceForBoth4() throws Exception(Code)
Existing data source "OrangeOne", jta managed Existing data source "OrangeTwo", not jta managed Persistence xml like so: OrangeTwo OrangeTwo They used the same data source for both the jta-data-source and non-jta-data-source and we can determine the data source will not work as a jta-data-source BUT they have explicitly configured a data source that nearly matches the named datasource and would be identical to what we would auto-create
throws:
  Exception -



testShortName
public void testShortName() throws Exception(Code)
Existing data source "Orange", jta managed Existing data source "OrangeUnmanaged", not jta managed Persistence xml like so: java:foo/bar/baz/Orange java:foo/bar/baz/OrangeUnamanged The datasources should be mapped correctly despite the vendor specific prefix.
throws:
  Exception -



testThirdPartyDataSources
public void testThirdPartyDataSources() throws Exception(Code)
Existing data source "Orange", not controlled by us Existing data source "OrangeUnmanaged", also not controlled by us Persistence xml like so: Orange OrangeUnamanged
throws:
  Exception -



testThirdPartyDataSources2
public void testThirdPartyDataSources2() throws Exception(Code)
Existing data source "Orange", not controlled by us Persistence xml like so: Orange Here we should just let them try and get by with just the one data source.
throws:
  Exception -



testThirdPartyDataSources3
public void testThirdPartyDataSources3() throws Exception(Code)
Existing data source "Orange", not controlled by us Persistence xml like so: Orange Here we should just let them try and get by with just the one data source.
throws:
  Exception -



testThirdPartyDataSources4
public void testThirdPartyDataSources4() throws Exception(Code)
Existing data source "Orange", not controlled by us Persistence xml like so: Orange Orange Here we should just let them try and get by with both jta and non-jta references pointed at the same data source.
throws:
  Exception -



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