|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.ojb.broker.BrokerExamples
Demo Application that shows basic concepts for Applications using the PersistenceBroker as a mediator for persistence
| Field Summary | |
(package private) PersistenceBroker |
broker
|
| Constructor Summary | |
BrokerExamples(java.lang.String name)
Insert the method's description here. |
|
| Method Summary | |
protected Article |
createArticle(int id)
Insert the method's description here. |
protected Article |
createSimpleArticle(int id)
Insert the method's description here. |
static void |
main(java.lang.String[] args)
|
void |
setUp()
Insert the method's description here. |
void |
tearDown()
Insert the method's description here. |
void |
testCollectionRetrieval()
Insert the method's description here. |
void |
testModifications()
Insert the method's description here. |
void |
testObjectCache()
here we see what a good job the ObjectCache does: if the Cache has not been flushed by the GC, All previously loaded Objects are still hot. |
void |
testRetrieveAllReferences()
tests the PB.retrieveAllReferences() feature |
void |
testRetrieveReference()
tests the PB.retrieveReference() feature |
void |
testShallowAndDeepRetrieval()
here we see what a good job the ObjectCache does: if the Cache has not been flushed by the GC, All previously loaded Objects are still hot. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
PersistenceBroker broker
| Constructor Detail |
public BrokerExamples(java.lang.String name)
| Method Detail |
public static void main(java.lang.String[] args)
protected Article createArticle(int id)
id - int
public void setUp()
throws PBFactoryException
PBFactoryExceptionpublic void tearDown()
public void testCollectionRetrieval()
throws java.lang.Exception
java.lang.Exception
public void testModifications()
throws java.lang.Exception
java.lang.Exception
public void testObjectCache()
throws java.lang.Exception
java.lang.Exceptionprotected Article createSimpleArticle(int id)
id - int
public void testShallowAndDeepRetrieval()
throws java.lang.Exception
java.lang.Exception
public void testRetrieveReference()
throws java.lang.Exception
java.lang.Exceptionpublic void testRetrieveAllReferences()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||