Java Doc for T_RawStoreFactory.java in  » Database-DBMS » db-derby-10.2 » org » apache » derbyTesting » unitTests » store » 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 DBMS » db derby 10.2 » org.apache.derbyTesting.unitTests.store 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derbyTesting.unitTests.harness.T_MultiThreadedIterations
   org.apache.derbyTesting.unitTests.store.T_RawStoreFactory

T_RawStoreFactory
public class T_RawStoreFactory extends T_MultiThreadedIterations (Code)
A protocol unit test for the RawStore interface.


Field Summary
final static  FormatableBitSetBS_COL_0
    
final protected static  StringREC_001
    
final protected static  StringREC_002
    
final protected static  StringREC_003
    
final protected static  StringREC_004
    
final protected static  StringREC_005
    
final protected static  StringREC_006
    
final protected static  StringREC_007
    
final protected static  StringREC_008
    
final protected static  StringREC_009
    
final protected static  StringREC_010
    
final protected static  StringREC_011
    
final protected static  StringREC_012
    
final protected static  StringREC_013
    
final protected static  StringREC_014
    
final protected static  StringREC_015
    
final protected static  StringREC_016
    
final protected static  StringREC_017
    
final protected static  StringREC_018
    
final protected static  StringREC_NULL
    
final protected static  StringREC_UNDO
    
final protected static  StringSP1
    
final protected static  StringSP2
    
protected static  ContextServicecontextService
    
protected static  RawStoreFactoryfactory
    
protected static  LockFactorylf
    
protected  booleanlogDataForPurges
    
protected  intopenMode
    
protected  T_Utilt_util
    
protected static  booleantestRollback
    
protected static  UUIDFactoryuuidfactory
    

Constructor Summary
public  T_RawStoreFactory()
    

Method Summary
protected  voidC010(int segment)
     C010 - Create a container within a transaction, commit and the re-open the container twice.
protected  voidC011()
     C011 - Create a container withina transaction, commit and the re-open the container in update and non-update mode.
protected  voidC012(long segment)
     C012 - Drop a container within a transaction, commit, see that it is deleted. Drop a container within a transaction, rollback and re-open and see that it is not deleted.
protected  voidC014()
     C014 - Open a container for locking only.
protected  voidC200()
    
protected  voidC201(int whatPage)
     C201 - Create container with different page size, minimum record size, inserting into these containers to check if the variables are set correctly.
protected  voidCP001()
    
protected  voidL001()
    
protected  voidP001(long segment)
     Create a container, ensure it has one page with no records.
protected  voidP002(long segment)
     Insert rows on the first page until the page is full, then add a page and repeat the test (for a total of three pages with full rows).
protected  voidP003(long segment)
    
protected  voidP004(long segment)
    
protected  voidP005(long segment)
    
protected  voidP006()
    
protected  voidP007(long segment)
     P007 this test exercises repeated updates on a 1K page 2 rows (with 1 column) will be inserted into the page.
protected  voidP008(long segment)
     P008 this test exercises repeated inserts with small rows on a 1K page we will insert as many rows as possible into the page.
protected  voidP009(long segment)
     P009 this test exercises repeated shrinking and expanding of fields using updateFieldBySlot we will insert as many rows as possible into the page.
protected  voidP011(long segment)
    
protected  voidP012(long segment)
    
protected  voidP013()
    
protected  voidP014()
    
protected  voidP015()
    
protected  voidP016()
    
protected  voidP017()
    
protected  voidP018()
    
protected  voidP019()
    
protected  voidP020()
    
protected  voidP021()
    
protected  voidP022()
     Test minimumRecordSize: this is to make sure that logRow and storeRecord are consistent with each other when it comes to reserve space.
protected  voidP023(int segment)
     Test overflowThreshold: this is to make sure that logRow and storeRecord are consistent with each other when it comes to reserve space.
protected  voidP030(long segment)
     Insert small rows and update them so that they overflow a page.
protected  voidP031(long segment)
     Insert 4-column long rows into 1K pages, each column is less than a page.
protected  voidP032(long segment)
     Insert 60-column long rows into 1K pages, each column is less than a page.
