Class PerformanceTest
java.lang.Object
org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
org.fastnate.generator.test.performance.PerformanceTest
Tests the performance against the currently configured test database.
- Author:
- Tobias Liefke
-
Field Summary
Fields inherited from class org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
WRITER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesProperties for configuring thegenerator.voidTests the performance of fastnate with thePostgreSqlBulkWriter.voidTests the performance of fastnate with theConnectedStatementsWriter.voidTests the performance of fastnate with predefined SQL.voidtestJpa()Tests the performance of the JPA library.Methods inherited from class org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
createQuery, executeSql, findResults, findResults, findSingleResult, findSingleResult, getConnection, getEm, getGenerator, setup, setup, tearDown, write
-
Constructor Details
-
PerformanceTest
public PerformanceTest()
-
-
Method Details
-
getGeneratorProperties
Description copied from class:AbstractEntitySqlGeneratorTestProperties for configuring thegenerator.- Overrides:
getGeneratorPropertiesin classAbstractEntitySqlGeneratorTest- Returns:
- the test specific properties for the generator
-
testFastnateBulk
Tests the performance of fastnate with thePostgreSqlBulkWriter.- Throws:
SQLException- if there is a problem with the SQL
-
testFastnateConnected
Tests the performance of fastnate with theConnectedStatementsWriter.- Throws:
SQLException- if there is a problem with the SQL
-
testFastnatePrebuild
Tests the performance of fastnate with predefined SQL.- Throws:
SQLException- if there is a problem with the SQL
-
testJpa
@Test public void testJpa()Tests the performance of the JPA library.
-