Index

A B C D E G H I M N O P R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

AbstractPdoTest - Class in org.tentackle.pdo.junit
Base class for JUnit 5 tests on PDO level.
AbstractPdoTest - Class in org.tentackle.pdo.testng
Base class for TestNG tests on PDO level.
AbstractPdoTest() - Constructor for class org.tentackle.pdo.junit.AbstractPdoTest
Creates a test with rollback and one transaction per class.
AbstractPdoTest() - Constructor for class org.tentackle.pdo.testng.AbstractPdoTest
Creates a test with rollback and one transaction per class.
AbstractPdoTest(AbstractPdoTest.TransactionType) - Constructor for class org.tentackle.pdo.junit.AbstractPdoTest
Creates a test with rollback.
AbstractPdoTest(AbstractPdoTest.TransactionType, boolean) - Constructor for class org.tentackle.pdo.junit.AbstractPdoTest
Creates a test.
AbstractPdoTest(AbstractPdoTest.TransactionType) - Constructor for class org.tentackle.pdo.testng.AbstractPdoTest
Creates a test with rollback.
AbstractPdoTest(AbstractPdoTest.TransactionType, boolean) - Constructor for class org.tentackle.pdo.testng.AbstractPdoTest
Creates a test.
AbstractPdoTest.SuiteExtension - Class in org.tentackle.pdo.junit
Opens the session once for all test classes and closes it when the test run ends.
Also marks the rolled back statements to be logged if a test method fails.
AbstractPdoTest.TransactionType - Enum Class in org.tentackle.pdo.junit
The transaction handling for the test class.
AbstractPdoTest.TransactionType - Enum Class in org.tentackle.pdo.testng
The transaction handling for the test class.
afterClass() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Ends the transaction if type is AbstractPdoTest.TransactionType.CLASS.
afterClass() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Ends the transaction if type is AbstractPdoTest.TransactionType.CLASS.
afterMethod() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Ends the transaction if type is AbstractPdoTest.TransactionType.METHOD.
afterMethod(ITestResult) - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Ends the transaction if type is AbstractPdoTest.TransactionType.METHOD.
If the test method failed, the statements rolled back are logged.
awaitOutput(String, long) - Method in class org.tentackle.pdo.testng.ServerProcessWrapper
Waits until the server prints the given marker on a line of its own to standard output.
awaitReady(long) - Method in class org.tentackle.pdo.testng.ServerProcessWrapper
Waits until the server signals that it is ready to accept connections.

B

beforeAll(ExtensionContext) - Method in class org.tentackle.pdo.junit.AbstractPdoTest.SuiteExtension
 
beforeClass() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Begins the transaction if type is AbstractPdoTest.TransactionType.CLASS.
beforeClass() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Begins the transaction if type is AbstractPdoTest.TransactionType.CLASS.
beforeMethod() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Begins the transaction if type is AbstractPdoTest.TransactionType.METHOD.
beforeMethod() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Begins the transaction if type is AbstractPdoTest.TransactionType.METHOD.
beginTransaction() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Begins a transaction.
beginTransaction() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Begins a transaction.

C

CLASS - Enum constant in enum class org.tentackle.pdo.junit.AbstractPdoTest.TransactionType
transaction per test class.
CLASS - Enum constant in enum class org.tentackle.pdo.testng.AbstractPdoTest.TransactionType
transaction per test class.
close() - Method in class org.tentackle.pdo.testng.ServerProcessWrapper
Stops the server if it is still running.
closeSessionsAndTerminateModificationTracker() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Terminates the modification tracker and closes the session.
closeSessionsAndTerminateModificationTracker() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Terminates the modification tracker and closes the session.
createDatabaseTables(Db) - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Creates the database tables.
The default implementation loads the model from the classpath.
createDatabaseTables(Db) - Method in class org.tentackle.pdo.junit.TestApplication
Creates the database tables.
The default implementation loads the model from the classpath.
createDatabaseTables(Db) - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Creates the database tables.
The default implementation loads the model from the classpath.
createDatabaseTables(Db) - Method in class org.tentackle.pdo.testng.TestApplication
Creates the database tables.
The default implementation loads the model from the classpath.
createDomainContext() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Creates the domain context.
createDomainContext() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Creates the domain context.
createPopulateScript(Db) - Method in class org.tentackle.pdo.test.DbTestUtilities
Creates the SQL script that creates the database schema.
Used for in-memory test connections.