protected  voidP033(long segment)
     Insert 100-column long rows into 1K pages, each column is less than a page.
protected  voidP034(long segment)
     Insert 401 column long row with many small columns in the beginning, and one large column at the end into 4K pages.
protected  voidP035(long segment)
     Insert a single long column long row into a 1K page.
protected  voidP036()
     Test space reclaimation - purging of a long row gets back all the row pieces.
protected  voidP037()
     Test space reclaimation - purging of a row with serveral long columns get back all the column chains.
protected  voidP038()
     Test space reclaimation - rollback of an insert (with purge) of a row that overflows and with long column get back all the space in the row and column chain.
protected  voidP039()
     Test space reclaimation - shrink a head row piece.
protected  voidP040()
     Test space reclaimation - shrink a non head row piece.
protected  voidP041()
     Test space reclaimation - update a long column to another long column.
protected  voidP042()
     Test space reclaimation - rollback of an update that create a long column.
protected  voidP043()
     Test space reclaimation - rollback of an update that create a new row piece.
protected  voidP050()
    
protected  voidP051()
    
protected  voidP052()
    
protected  voidP053()
    
protected  voidP054()
    
protected  voidP055(long segment)
     Test rollback of partial row update. Create a long row with 10 columns on 2 pages (5 columns on each page). Update the 1st column on the 2nd page (the 6th column) which causes the last column (10th column) to move off the page.
protected  voidP056(long segment)
     Test rollback of partial row update. Create a long row with 15 columns on 3 pages (5 columns on each page). Update the 1st column on the 2nd page (the 6th column) which causes the last column of that page (10th column) to move off the page.
protected  voidP061()
     Sparse row test.
protected  voidP071()
     Serializable column test.
protected  voidP701(long segment)
     Insert a single row and keep updating it, adding columns not using partial rows.
protected  voidP702(long segment)
     Insert a single row and keep updating it, adding columns using partial rows.
protected  voidP703(long segment)
     Simple set of partial row updates on a singel page with shrinking and expanding columns.
protected  voidP704(long segment)
     Insert a single row with multiple portions.
protected  voidP705(long segment)
     Same as 704 but update fields in the reverse order.
protected  voidP706(long segment, boolean multiPortion)
     Insert a single row with single or multiple portions.
protected  voidP707(long segment)
    
protected  voidP708(long segment, boolean multiPortion)
     Insert a single row with single or multiple portions.
protected  voidP709()
     P709: this test exercises purgeAtSlot , rollsback and purges the slot again, to make sure not logging the data does not have any impact on repurging the rollbacked purges.
protected  voidP710()
    
protected  voidP711()
     Test space reclaimation - purging of a row with serveral long columns rollback and repurge them again.
protected  voidT000()
     T000 - ensure a transaction starts out idle.
protected  voidT001()
     T001 - start and commit an empty transaction.
protected  voidT002()
     T002 - start and abort an empty transaction.
protected  voidT003()
     T003 - start and commit an empty transaction and then ensure that the transaction remains open for another commit.
protected  voidT004()
     T004 - start and abort an empty transaction and then ensure that the transaction remains open for a commit and another abort.
protected  voidT005()
     T005 check transaction identifiers on idle transactions.
protected  voidT006()
    
protected  voidT007()
    
protected  voidT008()
     T008 - savepoint testing, ensure save points disappear at commit or abort.
protected  voidT009()
     T009 - add a container and remove it within the same transaction.
protected  voidT010()
     T010 - add a container with a default size and remove it within the same transaction.
protected  voidT011()
     T011 - see that a container remains open over the commit of an open transaction..
protected  voidT012()
    
protected  voidTC001()
     TC001 - Test the drop on commit mode for temp containers.
protected  voidTC002(int mode, boolean doCommit)
     A clone of P002 for temporary containers.
protected  voidTC003(int mode, boolean doCommit)
     Add a number of rows to a temp table opened in various modes, and drop it before commit/abort.
protected  voidTC004(int mode1, int mode2, int mode3, boolean doCommit, boolean closeThem)
     Open a temp table several time swith different modes and ensure the correct behaviour (most severe open wins).
