xmlBlaster 2.1.0 API

org.xmlBlaster.test.cluster
Class PtPTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.xmlBlaster.test.cluster.PtPTest
All Implemented Interfaces:
junit.framework.Test

public class PtPTest
extends junit.framework.TestCase

Test publishing a message from bilbo to heron.

 java -Djava.compiler= junit.textui.TestRunner -noloading org.xmlBlaster.test.cluster.PtPTest
 
NOTE: asserts() in update() methods are routed back to server and are not handled by the junit testsuite, so we check double (see code).

See Also:
Cluster requirement

Field Summary
private  java.lang.String assertInUpdateBilbo
           
private  java.lang.String assertInUpdateHeron
           
private  I_XmlBlasterAccess avalonCon
           
private  I_XmlBlasterAccess bilboCon
           
private  java.lang.String contentStr
           
private  java.lang.String domain
           
private  I_XmlBlasterAccess frodoCon
           
private  Global glob
           
private  I_XmlBlasterAccess golanCon
           
private  I_XmlBlasterAccess heronCon
           
private static java.util.logging.Logger log
           
private  java.lang.String ME
           
private  java.lang.String oid
           
private  ServerHelper serverHelper
           
private  int updateCounterBilbo
           
private  int updateCounterFrodo
           
private  int updateCounterHeron
           
 
Constructor Summary
PtPTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
          Invoke:
protected  void setUp()
          Initialize the test ...
protected  void tearDown()
          cleaning up ...
 void testPublishPtP()
          We start bilbo, frodo and heron nodes as described in requirement PtP messages are routed from ClientTo[bilbo] -> bilbo -> frodo -> heron -> ClientTo[heron] cluster publish a message to bilbo which should be routed to client XX which is logged in to heron.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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
 

Field Detail

ME

private java.lang.String ME

glob

private Global glob

log

private static java.util.logging.Logger log

serverHelper

private ServerHelper serverHelper

heronCon

private I_XmlBlasterAccess heronCon

avalonCon

private I_XmlBlasterAccess avalonCon

golanCon

private I_XmlBlasterAccess golanCon

frodoCon

private I_XmlBlasterAccess frodoCon

bilboCon

private I_XmlBlasterAccess bilboCon

updateCounterHeron

private int updateCounterHeron

updateCounterFrodo

private int updateCounterFrodo

updateCounterBilbo

private int updateCounterBilbo

oid

private java.lang.String oid

domain

private java.lang.String domain

contentStr

private java.lang.String contentStr

assertInUpdateHeron

private java.lang.String assertInUpdateHeron

assertInUpdateBilbo

private java.lang.String assertInUpdateBilbo
Constructor Detail

PtPTest

public PtPTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
Initialize the test ...

Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
cleaning up ...

Overrides:
tearDown in class junit.framework.TestCase

testPublishPtP

public void testPublishPtP()
We start bilbo, frodo and heron nodes as described in requirement PtP messages are routed from ClientTo[bilbo] -> bilbo -> frodo -> heron -> ClientTo[heron] cluster publish a message to bilbo which should be routed to client XX which is logged in to heron.


main

public static void main(java.lang.String[] args)
Invoke:
  java -Dtrace[cluster]=true -Dcall[cluster]=true -Dcall[core]=true org.xmlBlaster.test.cluster.PtPTest
  java -Djava.compiler= junit.textui.TestRunner -noloading org.xmlBlaster.test.cluster.PtPTest
 


xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.