D

DbTestUtilities - Class in org.tentackle.pdo.test
Low-level session utility methods for tests.
Creates the database schema from the model, used by the test base classes for in-memory databases.
DbTestUtilities() - Constructor for class org.tentackle.pdo.test.DbTestUtilities
Creates the utilities.

E

endTransaction() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Commits or rolls back a transaction.
endTransaction() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Commits or rolls back a transaction.

G

getDomainContext() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Gets the domain context.
getDomainContext() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Gets the domain context.
getInstance() - Static method in class org.tentackle.pdo.test.DbTestUtilities
The singleton.
getProcess() - Method in class org.tentackle.pdo.testng.ServerProcessWrapper
Gets the wrapped process.
getSession() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Gets the session.
getSession() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Gets the session.
getUser(DomainContext, long) - Method in class org.tentackle.pdo.junit.TestApplication
Returns no user.
Override if the tests need users.
getUser(DomainContext, long) - Method in class org.tentackle.pdo.testng.TestApplication
Returns no user.
Override if the tests need users.

H

handleTestExecutionException(ExtensionContext, Throwable) - Method in class org.tentackle.pdo.junit.AbstractPdoTest.SuiteExtension
 

I

isCommit() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Returns whether the transaction should be committed or rolled back.
isCommit() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Returns whether the transaction should be committed or rolled back.
isRollbackLogged() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Returns whether statements rolled back are always logged.
isRollbackLogged() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Returns whether statements rolled back are always logged.

M

METHOD - Enum constant in enum class org.tentackle.pdo.junit.AbstractPdoTest.TransactionType
transaction per test method.
METHOD - Enum constant in enum class org.tentackle.pdo.testng.AbstractPdoTest.TransactionType
transaction per test method.

N

NONE - Enum constant in enum class org.tentackle.pdo.junit.AbstractPdoTest.TransactionType
no automatic transaction handling.
NONE - Enum constant in enum class org.tentackle.pdo.testng.AbstractPdoTest.TransactionType
no automatic transaction handling.

O

openSession() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Opens the session and makes it the current session of the thread.
openSession() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Opens the session and makes it the current session of the thread.
openSessionsAndStartModificationTracker() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Opens the session and starts the modification tracker.
If the database is in-memory, the tables are created before the tracker is started and populated afterward.
openSessionsAndStartModificationTracker() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Opens the session and starts the modification tracker.
If the database is in-memory, the tables are created before the tracker is started and populated afterward.
org.tentackle.pdo.junit - package org.tentackle.pdo.junit
 
org.tentackle.pdo.test - package org.tentackle.pdo.test
 
org.tentackle.pdo.testng - package org.tentackle.pdo.testng
 

P

populateDatabase() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Populates the database with test data.
Invoked once after the tables were created, if the database is in-memory.
populateDatabase() - Method in class org.tentackle.pdo.junit.TestApplication
Populates the database with test data.
Invoked for each test class after the tables were created, if the database is in-memory.
populateDatabase() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Populates the database with test data.
Invoked once after the tables were created, if the database is in-memory.
populateDatabase() - Method in class org.tentackle.pdo.testng.TestApplication
Populates the database with test data.
Invoked for each test class after the tables were created, if the database is in-memory.

R