protected  voidTC004all()
     Open a temp table several times with different modes and ensure the correct behaviour (most severe open wins).
public  voidboot(boolean create, Properties startParams)
    
protected  StringgetModuleToTestProtocolName()
    
protected  StringgetTestService()
    
protected  voidjoinSetupTest()
    
protected  T_MultiThreadedIterationsnewTestObject()
    
protected  voidrunEachTest()
    
protected  voidrunPurgeWithNoDataLoggesTests()
    
protected  voidrunTempTests()
    
protected  voidrunTestSet()
    
protected  voidsetupTest()
    

Field Detail
BS_COL_0
final static FormatableBitSet BS_COL_0(Code)



REC_001
final protected static String REC_001(Code)



REC_002
final protected static String REC_002(Code)



REC_003
final protected static String REC_003(Code)



REC_004
final protected static String REC_004(Code)



REC_005
final protected static String REC_005(Code)



REC_006
final protected static String REC_006(Code)



REC_007
final protected static String REC_007(Code)



REC_008
final protected static String REC_008(Code)



REC_009
final protected static String REC_009(Code)



REC_010
final protected static String REC_010(Code)



REC_011
final protected static String REC_011(Code)



REC_012
final protected static String REC_012(Code)



REC_013
final protected static String REC_013(Code)



REC_014
final protected static String REC_014(Code)



REC_015
final protected static String REC_015(Code)



REC_016
final protected static String REC_016(Code)



REC_017
final protected static String REC_017(Code)



REC_018
final protected static String REC_018(Code)



REC_NULL
final protected static String REC_NULL(Code)



REC_UNDO
final protected static String REC_UNDO(Code)



SP1
final protected static String SP1(Code)



SP2
final protected static String SP2(Code)



contextService
protected static ContextService contextService(Code)



factory
protected static RawStoreFactory factory(Code)



lf
protected static LockFactory lf(Code)



logDataForPurges
protected boolean logDataForPurges(Code)



openMode
protected int openMode(Code)



t_util
protected T_Util t_util(Code)



testRollback
protected static boolean testRollback(Code)



uuidfactory
protected static UUIDFactory uuidfactory(Code)




Constructor Detail
T_RawStoreFactory
public T_RawStoreFactory()(Code)




Method Detail
C010
protected void C010(int segment) throws T_Fail, StandardException(Code)
C010 - Create a container within a transaction, commit and the re-open the container twice.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



C011
protected void C011() throws T_Fail, StandardException(Code)
C011 - Create a container withina transaction, commit and the re-open the container in update and non-update mode.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



C012
protected void C012(long segment) throws T_Fail, StandardException(Code)
C012 - Drop a container within a transaction, commit, see that it is deleted. Drop a container within a transaction, rollback and re-open and see that it is not deleted.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Standard Derby error policy



C014
protected void C014() throws T_Fail, StandardException(Code)
C014 - Open a container for locking only.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Standard Derby error policy



C200
protected void C200() throws T_Fail, StandardException(Code)

exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



C201
protected void C201(int whatPage) throws T_Fail, StandardException(Code)
C201 - Create container with different page size, minimum record size, inserting into these containers to check if the variables are set correctly.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



CP001
protected void CP001() throws StandardException, T_Fail(Code)
Test checkpoint
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



L001
protected void L001() throws StandardException, T_Fail(Code)



P001
protected void P001(long segment) throws T_Fail, StandardException(Code)
Create a container, ensure it has one page with no records. Then test all the things we can do with an empty page opened read-only in the container. Then add a new page, ensure it has the correct page number and is empty.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P002
protected void P002(long segment) throws StandardException, T_Fail(Code)
Insert rows on the first page until the page is full, then add a page and repeat the test (for a total of three pages with full rows). Fetch the rows back by handle and slot methods.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P003
protected void P003(long segment) throws StandardException, T_Fail(Code)
Test Page.delete
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation
See Also:   Page.delete



P004
protected void P004(long segment) throws StandardException, T_Fail(Code)
Test Page.update
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation
See Also:   Page.update



