Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derbyTesting.unitTests.crypto.* (6)org.apache.derbyTesting.unitTests.harness.* (12)
org.apache.derbyTesting.unitTests.lang.* (2)org.apache.derbyTesting.unitTests.services.* (20)
org.apache.derbyTesting.unitTests.store.* (22)org.apache.derbyTesting.unitTests.util.* (2)

Package Samples:

org.apache.derbyTesting.unitTests.crypto
org.apache.derbyTesting.unitTests.harness
org.apache.derbyTesting.unitTests.lang
org.apache.derbyTesting.unitTests.services
org.apache.derbyTesting.unitTests.store
org.apache.derbyTesting.unitTests.util

Classes:

T_RecoverBadLog: A implementation unit test for recovering log that has been damanged but salvagable. To run, create a derby.properties file in a new directory with the contents derby.module.test.recoverBadLog=org.apache.derbyTesting.unitTests.store.T_RecoverBadLog Execute in order To Test Bad Log due to partial write that are identified by checking the length in the beginning and end of the log record. java -DTestBadLogSetup=true org.apache.derbyTesting.unitTests.harness.UnitTestMain java -DTestBadLog1=true org.apache.derbyTesting.unitTests.harness.UnitTestMain java -DTestBadLog2=true org.apache.derbyTesting.unitTests.harness.UnitTestMain ...
T_SecondaryIndexRow: This class implements a row which will be stored in a secondary index on a heap table. This class creates a new DataValueDescriptor array which will be the row used to insert into the secondary index. The fields of this object array are made up of references to DataValueDescriptors provided by the caller: the DataValueDescriptors in the template and a RowLocation. The interface is designed to support the standard access method interface where callers provide a single template and then read rows into that template over and over. This class keeps a reference to the objects in the template and the ...
BitUtil: This class provides utility methods for converting byte arrays to hexidecimal Strings and manipulating BIT/BIT VARYING values as a packed vector of booleans. The BIT/BIT VARYING methods are modeled after some methods in the java.util.BitSet class. An alternative to using a SQL BIT (VARYING) column in conjunction with the methods provided herein to provide bit manipulation would be to use a serialized java.util.BitSet column instead. This class contains the following static methods: void set (byte[] bytes, int position) to set a bit void clear (byte[] bytes, int position) to clear a bit boolean ...
T_RecoverFullLog: A implementation unit test for log full condition To run, create a derby.properties file in a new directory with the contents derby.module.test.recoverFullLog=org.apache.derbyTesting.unitTests.store.T_RecoverFullLog Execute in order java -DTestFillLog=true org.apache.derbyTesting.unitTests.harness.UnitTestMain java -DTestLogSwitchFail=true org.apache.derbyTesting.unitTests.harness.UnitTestMain java -DTestFullRecoveryFail=true org.apache.derbyTesting.unitTests.harness.UnitTestMain (run this serveral times, this simulate recovery running out of log) java -DTestFullRecover=true org.apache.derbyTesting ...
T_MultiThreadedIterations: Abstract class which executes T_MultiIterations. This allows multiple threads running T_MultiIterations. This allows the setup to be performed once, and then the test itself to be run with multiple threads for a number of iterations. The number of threads and iterations are set by the property derby.unittests.numThreads and derby.unittests.iterations and default to 1. Statistics are provided about each iteration in the error log. The statistics are time for each iteration, used and total memory changes per iteration.
T_MultiIterations: Abstract class which executes T_Generic. This splits the running of a test into two parts, the test setup and running the test. This allows the setup to be performed once, and then the test itself to be run for a number of iterations. The number iterations is set by the property derby.unittests.iterations and defaults to 1. Statistics are provided about each iteration in the error log. The statistics are time for each iteration, used and total memory changes per iteration.
T_Key: Key for these objects is an array of objects value - Integer or String - implies what object should be used in the cache. waitms - time to wait in ms on a set or create (simulates the object being loaded into the cache). canFind - true of the object can be found on a set, false if it can't. (simulates a request for a non-existent object) raiseException - true if an exception should be raised during set or create identity
MarkedLimitInputStream: An input stream whose internal data is in blocks, the format of each block is (boolean isLastBlock, int blockLength, sequence of blockLength bytes) All blocks except for the last block must have isLastBlock set to false. The last block must have isLastBlock set to true. This class implements an input stream whose length is limited, yet the creator (writer) of the stream does not need to know the entire length before creating it.
T_Recovery: A protocol unit test for recovery. To run, create a derby.properties file in a new directory with the contents derby.module.test.recovery=org.apache.derbyTesting.unitTests.store.T_Recovery Execute java -DSetupRecovery=true org.apache.derbyTesting.unitTests.harness.UnitTestMain java -DTestRecovery=true org.apache.derbyTesting.unitTests.harness.UnitTestMain
UnitTestMain: A very simple class to boot up a system based upon a configuration file passed in as the first argument. The optional second argument is taken as a boolean. If the argument is missing or false, the configuration is started, otherwise the configuration is created. Usage: java org.apache.derbyTesting.unitTests.harness.UnitTestMain config-file [true]
T_RowSource: A RowSource is the mechanism for iterating over a set of rows. The RowSource is the interface through which access recieved a set of rows from the client for the purpose of inserting into a single container. A RowSource can come from many sources - from rows that are from fast path import, to rows coming out of a sort for index creation.
T_Diagnosticable: This T_Diagnosticable class provides a sample of how to use the "Diagnostic" facility. The classes methods are built to be called by a "values" or a "call" statement from "ij". Eventually there will be some sort of diagnostic monitor which will be used to call the various "D_*" routines.
T_Serviceable: This test implements serviceable for testing. To facility testing, when this object is being serviced, it will synchronize on itself and notity all waiters. Test driver may wait on this object and check timesServiced to make sure the background daemon has run.
UnitTestManager: The UnitTestManager provides a mechanism for registering subsystem tests and then invoking them. It can produce an output report specifying the results, the timing, and any output produced by the tests. If the run fails, the invoker of the tests should shut down the system.
EmptyResultSetStatisticsFactory: ResultSetStatisticsFactory provides a wrapper around all of objects associated with run time statistics. This implementation of the protocol is for stubbing out the RunTimeStatistics feature at execution time..
T_Generic: Abstract class which executes a unit test. To write a test, extend this class with a class which implements the two abstract methods: runTests setUp
T_L1: Unit test Lockable A simple Lockable that allows a single locker, but that locker can lock the object multiple times, standard Lockable behaviour.
UnitTest: The UnitTest interface is implemented by the class that tests a class. Such a class has the name XUnitTest and is the test for the class named X.
T_StandardException: A standard exception for testing. The messages for this exception are not localized or stored with the product.
UnitTestConstants: UnitTestConstants contains the constants for the unit tests to use when registering and running the tests.
D_T_DiagTestClass1: A diagnostic class for the T_DiagTestClass1 class. This class is used for unit testing by T_Diagnosticable.
T_TWC: Transaction with context, a utility class for tests to create multiple interleaving transactions.
T_UUIDFactory: Test to ensure a implementation of the UUID module implements the protocol correctly.
T_StoreCostResult: Manage the result information from a single call to StoreCostController.getScanCost().
T_DiagTestClass1: A test class for T_Diagnosticable. A diagnostic class will be provided on this class.

Home | Contact Us | Privacy Policy | Terms of Service