READY_MARKER - Static variable in class org.tentackle.pdo.testng.ServerProcessWrapper
Marker a cooperating helper server prints on its own line to standard output once it is ready to accept connections.
runClass(Class, String...) - Static method in class org.tentackle.pdo.junit.AbstractPdoTest
Runs the given class in another JVM.
The test class must have a main method.
runClass(Class, String...) - Static method in class org.tentackle.pdo.testng.AbstractPdoTest
Runs the given class in another JVM.
The test class must have a main method.
runInOtherJVM(Class) - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Runs the given class in another JVM and waits for its termination.
The test class must have a main method.
runInOtherJVM(Class) - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Runs the given class in another JVM and waits for its termination.
The test class must have a main method.
runPostCommits() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Invokes the post-commits, if any.
Useful for special test scenarios, since tests are usually rolled back.
runPostCommits() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Invokes the post-commits, if any.
Useful for special test scenarios, since tests are usually rolled back.
runPreCommits() - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Invokes the pre-commits, if any.
Useful for special test scenarios, since tests are usually rolled back.
runPreCommits() - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Invokes the pre-commits, if any.
Useful for special test scenarios, since tests are usually rolled back.
runScript(Db, String) - Method in class org.tentackle.pdo.test.DbTestUtilities
Runs an SQL script.
Usually the script created by DbTestUtilities.createPopulateScript(Db).

S

sendCommand(String) - Method in class org.tentackle.pdo.testng.ServerProcessWrapper
Sends a command line to the server via its standard input.
ServerProcessWrapper - Class in org.tentackle.pdo.testng
Wraps a server process started in a separate JVM to orchestrate deterministic startup, hand-shaking, and shutdown between the test (the client) and the server.
ServerProcessWrapper(Process) - Constructor for class org.tentackle.pdo.testng.ServerProcessWrapper
Wraps a freshly started subprocess and begins draining its output.
setRollbackLogged(boolean) - Method in class org.tentackle.pdo.junit.AbstractPdoTest
Sets whether to log the statements rolled back.
By default, the statements are not logged if the test succeeds.
setRollbackLogged(boolean) - Method in class org.tentackle.pdo.testng.AbstractPdoTest
Sets whether to log the statements rolled back.
By default, the statements are not logged if the test succeeds.
setUpClass() - Method in class org.tentackle.pdo.junit.TestApplication
Opens the session and registers the application.
Aborts the tests if no backend is available.
setUpClass() - Method in class org.tentackle.pdo.testng.TestApplication
Opens the session and registers the application.
Skips the tests if no backend is available.
startup() - Method in class org.tentackle.pdo.junit.TestApplication
Not invoked: the application is set up by TestApplication.setUpClass().
startup() - Method in class org.tentackle.pdo.testng.TestApplication
Not invoked: the application is set up by TestApplication.setUpClass().
stopAndWait() - Method in class org.tentackle.pdo.testng.ServerProcessWrapper
Signals the server to stop and waits for it to terminate.
SuiteExtension() - Constructor for class org.tentackle.pdo.junit.AbstractPdoTest.SuiteExtension
Creates the extension.

T

tearDownClass() - Method in class org.tentackle.pdo.junit.TestApplication
Closes the session and unregisters the application.
tearDownClass() - Method in class org.tentackle.pdo.testng.TestApplication
Closes the session and unregisters the application.
TestApplication - Class in org.tentackle.pdo.junit
Base class for JUnit 5 tests that must run as an application.
TestApplication - Class in org.tentackle.pdo.testng
Base class for TestNG tests that must run as an application.
TestApplication(String, String) - Constructor for class org.tentackle.pdo.junit.TestApplication
Creates a test application.
TestApplication(String, String) - Constructor for class org.tentackle.pdo.testng.TestApplication
Creates a test application.

V

valueOf(String) - Static method in enum class org.tentackle.pdo.junit.AbstractPdoTest.TransactionType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.tentackle.pdo.testng.AbstractPdoTest.TransactionType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.tentackle.pdo.junit.AbstractPdoTest.TransactionType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.tentackle.pdo.testng.AbstractPdoTest.TransactionType
Returns an array containing the constants of this enum class, in the order they are declared.

W

waitForProcess(Process) - Static method in class org.tentackle.pdo.junit.AbstractPdoTest
Waits for the process to terminate and writes its stdout and stderr to the console.
Both streams are drained while the process is running.
waitForProcess(Process) - Static method in class org.tentackle.pdo.testng.AbstractPdoTest
Waits for the process to terminate and writes its stdout and stderr to the reporter log.
Both streams are drained while the process is running.
A B C D E G H I M N O P R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values