org.apache.maven.project
Class UnitTest

java.lang.Object
  extended byorg.apache.maven.project.BaseObject
      extended byorg.apache.maven.project.UnitTest

public class UnitTest
extends BaseObject

Collects unit-test include and exclude patterns and resources.

Author:
bob mcwhirter, Martin van den Bemt, James Taylor, Brett Porter

Field Summary
 
Fields inherited from class org.apache.maven.project.BaseObject
id
 
Constructor Summary
UnitTest()
           
 
Method Summary
 void addExclude(java.lang.String pattern)
          Add an exclude pattern.
 void addInclude(java.lang.String pattern)
          Add an include pattern.
 void addResource(Resource resource)
          Add a test resource.
 java.util.List getExcludes()
          Retrieve a list of exclude patterns.
 java.util.List getIncludes()
          Retrieve a list of include patterns.
 java.util.List getResources()
          Gets the resources.
 void setResources(java.util.List resources)
          Set the resources.
 
Methods inherited from class org.apache.maven.project.BaseObject
addProperty, equals, getId, getName, getProperties, getProperty, hashCode, isValid, resolvedProperties, setId, setName, setProperties, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnitTest

public UnitTest()
Method Detail

addInclude

public void addInclude(java.lang.String pattern)
Add an include pattern.

Parameters:
pattern - Add an include pattern.

addExclude

public void addExclude(java.lang.String pattern)
Add an exclude pattern.

Parameters:
pattern - Add an exlude pattern.

getIncludes

public java.util.List getIncludes()
Retrieve a list of include patterns.

Returns:
List of include patterns.

getExcludes

public java.util.List getExcludes()
Retrieve a list of exclude patterns.

Returns:
List of exclude patterns.

addResource

public void addResource(Resource resource)
Add a test resource.

Parameters:
resource - Add a test resource.

setResources

public void setResources(java.util.List resources)
Set the resources.

Parameters:
resources - Test resources.

getResources

public java.util.List getResources()
Gets the resources.

Returns:
Resources patterns for including or excluding arbitrary resources.


Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.