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, testUpdateNullValuepublic void closeConnection()
                     throws DDBSToolkitException
DDBSToolkitExceptionpublic void instantiateManager()
DataModuleTestinstantiateManager in class DataModuleTestpublic void setUp()
           throws java.lang.Exception
DataModuleTestsetUp in class DataModuleTestjava.lang.Exception - Exception thrownpublic void tearDown()
              throws java.lang.Exception
java.lang.Exceptionpublic void testAdd()
             throws DDBSToolkitException
testAdd in class DataModuleTestDDBSToolkitException - Toolkit exceptionpublic void testUpdate()
                throws DDBSToolkitException
testUpdate in class DataModuleTestDDBSToolkitException - Toolkit exceptionpublic void testLoadArray()
                   throws DDBSToolkitException
DataModuleTesttestLoadArray in class DataModuleTestDDBSToolkitException - DDBS Toolkit exceptionprotected void addReceiverPeerUID(IEntity iEntity)
DataModuleTestaddReceiverPeerUID in class DataModuleTestiEntity - Entityprotected FilmBase createFilm()
DataModuleTestcreateFilm in class DataModuleTestprotected ActorBase createActor()
DataModuleTestcreateActor in class DataModuleTestprotected 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)
DataModuleTestcreateFilm in class DataModuleTestfilmID - 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)
DataModuleTestcreateActor in class DataModuleTestactorId - Actor IdactorName - Actor namefilmId - Film idprotected java.lang.String getLikeExpression()
DataModuleTestgetLikeExpression in class DataModuleTestpublic void testTransactionsAdd()
                         throws DDBSToolkitException
testTransactionsAdd in class DataModuleTestDDBSToolkitException - DDBS Toolkit exceptionpublic void testTransactionDelete()
                           throws java.lang.Exception
testTransactionDelete in class DataModuleTestDDBSToolkitException - DDBS Toolkit exceptionjava.lang.Exceptionpublic void testListAllRemoteEndPoint()
                               throws java.lang.Exception
java.lang.Exception - Exception thrownpublic void testReadRemoteEndpoint()
                            throws java.lang.Exception
java.lang.Exception - Exception thrown