xmlBlaster 2.2.0 API

org.xmlBlaster.test.qos
Class TestEmbeddedXmlBlaster

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

public class TestEmbeddedXmlBlaster
extends junit.framework.TestCase

This client tests to start an xmlBlaster server in a thread and stop it again.

Invoke examples:

    java junit.textui.TestRunner org.xmlBlaster.test.qos.TestEmbeddedXmlBlaster
    java junit.swingui.TestRunner org.xmlBlaster.test.qos.TestEmbeddedXmlBlaster
 

See Also:
engine.runlevel, EmbeddedXmlBlaster

Field Summary
private  I_XmlBlasterAccess con
           
private  Global glob
           
private static java.util.logging.Logger log
           
private static java.lang.String ME
           
private  java.lang.String name
           
private  java.lang.String passwd
           
private  int serverPort
           
private  EmbeddedXmlBlaster serverThread
           
 
Constructor Summary
TestEmbeddedXmlBlaster(Global glob, java.lang.String testName)
           
TestEmbeddedXmlBlaster(java.lang.String testName)
          Constructs the TestEmbeddedXmlBlaster object.
 
Method Summary
static void main(java.lang.String[] args)
          Deprecated. Use the TestRunner from the testsuite to run it:

   java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.qos.TestEmbeddedXmlBlaster
protected  void setUp()
          Sets up the fixture.
protected  void tearDown()
          Tears down the fixture.
 void testThreadFree()
          RMI fails as we don't know how to kill the registry JacORB 1.3.30 can't reinitialize the orb if once shutdown (so we leave it alive) hopefully fixed with JacORB 1.4.2 XmlRpc has one thread open???
 
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 static final java.lang.String ME
See Also:
Constant Field Values

glob

private final Global glob

log

private static java.util.logging.Logger log

con

private I_XmlBlasterAccess con

name

private java.lang.String name

passwd

private java.lang.String passwd

serverThread

private EmbeddedXmlBlaster serverThread

serverPort

private int serverPort
Constructor Detail

TestEmbeddedXmlBlaster

public TestEmbeddedXmlBlaster(java.lang.String testName)
Constructs the TestEmbeddedXmlBlaster object.

Parameters:
testName - The name used in the test suite

TestEmbeddedXmlBlaster

public TestEmbeddedXmlBlaster(Global glob,
                              java.lang.String testName)
Method Detail

setUp

protected void setUp()
Sets up the fixture.

Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Tears down the fixture.

Overrides:
tearDown in class junit.framework.TestCase

testThreadFree

public void testThreadFree()
RMI fails as we don't know how to kill the registry JacORB 1.3.30 can't reinitialize the orb if once shutdown (so we leave it alive) hopefully fixed with JacORB 1.4.2 XmlRpc has one thread open???
 BEFORE:

 Thread Group: system  Max Priority: 10
     Thread: Signal dispatcher  Priority: 5 Daemon
     Thread: Reference Handler  Priority: 10 Daemon
     Thread: Finalizer  Priority: 8 Daemon
     Thread Group: main  Max Priority: 10
         Thread: main  Priority: 5

 AFTER:

 Thread Group: system  Max Priority: 10
     Thread: Signal dispatcher  Priority: 5 Daemon
     Thread: Reference Handler  Priority: 10 Daemon
     Thread: Finalizer  Priority: 8 Daemon
     Thread: RMI TCP Accept-1  Priority: 5 Daemon
     Thread: RMI TCP Accept-2  Priority: 5 Daemon
     Thread: GC Daemon  Priority: 2 Daemon
     Thread: RMI RenewClean-[192.168.1.3:33493]  Priority: 5 Daemon
     Thread: RMI LeaseChecker  Priority: 5 Daemon
     Thread: RMI ConnectionExpiration-[192.168.1.3:33493]  Priority: 5 Daemon
     Thread: RMI ConnectionExpiration-[kinder:7613]  Priority: 5 Daemon
     Thread Group: main  Max Priority: 10
         Thread: XmlBlaster MainThread  Priority: 5
         Thread: Thread-11  Priority: 10 Daemon
         Thread: JacORB Listener Thread on port 33489  Priority: 5 Daemon
         Thread: Thread-14  Priority: 10 Daemon
         Thread: Thread-16  Priority: 5 Daemon
         Thread Group: XMLRPC Runner  Max Priority: 10
     Thread Group: RMI Runtime  Max Priority: 10
         Thread: TCP Connection(3)-192.168.1.3  Priority: 5 Daemon
         Thread: TCP Connection(4)-192.168.1.3  Priority: 5 Daemon
 


main

public static void main(java.lang.String[] args)
Deprecated. Use the TestRunner from the testsuite to run it:

   java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.qos.TestEmbeddedXmlBlaster

Invoke: java org.xmlBlaster.test.qos.TestEmbeddedXmlBlaster


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.