org.apache.ojb.broker
Class PBListenerTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.ojb.broker.PBListenerTest
All Implemented Interfaces:
junit.framework.Test

public class PBListenerTest
extends junit.framework.TestCase

This TestClass tests OJB facilities to work with persistence aware instances.


Nested Class Summary
static class PBListenerTest.PBAwareObject
          persistence capable class
static class PBListenerTest.PBLifeCycleListenerObject
           
static class PBListenerTest.PBStateListenerObject
           
 
Field Summary
(package private)  PersistenceBroker broker
           
 
Constructor Summary
PBListenerTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
          Insert the method's description here.
 void tearDown()
          Insert the method's description here.
 void testDeleteCallbacks()
          tests the callbacks beforeDelete() and afterDelete().
 void testLifeCycleListener()
           
 void testLookupCallback()
          tests the callback afterLookup()
 void testPBStateListener()
           
 void testStoreCallbacks()
          tests the callbacks beforeStore() and afterStore().
 void testUpdateCallbacks()
          tests the callbacks beforeStore() and afterStore().
 
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

broker

PersistenceBroker broker
Constructor Detail

PBListenerTest

public PBListenerTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

setUp

public void setUp()
           throws java.lang.Exception
Insert the method's description here. Creation date: (06.12.2000 21:58:53)

Throws:
java.lang.Exception

tearDown

public void tearDown()
Insert the method's description here. Creation date: (06.12.2000 21:59:14)


testStoreCallbacks

public void testStoreCallbacks()
                        throws java.lang.Exception
tests the callbacks beforeStore() and afterStore().

Throws:
java.lang.Exception

testUpdateCallbacks

public void testUpdateCallbacks()
                         throws java.lang.Exception
tests the callbacks beforeStore() and afterStore().

Throws:
java.lang.Exception

testDeleteCallbacks

public void testDeleteCallbacks()
                         throws java.lang.Exception
tests the callbacks beforeDelete() and afterDelete().

Throws:
java.lang.Exception

testLookupCallback

public void testLookupCallback()
                        throws java.lang.Exception
tests the callback afterLookup()

Throws:
java.lang.Exception

testLifeCycleListener

public void testLifeCycleListener()

testPBStateListener

public void testPBStateListener()


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14