Class PropertyToJavaGenerationTest
- java.lang.Object
-
- org.apache.torque.generator.BaseTest
-
- org.apache.torque.generator.control.PropertyToJavaGenerationTest
-
public class PropertyToJavaGenerationTest extends BaseTest
A test case for a more complex generation. Checks that we can use different generator types in one generation, that debugging output works and that the runOnlyOnSchemaChange detection works.- Version:
- $Id: PropertyToJavaGenerationTest.java 1855923 2019-03-20 16:19:39Z gk $
-
-
Constructor Summary
Constructors Constructor Description PropertyToJavaGenerationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestPropertyToJavaGeneration()Tests that the property to java generation works.voidtestPropertyToJavaGenerationDebugOutput()Tests that the property to java generation works with debug output switched on.voidtestPropertyToJavaRunOnlyOnSchemChangeChecksumChange()Tests that runOnlyOnSchemaChange set true and a different checksum results in generating a second time.voidtestPropertyToJavaRunOnlyOnSchemChangeModificationDateChange()Tests that runOnlyOnSchemaChange set true and a different modification date results in generating a second time.voidtestPropertyToJavaRunOnlyOnSchemChangeNoChange()Tests that runOnlyOnSchemaChange set true and an unchanged source results in not generating a second time.
-
-
-
Method Detail
-
testPropertyToJavaGeneration
@Test public void testPropertyToJavaGeneration() throws ExceptionTests that the property to java generation works.- Throws:
Exception- if the test fails.
-
testPropertyToJavaGenerationDebugOutput
@Test public void testPropertyToJavaGenerationDebugOutput() throws ExceptionTests that the property to java generation works with debug output switched on.- Throws:
Exception- if the test fails.
-
testPropertyToJavaRunOnlyOnSchemChangeNoChange
@Test public void testPropertyToJavaRunOnlyOnSchemChangeNoChange() throws ExceptionTests that runOnlyOnSchemaChange set true and an unchanged source results in not generating a second time.- Throws:
Exception- if the test fails.
-
testPropertyToJavaRunOnlyOnSchemChangeChecksumChange
@Test public void testPropertyToJavaRunOnlyOnSchemChangeChecksumChange() throws ExceptionTests that runOnlyOnSchemaChange set true and a different checksum results in generating a second time.- Throws:
Exception- if the test fails.
-
testPropertyToJavaRunOnlyOnSchemChangeModificationDateChange
@Test public void testPropertyToJavaRunOnlyOnSchemChangeModificationDateChange() throws ExceptionTests that runOnlyOnSchemaChange set true and a different modification date results in generating a second time.- Throws:
Exception- if the test fails.
-
-