Class PrimitiveEntityTest
java.lang.Object
org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
org.fastnate.generator.test.primitive.PrimitiveEntityTest
Tests that primitive properties are written correctly.
- Author:
- Tobias Liefke
-
Field Summary
Fields inherited from class org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
WRITER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests that converted properties are written.voidTests to write enum properties in an entity.voidtestLobs()Tests to write BLOBs and CLOBs.voidTests to write primitive properties in an entity.voidTests to write primitive properties in an entity.voidTests that transient properties are not written.Methods inherited from class org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
createQuery, executeSql, findResults, findResults, findSingleResult, findSingleResult, getConnection, getEm, getGenerator, getGeneratorProperties, setup, setup, tearDown, write
-
Constructor Details
-
PrimitiveEntityTest
public PrimitiveEntityTest()
-
-
Method Details
-
testConvertedProperties
Tests that converted properties are written.- Throws:
IOException- if the generator throws one
-
testEnumProperties
Tests to write enum properties in an entity.- Throws:
IOException- if the generator throws one
-
testLobs
Tests to write BLOBs and CLOBs. Expected to fail with PostgreSQL.- Throws:
IOException- if the generator throws one
-
testPrimitiveProperties
Tests to write primitive properties in an entity.- Throws:
IOException- if the generator throws one
-
testSerializableProperties
Tests to write primitive properties in an entity.- Throws:
IOException- if the generator throws one
-
testTransientProperties
Tests that transient properties are not written.- Throws:
IOException- if the generator throws one
-