P005
protected void P005(long segment) throws StandardException, T_Fail(Code)



P006
protected void P006() throws StandardException, T_Fail(Code)



P007
protected void P007(long segment) throws StandardException, T_Fail(Code)
P007 this test exercises repeated updates on a 1K page 2 rows (with 1 column) will be inserted into the page. We expand the row data in slot 0 by 1 byte until the page is completely full, and overflows the record to an overflow page.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P008
protected void P008(long segment) throws StandardException, T_Fail(Code)
P008 this test exercises repeated inserts with small rows on a 1K page we will insert as many rows as possible into the page. Then we reduce the row by 1 byte at a time, we will try to insert another smaller row. This test also tests spaceForInsert().
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P009
protected void P009(long segment) throws StandardException, T_Fail(Code)
P009 this test exercises repeated shrinking and expanding of fields using updateFieldBySlot we will insert as many rows as possible into the page. Then set some of the columns to null, That should not create more space on the page for inserts, because the extra space become reservedspace for the row. So, the next insert should fail.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P011
protected void P011(long segment) throws StandardException, T_Fail(Code)
P011 this test exercises insertAtSlot, (LogicalUndo)null
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P012
protected void P012(long segment) throws StandardException, T_Fail(Code)
P012 this test exercises updateAtSlot
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P013
protected void P013() throws StandardException, T_Fail(Code)
P013 this test exercises deleteAtSlot and isDeletedAtSlot
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P014
protected void P014() throws StandardException, T_Fail(Code)
P014 this test exercises purgeAtSlot
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P015
protected void P015() throws StandardException, T_Fail(Code)
P015 this test exercises updateAtSlot
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P016
protected void P016() throws StandardException, T_Fail(Code)



P017
protected void P017() throws StandardException, T_Fail(Code)



P018
protected void P018() throws StandardException, T_Fail(Code)



P019
protected void P019() throws StandardException, T_Fail(Code)
Test bulk load and preallocation
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P020
protected void P020() throws StandardException, T_Fail(Code)
Test create container with initial page set to 100 pages
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P021
protected void P021() throws StandardException, T_Fail(Code)
Test preAllocate
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P022
protected void P022() throws StandardException, T_Fail(Code)
Test minimumRecordSize: this is to make sure that logRow and storeRecord are consistent with each other when it comes to reserve space.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P023
protected void P023(int segment) throws StandardException, T_Fail(Code)
Test overflowThreshold: this is to make sure that logRow and storeRecord are consistent with each other when it comes to reserve space.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P030
protected void P030(long segment) throws StandardException, T_Fail(Code)
Insert small rows and update them so that they overflow a page.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P031
protected void P031(long segment) throws StandardException, T_Fail(Code)
Insert 4-column long rows into 1K pages, each column is less than a page.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P032
protected void P032(long segment) throws StandardException, T_Fail(Code)
Insert 60-column long rows into 1K pages, each column is less than a page.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P033
protected void P033(long segment) throws StandardException, T_Fail(Code)
Insert 100-column long rows into 1K pages, each column is less than a page.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P034
protected void P034(long segment) throws StandardException, T_Fail(Code)
Insert 401 column long row with many small columns in the beginning, and one large column at the end into 4K pages.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P035
protected void P035(long segment) throws StandardException, T_Fail(Code)
Insert a single long column long row into a 1K page.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P036
protected void P036() throws StandardException, T_Fail(Code)
Test space reclaimation - purging of a long row gets back all the row pieces.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P037
protected void P037() throws StandardException, T_Fail(Code)
Test space reclaimation - purging of a row with serveral long columns get back all the column chains.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P038
protected void P038() throws StandardException, T_Fail(Code)
Test space reclaimation - rollback of an insert (with purge) of a row that overflows and with long column get back all the space in the row and column chain.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P039
protected void P039() throws StandardException, T_Fail(Code)
Test space reclaimation - shrink a head row piece.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P040
protected void P040() throws StandardException, T_Fail(Code)
Test space reclaimation - shrink a non head row piece.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P041
protected void P041() throws StandardException, T_Fail(Code)
Test space reclaimation - update a long column to another long column.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P042
protected void P042() throws StandardException, T_Fail(Code)
Test space reclaimation - rollback of an update that create a long column.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P043
protected void P043()(Code)
Test space reclaimation - rollback of an update that create a new row piece.



