de.fzj.unicore.wsrflite.xfire
Class LocalTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by de.fzj.unicore.wsrflite.xfire.LocalTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
JettyTestCase

public abstract class LocalTestCase
extends junit.framework.TestCase

use for testing using local transport, e.g. "xfire:local//myservice"

Author:
schuller

Field Summary
protected static JSR181ServiceFactory factory
           
protected static boolean haveInit
           
protected static org.codehaus.xfire.DefaultXFire xfire
           
 
Constructor Summary
LocalTestCase()
           
 
Method Summary
protected abstract  void addServices()
          for example:
XFireKernel.exposeAsService("test",IExampleService.class,ExampleService.class,factory,false);
protected  String getBaseurl()
           
protected  Object makeProxy(org.codehaus.xfire.service.Service s)
          make proxy for the given service
protected  org.w3.x2003.x05.soapEnvelope.EnvelopeDocument makeSoapEnvelope(org.apache.xmlbeans.XmlObject bodyContent)
           
protected  org.w3.x2003.x05.soapEnvelope.EnvelopeDocument makeSoapEnvFromReply(org.jdom.Document d)
           
protected  org.apache.xmlbeans.XmlObject makeXmlObject(org.jdom.Document d)
           
protected  void setUp()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

factory

protected static JSR181ServiceFactory factory

xfire

protected static org.codehaus.xfire.DefaultXFire xfire

haveInit

protected static boolean haveInit
Constructor Detail

LocalTestCase

public LocalTestCase()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

addServices

protected abstract void addServices()
                             throws Exception
for example:
XFireKernel.exposeAsService("test",IExampleService.class,ExampleService.class,factory,false);

Throws:
Exception

getBaseurl

protected String getBaseurl()

makeProxy

protected Object makeProxy(org.codehaus.xfire.service.Service s)
                    throws Exception
make proxy for the given service

Parameters:
s -
Returns:
proxy
Throws:
Exception

makeSoapEnvelope

protected org.w3.x2003.x05.soapEnvelope.EnvelopeDocument makeSoapEnvelope(org.apache.xmlbeans.XmlObject bodyContent)

makeXmlObject

protected org.apache.xmlbeans.XmlObject makeXmlObject(org.jdom.Document d)
                                               throws Exception
Throws:
Exception

makeSoapEnvFromReply

protected org.w3.x2003.x05.soapEnvelope.EnvelopeDocument makeSoapEnvFromReply(org.jdom.Document d)
                                                                       throws Exception
Throws:
Exception


Copyright © 2010. All Rights Reserved.