net.sf.ant4eclipse.model.launch
Class JUnitLaunchConfiguration

java.lang.Object
  extended by net.sf.ant4eclipse.model.launch.AbstractLaunchConfiguration
      extended by net.sf.ant4eclipse.model.launch.JUnitLaunchConfiguration

public class JUnitLaunchConfiguration
extends AbstractLaunchConfiguration

JUnitLaunchConfiguration represents a launch configuration for JUnit-Tests


Constructor Summary
JUnitLaunchConfiguration(java.io.File launchFile, java.lang.String projectName, java.lang.String testClass, java.lang.String testName, java.lang.String container, java.lang.String programArguments, java.lang.String vmArguments, RuntimeClasspathEntry[] classpathEntries, java.lang.String dir)
          Creates a new instance of type JUnitLaunchConfiguration
 
Method Summary
 java.lang.String getContainer()
          Returns the container holding the tests.
 java.lang.String getTestClass()
          Returns the type of the test class.
 java.lang.String getTestName()
          Returns the name of the test.
 boolean hasContainer()
           
 boolean hasTestClass()
           
 boolean hasTestName()
           
 java.lang.String toString()
          
 
Methods inherited from class net.sf.ant4eclipse.model.launch.AbstractLaunchConfiguration
getClasspathEntries, getLaunchFile, getProgramArguments, getProjectName, getVmArguments, getWorkingDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JUnitLaunchConfiguration

public JUnitLaunchConfiguration(java.io.File launchFile,
                                java.lang.String projectName,
                                java.lang.String testClass,
                                java.lang.String testName,
                                java.lang.String container,
                                java.lang.String programArguments,
                                java.lang.String vmArguments,
                                RuntimeClasspathEntry[] classpathEntries,
                                java.lang.String dir)
Creates a new instance of type JUnitLaunchConfiguration

Parameters:
launchFile -
projectName -
programArguments -
vmArguments -
classpathEntries -
dir -
Method Detail

hasTestClass

public boolean hasTestClass()
Returns:
Whether this launchConfiguration has a test class

hasContainer

public boolean hasContainer()
Returns:
whether this launchConfiguration has a container

hasTestName

public boolean hasTestName()
Returns:
whether this launchconfiguration has test name (=test method)

getContainer

public java.lang.String getContainer()
Returns the container holding the tests.

Returns:
The container holding the tests.

getTestClass

public java.lang.String getTestClass()
Returns the type of the test class.

Returns:
The type of the test class.

getTestName

public java.lang.String getTestName()
Returns the name of the test.

Returns:
The name of the test.

toString

public java.lang.String toString()

Overrides:
toString in class AbstractLaunchConfiguration