public class T_LockFactory extends T_MultiIterations
LockFactory
,
UnitTest
Modifier and Type | Field and Description |
---|---|
protected static int |
ITERATIONS |
protected org.apache.derby.iapi.services.locks.LockFactory |
lf |
out, shortModuleToTestName, startParams
Constructor and Description |
---|
T_LockFactory() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
checkLockCount(org.apache.derby.iapi.services.locks.CompatibilitySpace cs,
int expected)
Check to see if the total number of locks we have is as expected.
|
(package private) void |
checkLockGroupCount(org.apache.derby.iapi.services.locks.CompatibilitySpace cs,
java.lang.Object group,
int expected)
Check to see if the number of locks in a group we have is as expected.
|
protected java.lang.String |
getModuleToTestProtocolName()
Get the name of the protocol for the module to test.
|
(package private) void |
M001()
Multi-user test 001.
|
(package private) void |
M002()
Multi-user test 002
Create a single lockable and have three threads lock it, yield and
then release it.
|
(package private) void |
M003()
Multi-user test 003
Create a single lockable and have three threads lock it, yield and
then release it.
|
(package private) void |
M004()
Multi-user test 004
As M003 but each thread will lock the object twice, to ensure that
lock manager grantes the lock when the compatability space and qualifier
match.
|
protected void |
runTestSet()
Run once per-iteration to run the actual test.
|
(package private) void |
S001()
Single user API test 001.
|
(package private) void |
S002()
Single user API test 002.
|
(package private) void |
S003()
Single user API test 003.
|
(package private) void |
S004()
Single user API test 004.
|
(package private) void |
S005()
Single user API test 005.
|
(package private) void |
S007()
Single user API test 007.
|
protected void |
setupTest()
Run all the tests, each test that starts with 'S' is a single user
test, each test that starts with 'M' is a multi-user test.
|
private static java.lang.Object |
startSystemModule(java.lang.String factoryInterface)
Privileged startup.
|
runTests
boot, Execute, FAIL, PASS, REPORT, stop, UnitTestDuration, UnitTestType
protected static final int ITERATIONS
protected org.apache.derby.iapi.services.locks.LockFactory lf
protected java.lang.String getModuleToTestProtocolName()
T_Generic
getModuleToTestProtocolName
in class T_Generic
protected void setupTest() throws T_Fail
setupTest
in class T_MultiIterations
T_Fail
- The test failed in some way.protected void runTestSet() throws T_Fail
runTestSet
in class T_MultiIterations
T_Fail
- the test failed in some way.void S001() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid S002() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid S003() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid S004() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid S005() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid S007() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid M001() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid M002() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid M003() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid M004() throws org.apache.derby.iapi.error.StandardException, T_Fail
org.apache.derby.iapi.error.StandardException
- An exception thrown by a method of LockFactoryT_Fail
- Some behaviour of the LockFactory is incorrectvoid checkLockCount(org.apache.derby.iapi.services.locks.CompatibilitySpace cs, int expected) throws T_Fail
T_Fail
- Number of locks is not as expected.void checkLockGroupCount(org.apache.derby.iapi.services.locks.CompatibilitySpace cs, java.lang.Object group, int expected) throws T_Fail
T_Fail
- Number of locks is not as expected.private static java.lang.Object startSystemModule(java.lang.String factoryInterface) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.