pl.infovide.wmunit
Class WmTestCase

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
                  extended by pl.infovide.wmunit.WmTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
HttpTestCase

public class WmTestCase
extends BaseTestCase


Field Summary
protected  java.util.HashMap testData
           
protected  java.util.HashMap times
           
 
Fields inherited from class pl.infovide.wmunit.BaseTestCase
accountTestSet, contractTestSet
 
Fields inherited from class pl.infovide.wmunit.WTestCase
FOREACHSERVICE, FOREVERYTEST, lastIn, lastOut, NONE, OVERRIDEFILE, OWNFILENAME, unitConf, wsdlFile
 
Constructor Summary
WmTestCase()
           
 
Method Summary
 boolean documentPublished(java.lang.String docTypeName)
           
 java.lang.String getDefaultBroker()
           
 java.lang.String getDefaultServer()
           
 org.dom4j.Document getDocument(java.lang.String docTypeName)
           
 java.util.List getDocuments(java.lang.String docTypeName)
           
 int getNumberOfPublishedDocuments(java.lang.String docTypeName)
           
 java.util.HashMap getTestData()
           
 java.util.HashMap getTimes()
           
 org.dom4j.Document invoke(java.lang.String packageName, java.lang.String serviceName, org.dom4j.Document doc, java.lang.String serverAlias)
           
 org.dom4j.Document publish(java.lang.String serverAlias, java.lang.String docType, org.dom4j.Document doc)
           
 void setTestData(java.util.HashMap testData)
           
 void subscribe(java.lang.String docTypeName, java.lang.String serverAlias, java.lang.String brokerAlias)
           
 void unsubscribe(java.lang.String docTypeName)
           
 
Methods inherited from class pl.infovide.wmunit.BaseTestCase
assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotSame, assertTrue, assertTrue, fail, getAccountTestSet, getContractTestSet, invokeService, invokeService, invokeService, invokeService, makeDbgFile, setAccountTestSet, setContractTestSet, setWSDL
 
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

testData

protected java.util.HashMap testData

times

protected java.util.HashMap times
Constructor Detail

WmTestCase

public WmTestCase()
Method Detail

setTestData

public void setTestData(java.util.HashMap testData)

getTestData

public java.util.HashMap getTestData()

getTimes

public java.util.HashMap getTimes()

invoke

public org.dom4j.Document invoke(java.lang.String packageName,
                                 java.lang.String serviceName,
                                 org.dom4j.Document doc,
                                 java.lang.String serverAlias)
                          throws com.wm.app.b2b.client.ServiceException
Parameters:
packageName -
serviceName -
doc -
serverAlias -
Returns:
Throws:
com.wm.app.b2b.client.ServiceException

publish

public org.dom4j.Document publish(java.lang.String serverAlias,
                                  java.lang.String docType,
                                  org.dom4j.Document doc)
                           throws com.wm.app.b2b.client.ServiceException
Parameters:
serverAlias -
docType -
doc -
Returns:
Throws:
com.wm.app.b2b.client.ServiceException

subscribe

public void subscribe(java.lang.String docTypeName,
                      java.lang.String serverAlias,
                      java.lang.String brokerAlias)
Parameters:
docTypeName - - nazwa dokumentu, na ktory sie subskrybujemy
serverAlias - - alias serwera, na ktory sie subskrybujemy
brokerAlias - - alias brokera

unsubscribe

public void unsubscribe(java.lang.String docTypeName)
Parameters:
docTypeName -
serverAlias -
brokerAlias -

documentPublished

public boolean documentPublished(java.lang.String docTypeName)
Parameters:
docTypeName -
serverAlias -
brokerAlias -
Returns:

getNumberOfPublishedDocuments

public int getNumberOfPublishedDocuments(java.lang.String docTypeName)
Parameters:
docTypeName -
serverAlias -
brokerAlias -
Returns:

getDocument

public org.dom4j.Document getDocument(java.lang.String docTypeName)
Parameters:
docTypeName -
serverAlias -
brokerAlias -
Returns:

getDocuments

public java.util.List getDocuments(java.lang.String docTypeName)

getDefaultServer

public java.lang.String getDefaultServer()

getDefaultBroker

public java.lang.String getDefaultBroker()


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