|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase net.sf.jaxme.js.junit.MultipleInheritanceTest
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.
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 |
public MultipleInheritanceTest(java.lang.String arg0)
Method Detail |
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public void testObserver()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |