public class DDBSToolkitJenaModuleTest extends DataModuleTest
Modifier and Type | Field and Description |
---|---|
org.junit.rules.ExpectedException |
thrown |
manager
Constructor and Description |
---|
DDBSToolkitJenaModuleTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
addReceiverPeerUID(IEntity iEntity)
Add receiver peer uid
|
void |
closeConnection() |
protected ActorBase |
createActor()
Create an empty actor
|
protected ActorBase |
createActor(java.lang.Integer actorId,
java.lang.String actorName,
java.lang.Integer filmId)
Create an empty actor
|
protected FilmBase |
createFilm()
Create an empty film object
|
protected FilmBase |
createFilm(java.lang.Integer filmID,
java.lang.String filmName,
java.lang.Integer duration,
java.sql.Timestamp creationDate,
java.lang.Long longField,
java.lang.Float floatField)
Create an empty film object
|
protected java.lang.String |
getLikeExpression()
Get the string expression that match contains "2" in the film name
|
void |
instantiateManager()
Instantiate a distributable entity manager
|
void |
setUp()
Clean data inside the data source
|
void |
tearDown() |
void |
testAdd()
JUnit tests for adding
|
void |
testListAllRemoteEndPoint()
JUnit tests for the listAll function for MySQL
|
void |
testLoadArray()
Test loadArray() method
|
void |
testReadRemoteEndpoint()
JUnit test to test the Read function
|
void |
testTransactionDelete()
Test executeTransaction() method with delete transaction
Test commit and rollback conditions
|
void |
testTransactionsAdd()
Test executeTransaction() method with add transaction
Test commit and rollback conditions
|
void |
testUpdate()
JUnit tests to test the update function
|
compareFilmElement, createSampleData, testAddNullValue, testConditionBetween, testConditionEquals, testConditionGreaterThan, testConditionGreaterThanOrEqual, testConditionIn, testConditionIsNull, testConditionLessThan, testConditionLessThanOrEqual, testConditionLike, testConditionNotBetween, testConditionNotEquals, testConditionNotIn, testConditionNotNull, testDelete, testDeleteNullValue, testIsOpen, testListAll, testListAllWithNullValue, testLoadArrayEmptyParameter, testLoadArrayNullValue1stParameter, testLoadArrayNullValue2ndParameter, testRead, testReadLastElementNullValue, testReadLastFilmElement, testReadNullValue, testTransactionUpdate, testUpdateNullValue
public void closeConnection() throws DDBSToolkitException
DDBSToolkitException
public void instantiateManager()
DataModuleTest
instantiateManager
in class DataModuleTest
public void setUp() throws java.lang.Exception
DataModuleTest
setUp
in class DataModuleTest
java.lang.Exception
- Exception thrownpublic void tearDown() throws java.lang.Exception
java.lang.Exception
public void testAdd() throws DDBSToolkitException
testAdd
in class DataModuleTest
DDBSToolkitException
- Toolkit exceptionpublic void testUpdate() throws DDBSToolkitException
testUpdate
in class DataModuleTest
DDBSToolkitException
- Toolkit exceptionpublic void testLoadArray() throws DDBSToolkitException
DataModuleTest
testLoadArray
in class DataModuleTest
DDBSToolkitException
- DDBS Toolkit exceptionprotected void addReceiverPeerUID(IEntity iEntity)
DataModuleTest
addReceiverPeerUID
in class DataModuleTest
iEntity
- Entityprotected FilmBase createFilm()
DataModuleTest
createFilm
in class DataModuleTest
protected ActorBase createActor()
DataModuleTest
createActor
in class DataModuleTest
protected FilmBase createFilm(java.lang.Integer filmID, java.lang.String filmName, java.lang.Integer duration, java.sql.Timestamp creationDate, java.lang.Long longField, java.lang.Float floatField)
DataModuleTest
createFilm
in class DataModuleTest
filmID
- Film IdfilmName
- Film nameduration
- DurationcreationDate
- Creation datelongField
- Long fieldfloatField
- Float fieldprotected ActorBase createActor(java.lang.Integer actorId, java.lang.String actorName, java.lang.Integer filmId)
DataModuleTest
createActor
in class DataModuleTest
actorId
- Actor IdactorName
- Actor namefilmId
- Film idprotected java.lang.String getLikeExpression()
DataModuleTest
getLikeExpression
in class DataModuleTest
public void testTransactionsAdd() throws DDBSToolkitException
testTransactionsAdd
in class DataModuleTest
DDBSToolkitException
- DDBS Toolkit exceptionpublic void testTransactionDelete() throws java.lang.Exception
testTransactionDelete
in class DataModuleTest
DDBSToolkitException
- DDBS Toolkit exceptionjava.lang.Exception
public void testListAllRemoteEndPoint() throws java.lang.Exception
java.lang.Exception
- Exception thrownpublic void testReadRemoteEndpoint() throws java.lang.Exception
java.lang.Exception
- Exception thrown