Package com.sun.xml.ws.test.tool
Class WsTool
java.lang.Object
junit.framework.Assert
com.sun.xml.ws.test.tool.WsTool
public abstract class WsTool
extends junit.framework.Assert
Interface to the
wsimport or wsgen command-line tool.- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WsToolcreateWsGen(File externalWsGen, boolean dumpParameters, String extraWsToolsArgs) Determines which wsgen to use.static WsToolcreateWsImport(File externalWsImport, boolean dumpParameters, String extraWsToolsArgs) Determines which compiler to use.protected booleanprotected voiddumpWsParams(List<String> params) abstract voidInvokes wsimport with the given arguments.booleanisNoop()Returns true if the '-skip' mode is on and the tool invocation is skipped.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, failNotEquals, failNotSame, failSame, format
-
Field Details
-
NOOP
WsToolthat does nothing.This assumes that files that are supposed to be generated are already generated.
-
-
Constructor Details
-
WsTool
protected WsTool(boolean dumpParameters)
-
-
Method Details
-
invoke
Invokes wsimport with the given arguments.- Throws:
Exception- if the compilation fails. alternatively, JUnitAssertions can be used to detect error conditions.
-
isNoop
public boolean isNoop()Returns true if the '-skip' mode is on and the tool invocation is skipped. -
createWsImport
public static WsTool createWsImport(File externalWsImport, boolean dumpParameters, String extraWsToolsArgs) Determines which compiler to use.- Parameters:
externalWsImport- null to runWsToolfromWorld.tool. Otherwise this file will be the path to the script.extraWsToolsArgs-
-
createWsGen
public static WsTool createWsGen(File externalWsGen, boolean dumpParameters, String extraWsToolsArgs) Determines which wsgen to use.- Parameters:
externalWsGen- null to runWsToolfromWorld.tool. Otherwise this file will be the path to the script.extraWsToolsArgs-
-
dumpWsParams
-
dumpParams
protected boolean dumpParams()
-