public class ITUtility extends Object
Constructor and Description |
---|
ITUtility() |
Modifier and Type | Method and Description |
---|---|
static int |
extractSwid(String s) |
static String |
extractValueFrom(String listOutput,
String key) |
static String |
getLocalhost() |
static File |
retrieveCompiledSeqwareScript()
Grab the location of the compiled seqware script.
|
protected static File |
retrieveFullAssembledJar()
This is the hackiest hack in the universe of hacks for getting the final assembly jar so I can run tests.
|
static String |
runArbitraryCommand(String line,
int expectedReturnValue,
File dir) |
static String |
runArbitraryCommand(String line,
int expectedReturnValue,
File dir,
Map environment)
Run an arbitrary command and check it against an expected return value
|
static String |
runSeqwareCLI(String parameters,
int expectedReturnValue,
File workingDir) |
static String |
runSeqwareCLI(String parameters,
int expectedReturnValue,
File workingDir,
Map environment)
Run the new SeqWare simplified command-line script given a particular set of parameters and check for an expected return value.
|
static String |
runSeqWareJar(String parameters,
int expectedReturnValue,
File workingDir)
Run the SeqWare jar given a particular set of parameters and check for an expected return value.
|
public static String runSeqwareCLI(String parameters, int expectedReturnValue, File workingDir) throws IOException
IOException
public static String runSeqwareCLI(String parameters, int expectedReturnValue, File workingDir, Map environment) throws IOException
parameters
- expectedReturnValue
- this will be checked via a JUnit assertworkingDir
- environment
- IOException
public static String runSeqWareJar(String parameters, int expectedReturnValue, File workingDir) throws IOException
parameters
- expectedReturnValue
- workingDir
- null, if caller does not care about the working directoryIOException
protected static File retrieveFullAssembledJar()
public static String runArbitraryCommand(String line, int expectedReturnValue, File dir) throws IOException
IOException
public static String runArbitraryCommand(String line, int expectedReturnValue, File dir, Map environment) throws IOException
line
- expectedReturnValue
- dir
- working directory, can be null if you don't want to change directoriesenvironment
- IOException
public static int extractSwid(String s)
public static String getLocalhost()
public static File retrieveCompiledSeqwareScript()
Copyright © 2015 SeqWare. All rights reserved.