net.sf.jaxme.js.junit
Class MultipleInheritanceTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bynet.sf.jaxme.js.junit.MultipleInheritanceTest
All Implemented Interfaces:
java.util.Observer, junit.framework.Test

public class MultipleInheritanceTest
extends junit.framework.TestCase
implements java.util.Observer

This example demonstrates implementation of multiple inheritance with the ProxyGenerator. The class MyObservableList, an extension of MultipleInheritanceTest.MyObservableList, is a subclass of Observable, but can also be viewed as a subclass of ArrayList (or whatever implementation of MultipleInheritanceTest.MyObservableList you choose in the constructor. The Observers are notified whenever an object is added to the list.

Version:
$Id: MultipleInheritanceTest.java,v 1.1 2003/05/27 03:17:16 joe Exp $
Author:
Jochen Wiedmann

Nested Class Summary
 class MultipleInheritanceTest.MyObservableList
           
 
Constructor Summary
MultipleInheritanceTest(java.lang.String arg0)
           
 
Method Summary
 void testObserver()
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Constructor Detail

MultipleInheritanceTest

public MultipleInheritanceTest(java.lang.String arg0)
Method Detail

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

testObserver

public void testObserver()