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.AssertInterface to the wsimport or wsgen command-line tool.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWsTool(boolean dumpParameters)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static 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 booleandumpParams()protected voiddumpWsParams(List<String> params)abstract voidinvoke(String... args)Invokes 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
-
-
-
-
Method Detail
-
invoke
public abstract void invoke(String... args) throws Exception
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-
-
dumpParams
protected boolean dumpParams()
-
-