yu.ac.bg.etf.javaqx.nunit
Class TestEnvironment

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.nunit.TestEnvironment

public final class TestEnvironment
extends java.lang.Object

Test Environment.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Method Summary
static java.lang.Process execProcess(java.lang.String command, java.io.File dir)
          Executes the specified command.
static java.lang.String getClassPath()
          Returns current class path.
static java.lang.String getJavaCommand()
          Returns java command (command that starts JVM).
static java.lang.String getJavaHome()
          Returns java home path.
static java.lang.String getLaunchCommand()
          Returns JVM launch command.
static java.lang.String getLibraryPath()
          Returns library class path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLaunchCommand

public static java.lang.String getLaunchCommand()
Returns JVM launch command.

Returns:
JVM launch command

getJavaCommand

public static java.lang.String getJavaCommand()
Returns java command (command that starts JVM).

Returns:
java command

getJavaHome

public static java.lang.String getJavaHome()
Returns java home path.

Returns:
java home path

getClassPath

public static java.lang.String getClassPath()
Returns current class path.

Returns:
current class path

getLibraryPath

public static java.lang.String getLibraryPath()
Returns library class path.

Returns:
library class path

execProcess

public static java.lang.Process execProcess(java.lang.String command,
                                            java.io.File dir)
                                     throws java.io.IOException
Executes the specified command.

Parameters:
command - the command
dir - the working directory
Returns:
started process
Throws:
java.io.IOException - on an I/O error


Copyright © 2007 ETF and contributors. All Rights Reserved.