pl.infovide.wmunit
Class BaseTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by pl.infovide.wmunit.WTestCase
              extended by pl.infovide.wmunit.BaseTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
WmTestCase

public abstract class BaseTestCase
extends WTestCase


Field Summary
protected  java.util.HashMap accountTestSet
           
protected  java.util.HashMap contractTestSet
           
 
Fields inherited from class pl.infovide.wmunit.WTestCase
FOREACHSERVICE, FOREVERYTEST, lastIn, lastOut, NONE, OVERRIDEFILE, OWNFILENAME, unitConf, wsdlFile
 
Constructor Summary
BaseTestCase()
           
 
Method Summary
static void assertEquals(int expected, int actual)
           
static void assertEquals(java.lang.String text, int arg1, int arg2)
           
static void assertEquals(java.lang.String expected, java.lang.String actual)
           
static void assertFalse(boolean expr)
           
static void assertFalse(java.lang.String text, boolean expr)
           
static void assertNotNull(java.lang.Object object)
           
static void assertNotSame(java.lang.Object expected, java.lang.Object actual)
           
static void assertTrue(boolean expr)
           
static void assertTrue(java.lang.String text, boolean expr)
           
static void fail(java.lang.String text)
           
 java.util.HashMap getAccountTestSet()
           
 java.util.HashMap getContractTestSet()
           
 org.dom4j.Document invokeService()
          method invoking proper service from Webmethods if lastIn is null makesData first
 org.dom4j.Document invokeService(org.dom4j.Document inDoc)
          method invoking proper service from Webmethods if lastIn is null makesData first
 org.dom4j.Document invokeService(org.dom4j.Document inDoc, com.wm.app.b2b.client.Context context)
          method invoking proper service from Webmethods if lastIn is null makesData first
 org.dom4j.Document invokeService(org.dom4j.Document inDoc, java.lang.String wsdlPath)
          method invoking service from Webmethods
static void makeDbgFile(org.dom4j.Document inputDoc, java.lang.String packagePath, java.lang.String servicePath)
           
 void setAccountTestSet(java.util.HashMap accountTestSet)
           
 void setContractTestSet(java.util.HashMap contractTestSet)
           
 void setWSDL(java.lang.String wsdlPath)
           
 
Methods inherited from class pl.infovide.wmunit.WTestCase
assertNotEquals, getConnectedContext, getConnectedContext, getConnectedContext, getIn, getOut, getPackageName, getServiceName, invokeHTTP, invokeService, invokeService, invokeService, invokeServiceHTTPPost, invokeServiceWithMeasures, invokeServiceWithoutInput, isPath, makeData, makeDevDbgFile, makeDevDbgFile, makeDevDbgFile, makeDocument, makeDocumentFromText, prettyPrint, print, publish, publish, publishDocument, runMethod, runTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, setUp, 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, assertNotNull, assertNotSame, assertNull, assertNull, assertSame, assertSame, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contractTestSet

protected java.util.HashMap contractTestSet

accountTestSet

protected java.util.HashMap accountTestSet
Constructor Detail

BaseTestCase

public BaseTestCase()
Method Detail

setContractTestSet

public void setContractTestSet(java.util.HashMap contractTestSet)

getContractTestSet

public java.util.HashMap getContractTestSet()

setAccountTestSet

public void setAccountTestSet(java.util.HashMap accountTestSet)

getAccountTestSet

public java.util.HashMap getAccountTestSet()

invokeService

public org.dom4j.Document invokeService(org.dom4j.Document inDoc)
                                 throws com.wm.app.b2b.client.ServiceException
Description copied from class: WTestCase
method invoking proper service from Webmethods if lastIn is null makesData first

Overrides:
invokeService in class WTestCase
Throws:
com.wm.app.b2b.client.ServiceException

invokeService

public org.dom4j.Document invokeService(org.dom4j.Document inDoc,
                                        java.lang.String wsdlPath)
                                 throws com.wm.app.b2b.client.ServiceException
Description copied from class: WTestCase
method invoking service from Webmethods

Overrides:
invokeService in class WTestCase
Throws:
com.wm.app.b2b.client.ServiceException

invokeService

public org.dom4j.Document invokeService(org.dom4j.Document inDoc,
                                        com.wm.app.b2b.client.Context context)
                                 throws com.wm.app.b2b.client.ServiceException
Description copied from class: WTestCase
method invoking proper service from Webmethods if lastIn is null makesData first

Overrides:
invokeService in class WTestCase
Returns:
Throws:
com.wm.app.b2b.client.ServiceException

invokeService

public org.dom4j.Document invokeService()
                                 throws com.wm.app.b2b.client.ServiceException
Description copied from class: WTestCase
method invoking proper service from Webmethods if lastIn is null makesData first

Overrides:
invokeService in class WTestCase
Throws:
com.wm.app.b2b.client.ServiceException

assertEquals

public static void assertEquals(java.lang.String expected,
                                java.lang.String actual)

assertEquals

public static void assertEquals(java.lang.String text,
                                int arg1,
                                int arg2)

assertNotNull

public static void assertNotNull(java.lang.Object object)

assertEquals

public static void assertEquals(int expected,
                                int actual)

assertNotSame

public static void assertNotSame(java.lang.Object expected,
                                 java.lang.Object actual)

assertTrue

public static void assertTrue(boolean expr)

assertTrue

public static void assertTrue(java.lang.String text,
                              boolean expr)

assertFalse

public static void assertFalse(boolean expr)

assertFalse

public static void assertFalse(java.lang.String text,
                               boolean expr)

fail

public static void fail(java.lang.String text)

setWSDL

public void setWSDL(java.lang.String wsdlPath)
             throws java.io.FileNotFoundException,
                    org.dom4j.DocumentException
Overrides:
setWSDL in class WTestCase
Throws:
java.io.FileNotFoundException
org.dom4j.DocumentException

makeDbgFile

public static void makeDbgFile(org.dom4j.Document inputDoc,
                               java.lang.String packagePath,
                               java.lang.String servicePath)


Copyright © 2007 Infovide-Matrix S.A.. All Rights Reserved.