com.resilientedge.jockey.test
Class ZJockeyAppTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.resilientedge.jockey.test.ZJockeyAppTest
All Implemented Interfaces:
MessageListener, junit.framework.Test

public class ZJockeyAppTest
extends junit.framework.TestCase
implements MessageListener

Main entry point for the peerbridge subsystem.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Constructor Summary
ZJockeyAppTest()
          Constructor for the ZJockeyAppTest object
ZJockeyAppTest(java.lang.String name)
          Default constructor
 
Method Summary
 void DISABLED_testMessage()
          A unit test for JUnit
 void incomingMessageUpdate(ReceiveMarker messageMarker)
          Called when an incoming message being received has a status update.
static void main(java.lang.String[] args)
          Description of the Method
 void onMessage(PeerMessage message)
          Called when a message has been received and is ready to be processed.
 void onMessageSent(SendMarker sendMarker)
          Called when a message was successfully sent.
 void onRequest(PeerMessage request)
          Called when a request has been received and is ready to be processed.
 void onResponse(ResponseMarker responseMarker, PeerMessage reply)
          Called when a response has been received and is ready to be processed.
 void onTimeout(ResponseMarker responseMarker)
          Called when a request timed out before the response was received.
 void setUp()
          The JUnit setup method
protected  void tearDown()
          The teardown method for JUnit
 void testAppStart()
          A unit test for JUnit
 void testDefaults()
          A unit test for JUnit
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, 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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZJockeyAppTest

public ZJockeyAppTest(java.lang.String name)
Default constructor
Parameters:
name - the name of the test case

ZJockeyAppTest

public ZJockeyAppTest()
Constructor for the ZJockeyAppTest object
Method Detail

setUp

public void setUp()
The JUnit setup method
Overrides:
setUp in class junit.framework.TestCase

testDefaults

public void testDefaults()
A unit test for JUnit

testAppStart

public void testAppStart()
A unit test for JUnit

DISABLED_testMessage

public void DISABLED_testMessage()
A unit test for JUnit

incomingMessageUpdate

public void incomingMessageUpdate(ReceiveMarker messageMarker)
Called when an incoming message being received has a status update.
Specified by:
incomingMessageUpdate in interface MessageListener
Parameters:
messageMarker - Description of Parameter

onMessageSent

public void onMessageSent(SendMarker sendMarker)
Called when a message was successfully sent.
Specified by:
onMessageSent in interface MessageListener
Parameters:
sendMarker - Description of Parameter

onRequest

public void onRequest(PeerMessage request)
Called when a request has been received and is ready to be processed.
Specified by:
onRequest in interface MessageListener
Parameters:
request - Description of Parameter

onMessage

public void onMessage(PeerMessage message)
Called when a message has been received and is ready to be processed.
Specified by:
onMessage in interface MessageListener
Parameters:
message - Description of Parameter

onResponse

public void onResponse(ResponseMarker responseMarker,
                       PeerMessage reply)
Called when a response has been received and is ready to be processed.
Specified by:
onResponse in interface MessageListener
Parameters:
responseMarker - Description of Parameter
reply - Description of Parameter

onTimeout

public void onTimeout(ResponseMarker responseMarker)
Called when a request timed out before the response was received.
Specified by:
onTimeout in interface MessageListener
Parameters:
responseMarker - Description of Parameter

tearDown

protected void tearDown()
The teardown method for JUnit
Overrides:
tearDown in class junit.framework.TestCase

main

public static void main(java.lang.String[] args)
Description of the Method
Parameters:
args - Description of Parameter


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.