org.kuali.rice.test.remote
Class RemoteTestHarness

java.lang.Object
  extended by org.kuali.rice.test.remote.RemoteTestHarness

public class RemoteTestHarness
extends Object

Harness used to hold a reference to an endpoint that is published to support remote tests. Tests using this harness should pass in a @WebService annotated interface class and an object of an implementing class of that interface to the publishEndpointAndReturnProxy method in @Before or setUp methods used in tests.

After each test is run, stopEndPoint should be called in @After or tearDown methods in order to unpublish the endpoint.


Field Summary
private  Endpoint endpoint
           
private static String ENDPOINT_PATH
           
private static String ENDPOINT_ROOT
           
private static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
RemoteTestHarness()
           
 
Method Summary
private  String getAvailableEndpointUrl()
           
<T> T
publishEndpointAndReturnProxy(Class<T> jaxWsAnnotatedInterface, T serviceImplementation)
           
 void stopEndpoint()
          Stops and makes an internal endpoint unpublished if it was previously published.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG

ENDPOINT_ROOT

private static String ENDPOINT_ROOT

ENDPOINT_PATH

private static String ENDPOINT_PATH

endpoint

private Endpoint endpoint
Constructor Detail

RemoteTestHarness

public RemoteTestHarness()
Method Detail

publishEndpointAndReturnProxy

public <T> T publishEndpointAndReturnProxy(Class<T> jaxWsAnnotatedInterface,
                                           T serviceImplementation)

stopEndpoint

public void stopEndpoint()
Stops and makes an internal endpoint unpublished if it was previously published. Otherwise, this method is a no-op.


getAvailableEndpointUrl

private String getAvailableEndpointUrl()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.