Java Doc for SequenceManagerTest.java in  » Database-ORM » db-ojb » org » apache » ojb » broker » sequence » 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 » Database ORM » db ojb » org.apache.ojb.broker.sequence 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.ojb.junit.OJBTestCase
   org.apache.ojb.broker.sequence.SequenceManagerTest

SequenceManagerTest
public class SequenceManagerTest extends OJBTestCase (Code)
Tests to verify SequenceManager implementations - All sequence manager implementations have to pass these tests without failures.
Note: For the multi-threaded tests, the keys will be generated once for all tests.
author:
   Armin Waibel
version:
   $Id: SequenceManagerTest.java,v 1.26.4.1 2005/07/24 23:57:42 arminw Exp $

Inner Class :public static class AbstractSMObject implements Serializable
Inner Class :public static class SMObjectOne extends AbstractSMObject
Inner Class :public static class SMObjectTwo extends AbstractSMObject
Inner Class :public static class SMAutoNaming extends AbstractSMObject


Constructor Summary
public  SequenceManagerTest(String s)
    

Method Summary
public  voidYYYtestSequenceManagerStoredProcedureImpl()
    
public  voidYYYtest_getUniqueIdWithTwoBrokers()
     Test for unique **continuous** key generation across different PB instances.
protected static synchronized  voidaddResultList(List resultList)
    
protected static synchronized  voidcountKey()
    
public static  voidmain(String[] args)
    
protected  voidsetUp()
    
protected  voidtearDown()
    
public  voidtestAutoNaming()
    
public  voidtestDatabaseSequenceGeneration()
     This test only works, when using org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl for sequence generation.
public  voidtestForLostKeys()
     Tests to detect the lost of sequence numbers in multi-threaded environments.
public  voidtestGetUniqueIdWithOneBroker()
    
public  voidtestMassStoreOfObjects()
    
public  voidtestMaxKeySearch1()
     Test the max id search used in the standard sequence manager implementations.
public  voidtestMaxKeySearch2()
     Test the max id search used in the standard sequence manager implementations.
public  voidtestMaxKeySearch3()
     Test the max id search used in the standard sequence manager implementations.
public  voidtestMultipleAutoincrement()
     Test support for classes with multiple autoincrement fields - e.g.
public  voidtestObjectsFromAbstractBaseClass1()
    
public  voidtestObjectsFromAbstractBaseClass2()
    
public  voidtestSequenceGeneration()
     Tests the generation of unique sequence numbers in multi-threaded environment.
public  voidtestSequenceNameAttribute()
     Test the use of the 'sequence-name' field descriptor attribute.
public  voidtestUniqueAcrossExtendsWithDifferentTables1()
     Tests if the generated id's are unique across extents.
public  voidtestUniqueAcrossExtendsWithDifferentTables2()
     Tests if the generated id's are unique across extents.
public  voidtestUniqueAcrossExtendsWithDifferentTables3()
     Tests if the generated id's are unique across extents.
public  voidtestUniqueAcrossExtendsWithSameTable1()
     Tests if the generated id's are unique across extents.
public  voidtestUniqueAcrossExtendsWithSameTable3()
     Tests if the generated id's are unique across extents.
public  voidtestUniqueAcrossExtendsWithSameTable4()
     Tests if the generated id's are unique across extents.
public  voidtestUniqueAcrossExtendsWithSameTable5()
     Tests if the generated id's are unique across extents.


Constructor Detail
SequenceManagerTest
public SequenceManagerTest(String s)(Code)




Method Detail
YYYtestSequenceManagerStoredProcedureImpl
public void YYYtestSequenceManagerStoredProcedureImpl() throws Exception(Code)
Test case for internal use while developing! Was commented out by default!



YYYtest_getUniqueIdWithTwoBrokers
public void YYYtest_getUniqueIdWithTwoBrokers() throws Exception(Code)
Test for unique **continuous** key generation across different PB instances. test case was written by a user - thanks. this test was *commented out* by default, because not all sequence manager implementations generate continuous keys across different PB instances.



addResultList
protected static synchronized void addResultList(List resultList)(Code)



countKey
protected static synchronized void countKey()(Code)



main
public static void main(String[] args)(Code)



setUp
protected void setUp() throws Exception(Code)



tearDown
protected void tearDown() throws Exception(Code)



testAutoNaming
public void testAutoNaming() throws Exception(Code)



testDatabaseSequenceGeneration
public void testDatabaseSequenceGeneration() throws Exception(Code)
This test only works, when using org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl for sequence generation.



testForLostKeys
public void testForLostKeys()(Code)
Tests to detect the lost of sequence numbers in multi-threaded environments.



testGetUniqueIdWithOneBroker
public void testGetUniqueIdWithOneBroker() throws Exception(Code)
test case written by a user



testMassStoreOfObjects
public void testMassStoreOfObjects()(Code)



testMaxKeySearch1
public void testMaxKeySearch1()(Code)
Test the max id search used in the standard sequence manager implementations.



testMaxKeySearch2
public void testMaxKeySearch2()(Code)
Test the max id search used in the standard sequence manager implementations.



testMaxKeySearch3
public void testMaxKeySearch3()(Code)
Test the max id search used in the standard sequence manager implementations.



testMultipleAutoincrement
public void testMultipleAutoincrement()(Code)
Test support for classes with multiple autoincrement fields - e.g. see repository for Repository.SMKey



testObjectsFromAbstractBaseClass1
public void testObjectsFromAbstractBaseClass1() throws Exception(Code)



testObjectsFromAbstractBaseClass2
public void testObjectsFromAbstractBaseClass2() throws Exception(Code)



testSequenceGeneration
public void testSequenceGeneration()(Code)
Tests the generation of unique sequence numbers in multi-threaded environment.



testSequenceNameAttribute
public void testSequenceNameAttribute() throws Exception(Code)
Test the use of the 'sequence-name' field descriptor attribute.



testUniqueAcrossExtendsWithDifferentTables1
public void testUniqueAcrossExtendsWithDifferentTables1() throws Exception(Code)
Tests if the generated id's are unique across extents.



testUniqueAcrossExtendsWithDifferentTables2
public void testUniqueAcrossExtendsWithDifferentTables2() throws Exception(Code)
Tests if the generated id's are unique across extents.



testUniqueAcrossExtendsWithDifferentTables3
public void testUniqueAcrossExtendsWithDifferentTables3() throws Exception(Code)
Tests if the generated id's are unique across extents.



testUniqueAcrossExtendsWithSameTable1
public void testUniqueAcrossExtendsWithSameTable1() throws Exception(Code)
Tests if the generated id's are unique across extents.



testUniqueAcrossExtendsWithSameTable3
public void testUniqueAcrossExtendsWithSameTable3() throws Exception(Code)
Tests if the generated id's are unique across extents.



testUniqueAcrossExtendsWithSameTable4
public void testUniqueAcrossExtendsWithSameTable4() throws Exception(Code)
Tests if the generated id's are unique across extents.



testUniqueAcrossExtendsWithSameTable5
public void testUniqueAcrossExtendsWithSameTable5() throws Exception(Code)
Tests if the generated id's are unique across extents.



Methods inherited from org.apache.ojb.junit.OJBTestCase
public void ojbChangeReferenceSetting(Class clazz, String referenceField, boolean autoRetrieve, int autoUpdate, int autoDelete, boolean useProxy)(Code)(Java Doc)
public void ojbChangeReferenceSetting(Class clazz, String referenceField, boolean autoRetrieve, boolean autoUpdate, boolean autoDelete, boolean useProxy)(Code)(Java Doc)
public boolean ojbSkipKnownIssueProblem()(Code)(Java Doc)
public boolean ojbSkipKnownIssueProblem(String message)(Code)(Java Doc)
public void ojbSkipTestMessage(String message)(Code)(Java Doc)
public void ojbSleep()(Code)(Java Doc)
protected void setUp() throws Exception(Code)(Java Doc)
protected void tearDown() throws Exception(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.