ch.elca.el4j.tests.core.implicitcontextpassing
Class ImplicitContextPassingIntegrationTest

java.lang.Object
  extended by ch.elca.el4j.tests.core.implicitcontextpassing.ImplicitContextPassingIntegrationTest

public class ImplicitContextPassingIntegrationTest
extends Object

This integration test checks correctness of the Implicit context passer.

Author:
David Stefan (DST)
File-location:
ImplicitContextPassingIntegrationTest
Last check-in date:
2009-08-04 14:35:53 +0200 (Di, 04. Aug 2009) by swismer for revision 3875

Field Summary
private static String[] CONFIG_LOCATION
          Location where config files can be found.
private  ApplicationContext m_appContext
          ApplicationContext object.
private  Calculator m_calc
          Inteface of service provided by server.
private  ImplicitContextPassTester m_clientPasserA
          Implicit context passer for client.
private  ImplicitContextPassingRegistry m_clientRegistry
          ImplicitContextPassingRegistry for client.
private  ImplicitContextPassTester m_serverPasserA
          Implicit context passer for server.
private  ImplicitContextPassingRegistry m_serverRegistry
          ImplicitContextPassingRegistry for server.
 
Constructor Summary
ImplicitContextPassingIntegrationTest()
           
 
Method Summary
 void setUp()
          
 void testClientContextPasserIsNull()
          This test simulates registration with contextPasser of client beeing null.
 void testOnePasserDoubleData()
          This tests simulates context passing with one passer on each side, passing an double.
 void testOnePasserEmptyListData()
          This tests simulates context passing with one passer on each side, passing an empty list.
 void testOnePasserFloatData()
          This tests simulates context passing with one passer on each side, passing a float.
 void testOnePasserIntegerData()
          This tests simulates context passing with one passer on each side, passing an integer.
 void testOnePasserListData()
          This tests simulates context passing with one passer on each side, passing a list.
 void testRegistryIsNull()
          This test simulates assignment to passer of a registry beeing null .
 void testServerContextPasserIsNull()
          This test simulates registration with contextPasser of server beeing null.
 void testServiceNotCalled()
          This test checks if context is NOT passed if service method isn't called.
 void testTwoAndOnePasser()
          This tests simulates context passing with two passers on client side and one on server side, passing a double and a list.
 void testTwoPasser()
          This tests simulates context passing with two passers on each side, passing a double and a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_LOCATION

private static final String[] CONFIG_LOCATION
Location where config files can be found. The order of the config files is crucial. If the client is started before the server, it obviously won't work.


m_appContext

private ApplicationContext m_appContext
ApplicationContext object.


m_clientRegistry

private ImplicitContextPassingRegistry m_clientRegistry
ImplicitContextPassingRegistry for client.


m_serverRegistry

private ImplicitContextPassingRegistry m_serverRegistry
ImplicitContextPassingRegistry for server.


m_clientPasserA

private ImplicitContextPassTester m_clientPasserA
Implicit context passer for client.


m_serverPasserA

private ImplicitContextPassTester m_serverPasserA
Implicit context passer for server.


m_calc

private Calculator m_calc
Inteface of service provided by server.

Constructor Detail

ImplicitContextPassingIntegrationTest

public ImplicitContextPassingIntegrationTest()
Method Detail

setUp

public void setUp()


testClientContextPasserIsNull

public void testClientContextPasserIsNull()
This test simulates registration with contextPasser of client beeing null.


testServerContextPasserIsNull

public void testServerContextPasserIsNull()
This test simulates registration with contextPasser of server beeing null.


testRegistryIsNull

public void testRegistryIsNull()
This test simulates assignment to passer of a registry beeing null .


testOnePasserIntegerData

public void testOnePasserIntegerData()
This tests simulates context passing with one passer on each side, passing an integer.


testOnePasserFloatData

public void testOnePasserFloatData()
This tests simulates context passing with one passer on each side, passing a float.


testOnePasserDoubleData

public void testOnePasserDoubleData()
This tests simulates context passing with one passer on each side, passing an double.


testOnePasserListData

public void testOnePasserListData()
This tests simulates context passing with one passer on each side, passing a list.


testOnePasserEmptyListData

public void testOnePasserEmptyListData()
This tests simulates context passing with one passer on each side, passing an empty list.


testServiceNotCalled

public void testServiceNotCalled()
This test checks if context is NOT passed if service method isn't called.


testTwoPasser

public void testTwoPasser()
This tests simulates context passing with two passers on each side, passing a double and a list.


testTwoAndOnePasser

public void testTwoAndOnePasser()
This tests simulates context passing with two passers on client side and one on server side, passing a double and a list.



Copyright © 2005-2011 ELCA. All Rights Reserved.