net.dpml.test.app
Class Demo

java.lang.Object
  extended by 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

Constructor Summary
Demo(Logger logger, PartsManager parts)
          Creation of a new demo component.
 
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
 

Constructor Detail

Demo

public Demo(Logger logger,
            PartsManager parts)
Creation of a new demo component.

Parameters:
logger - a logging channel
parts - the internal parts
Method Detail

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