Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.miamm.soapmmil
Class MIAMMServiceEngineTest  view MIAMMServiceEngineTest download MIAMMServiceEngineTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.miamm.soapmmil.SoapmmilTestCase
              extended byorg.miamm.soapmmil.MIAMMServiceEngineTest
All Implemented Interfaces:
SoapMMILConstants, junit.framework.Test

public class MIAMMServiceEngineTest
extends SoapmmilTestCase
implements SoapMMILConstants

Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for informations about the tool, the licence and the authors.


Field Summary
(package private)  org.miamm.soapmmil.agents.NullMIAMMClient _client
           
(package private) static org.apache.log4j.Logger _logger
           
(package private)  org.miamm.soapmmil.agents.NullMIAMMService _service
           
 
Fields inherited from class org.miamm.soapmmil.SoapmmilTestCase
_server, _serverStarted, _wakeUp, DELAY, MINI_DELAY, TEST_PORT, TEST_ROOT
 
Fields inherited from class junit.framework.TestCase
 
Fields inherited from interface org.miamm.soapmmil.SoapMMILConstants
ELEMENT_MISOH_BLOCK, LOG4J_PROPERTY, misohDescriptor, NAMESPACE_PREFIX_MIAMM, NAMESPACE_URI_MIAMM, PROPERTY_MIAMM_SMART_RECEIVER, PROPERTY_MIAMM_URLFILE
 
Constructor Summary
MIAMMServiceEngineTest(java.lang.String name)
           
 
Method Summary
 SoapmmilMessage createEmptyMessage()
           
 SoapmmilMessage createEmptyMessage(org.miamm.castor.headerblock.types.MsgContentType type)
           
 SoapmmilMessage createFalseResponse(java.lang.String msgRef)
          Creates a dummy outgoing MiammSoapHeaderBlock with a default MsgContentType and which references the message indicated by the MiammSoapHeaderBlock argument
 MIAMMServiceEngine createInstance()
           
static void main(java.lang.String[] args)
           
 void sendAwait1Trigger()
           
 void sendMessage(org.miamm.castor.headerblock.types.MsgContentType msgType, java.io.Reader contents)
           
 void sendMessage(java.io.Reader contents)
           
 void sendMessage(SoapmmilMessage message)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void shortCircuitMessage(SoapmmilMessage message)
          Directly invoke the receiveMessage of a service without actually firing the message, per se
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testAcceptEventType()
           
 void testAllowEventType()
           
 void testAwaitResponse()
           
 void testCreateMessage()
           
 void testCreateResponse()
           
 void testDisallowEventType()
           
 void testFireMessage()
           
 void testGetServiceName()
           
 void testIsAwaiting()
           
 void testReceiveBySAAJ()
           
 void testReceiveMessage()
           
 void testRejectEventType()
           
 void testServiceControlMessages()
          This test is a test on receiveMessage, but here we concentrate on start/stop/restart
 void testSetActive()
           
 void testSetAwaitable()
           
 void testSetRefuseCalls()
           
 void testVault()
          JUnitDoclet moves marker to this method, if there is not match for them in the regenerated code and if the marker is not empty.
 void testXMLWellFormednessChecking()
           
 
Methods inherited from class org.miamm.soapmmil.SoapmmilTestCase
doTestDeploy, getBigMessage, getEmptyMessage, snooze, snoozeReset, startServer, stopServer, wakeUp
 
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

_logger

static org.apache.log4j.Logger _logger

_client

org.miamm.soapmmil.agents.NullMIAMMClient _client

_service

org.miamm.soapmmil.agents.NullMIAMMService _service
Constructor Detail

MIAMMServiceEngineTest

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

shortCircuitMessage

public void shortCircuitMessage(SoapmmilMessage message)
                         throws java.lang.Exception
Directly invoke the receiveMessage of a service without actually firing the message, per se


sendMessage

public void sendMessage(java.io.Reader contents)
                 throws java.lang.Exception

sendMessage

public void sendMessage(org.miamm.castor.headerblock.types.MsgContentType msgType,
                        java.io.Reader contents)
                 throws java.lang.Exception

createEmptyMessage

public SoapmmilMessage createEmptyMessage()
                                   throws java.lang.Exception

createEmptyMessage

public SoapmmilMessage createEmptyMessage(org.miamm.castor.headerblock.types.MsgContentType type)
                                   throws java.lang.Exception

sendMessage

public void sendMessage(SoapmmilMessage message)
                 throws java.lang.Exception

createFalseResponse

public SoapmmilMessage createFalseResponse(java.lang.String msgRef)
                                    throws java.lang.Exception
Creates a dummy outgoing MiammSoapHeaderBlock with a default MsgContentType and which references the message indicated by the MiammSoapHeaderBlock argument


testServiceControlMessages

public void testServiceControlMessages()
                                throws java.lang.Exception
This test is a test on receiveMessage, but here we concentrate on start/stop/restart


testXMLWellFormednessChecking

public void testXMLWellFormednessChecking()
                                   throws java.lang.Exception

sendAwait1Trigger

public void sendAwait1Trigger()

createInstance

public MIAMMServiceEngine createInstance()
                                  throws java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


testAllowEventType

public void testAllowEventType()
                        throws java.lang.Exception

testDisallowEventType

public void testDisallowEventType()
                           throws java.lang.Exception

testAcceptEventType

public void testAcceptEventType()
                         throws java.lang.Exception

testRejectEventType

public void testRejectEventType()
                         throws java.lang.Exception

testSetRefuseCalls

public void testSetRefuseCalls()
                        throws java.lang.Exception

testSetActive

public void testSetActive()
                   throws java.lang.Exception

testFireMessage

public void testFireMessage()
                     throws java.lang.Exception

testCreateMessage

public void testCreateMessage()
                       throws java.lang.Exception

testCreateResponse

public void testCreateResponse()
                        throws java.lang.Exception

testReceiveBySAAJ

public void testReceiveBySAAJ()
                       throws java.lang.Exception

testReceiveMessage

public void testReceiveMessage()
                        throws java.lang.Exception

testAwaitResponse

public void testAwaitResponse()
                       throws java.lang.Exception

testSetAwaitable

public void testSetAwaitable()
                      throws java.lang.Exception

testIsAwaiting

public void testIsAwaiting()
                    throws java.lang.Exception

testGetServiceName

public void testGetServiceName()
                        throws java.lang.Exception

testVault

public void testVault()
               throws java.lang.Exception
JUnitDoclet moves marker to this method, if there is not match for them in the regenerated code and if the marker is not empty. This way, no test gets lost when regenerating after renaming. Method testVault is supposed to be empty.


main

public static void main(java.lang.String[] args)