net.dpml.test.app
Class Demo
java.lang.Object
net.dpml.test.app.Demo
public class Demo
- extends Object
The demo class is used to aggregate a collection of components and
provide some hooks for the testcase.
- Version:
- 1.2.0
- Author:
- Digital Product Meta Library
Method Summary |
int |
test(String message)
Hook for testcase to fire a message noytify request to the
server which in turn fires notifiy requests to listeners. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Demo
public Demo(Logger logger,
PartsManager parts)
- Creation of a new demo component.
- Parameters:
logger
- a logging channelparts
- the internal parts
test
public int test(String message)
throws Exception
- Hook for testcase to fire a message noytify request to the
server which in turn fires notifiy requests to listeners.
- Parameters:
message
- the notification message
- Returns:
- the number of notify messages fired to the listener
- Throws:
Exception
- if something goes wrong