P050
protected void P050() throws StandardException, T_Fail(Code)
Test that post commit processor does not stubbify a drop table that is rolled back in a savepoint
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P051
protected void P051() throws StandardException, T_Fail(Code)
Test rollback of Page.insert
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P052
protected void P052() throws StandardException, T_Fail(Code)
Test rollback of Page.delete
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation
See Also:   Page.delete



P053
protected void P053() throws StandardException, T_Fail(Code)
Test insertAtSlot that rolls back with a purge
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P054
protected void P054() throws StandardException, T_Fail(Code)
Test internal transaction
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P055
protected void P055(long segment) throws StandardException, T_Fail(Code)
Test rollback of partial row update. Create a long row with 10 columns on 2 pages (5 columns on each page). Update the 1st column on the 2nd page (the 6th column) which causes the last column (10th column) to move off the page. Then abort and make sure that all the original columns are there and correct. NOTE: stored length is twice string length + 2
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P056
protected void P056(long segment) throws StandardException, T_Fail(Code)
Test rollback of partial row update. Create a long row with 15 columns on 3 pages (5 columns on each page). Update the 1st column on the 2nd page (the 6th column) which causes the last column of that page (10th column) to move off the page. Then abort and make sure that all the original columns are there and correct. NOTE: stored length is twice string length + 2
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P061
protected void P061() throws StandardException, T_Fail(Code)
Sparse row test. Test sparse representation of rows using the FormatableBitSet class. Insert, fetch and update a row having gaps.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P071
protected void P071() throws StandardException, T_Fail(Code)
Serializable column test. Want to make sure we hit some otherwise dead code in StoredPage, used for storing/reading Serializable/Externalizable data to/from a page.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P701
protected void P701(long segment) throws StandardException, T_Fail(Code)
Insert a single row and keep updating it, adding columns not using partial rows.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P702
protected void P702(long segment) throws StandardException, T_Fail(Code)
Insert a single row and keep updating it, adding columns using partial rows.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P703
protected void P703(long segment) throws StandardException, T_Fail(Code)
Simple set of partial row updates on a singel page with shrinking and expanding columns.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P704
protected void P704(long segment) throws StandardException, T_Fail(Code)
Insert a single row with multiple portions. Update fields in the various portions that grow.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P705
protected void P705(long segment) throws StandardException, T_Fail(Code)
Same as 704 but update fields in the reverse order.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P706
protected void P706(long segment, boolean multiPortion) throws StandardException, T_Fail(Code)
Insert a single row with single or multiple portions. Update every other field with a long col The update each column back to a null
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P707
protected void P707(long segment) throws StandardException, T_Fail(Code)
Insert a single record that has several chunks and every other column is a long column
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P708
protected void P708(long segment, boolean multiPortion) throws StandardException, T_Fail(Code)
Insert a single row with single or multiple portions. Update every other field with a long col rollback. The update each column back to a null & rollback
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P709
protected void P709() throws StandardException, T_Fail(Code)
P709: this test exercises purgeAtSlot , rollsback and purges the slot again, to make sure not logging the data does not have any impact on repurging the rollbacked purges.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P710
protected void P710() throws StandardException, T_Fail(Code)
Test space reclaimation - purging of a long rows with a rollback and purging againg with no data logging for purges
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



P711
protected void P711() throws StandardException, T_Fail(Code)
Test space reclaimation - purging of a row with serveral long columns rollback and repurge them again.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T000
protected void T000() throws T_Fail, StandardException(Code)
T000 - ensure a transaction starts out idle.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T001
protected void T001() throws T_Fail, StandardException(Code)
T001 - start and commit an empty transaction.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T002
protected void T002() throws T_Fail, StandardException(Code)
T002 - start and abort an empty transaction.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T003
protected void T003() throws T_Fail, StandardException(Code)
T003 - start and commit an empty transaction and then ensure that the transaction remains open for another commit.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T004
protected void T004() throws T_Fail, StandardException(Code)
T004 - start and abort an empty transaction and then ensure that the transaction remains open for a commit and another abort.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T005
protected void T005() throws T_Fail, StandardException(Code)
T005 check transaction identifiers on idle transactions.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T006
protected void T006() throws T_Fail, StandardException(Code)
T006 - savepoint basic API testing
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T007
protected void T007() throws T_Fail, StandardException(Code)
T007 - savepoint nesting testing
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T008
protected void T008() throws T_Fail, StandardException(Code)
T008 - savepoint testing, ensure save points disappear at commit or abort.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T009
protected void T009() throws StandardException, T_Fail(Code)
T009 - add a container and remove it within the same transaction.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T010
protected void T010() throws StandardException, T_Fail(Code)
T010 - add a container with a default size and remove it within the same transaction.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T011
protected void T011() throws StandardException, T_Fail(Code)
T011 - see that a container remains open over the commit of an open transaction..
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



T012
protected void T012() throws StandardException, T_Fail(Code)
Test Xact.makeRecordHandle()
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



TC001
protected void TC001() throws T_Fail, StandardException(Code)
TC001 - Test the drop on commit mode for temp containers.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



TC002
protected void TC002(int mode, boolean doCommit) throws StandardException, T_Fail(Code)
A clone of P002 for temporary containers. Insert rows on the first page until the page is full, then add a page and repeat the test (for a total of three pages with full rows). Fetch the rows back by handle methods. Commit or abort the transaction, and see if table is empty. Can be used as follows:
 mode                   doCommit
 TRUNCATE_ON_COMMIT     true       Ensure the table has only one empty page after commit
 TRUNCATE_ON_COMMIT     false      Ensure the table has only one empty page after abort
 0                      false      Ensure the table has only one empty page after abort
 

exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



TC003
protected void TC003(int mode, boolean doCommit) throws StandardException, T_Fail(Code)
Add a number of rows to a temp table opened in various modes, and drop it before commit/abort.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



TC004
protected void TC004(int mode1, int mode2, int mode3, boolean doCommit, boolean closeThem) throws StandardException, T_Fail(Code)
Open a temp table several time swith different modes and ensure the correct behaviour (most severe open wins).
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



TC004all
protected void TC004all() throws StandardException, T_Fail(Code)
Open a temp table several times with different modes and ensure the correct behaviour (most severe open wins).
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



boot
public void boot(boolean create, Properties startParams) throws StandardException(Code)

exception:
  StandardException - cannot startup the context service



getModuleToTestProtocolName
protected String getModuleToTestProtocolName()(Code)



getTestService
protected String getTestService()(Code)



joinSetupTest
protected void joinSetupTest() throws T_Fail(Code)
T_MultiThreadedIteration method
exception:
  T_Fail - Unexpected behaviour from the API



newTestObject
protected T_MultiThreadedIterations newTestObject()(Code)



runEachTest
protected void runEachTest() throws T_Fail, StandardException(Code)



runPurgeWithNoDataLoggesTests
protected void runPurgeWithNoDataLoggesTests() throws T_Fail, StandardException(Code)



runTempTests
protected void runTempTests() throws T_Fail, StandardException(Code)



runTestSet
protected void runTestSet() throws T_Fail(Code)
run the test
exception:
  T_Fail - Unexpected behaviour from the API



setupTest
protected void setupTest() throws T_Fail(Code)
Set up test
exception:
  T_Fail - Unexpected behaviour from the API



Fields inherited from org.apache.derbyTesting.unitTests.harness.T_MultiThreadedIterations
protected int threadNumber(Code)(Java Doc)

Methods inherited from org.apache.derbyTesting.unitTests.harness.T_MultiThreadedIterations
protected int getNumThreads()(Code)(Java Doc)
abstract protected void joinSetupTest() throws T_Fail(Code)(Java Doc)
abstract protected T_MultiThreadedIterations newTestObject()(Code)(Java Doc)
public void run()(Code)(Java Doc)
protected void runTests() throws T_Fail(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.