Class TestOn
- java.lang.Object
-
- patterntesting.runtime.junit.internal.TestOn
-
public final class TestOn extends java.lang.Object
This is a local helper class for the RunTestOn and SkipTestOn annotation. So most of the methods are package default because there is no need to access from somewhere else.- Since:
- 1.0 (23.04.2010)
- Author:
- oliver
-
-
Constructor Summary
Constructors Constructor Description TestOn()
Instantiates a new object with the default environment.TestOn(Environment env)
Instantiates a new object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getReason()
Gets the reason.boolean
hasReason()
Checks for reason.boolean
isValueGiven()
Checks if is value given.boolean
matches()
If one of the attributes matches true will returned.void
setDays(int[] days)
Sets the days.void
setHosts(java.lang.String[] hosts)
Sets the hosts.void
setJavaVendors(java.lang.String[] javaVendors)
Sets the java vendors.void
setJavaVersions(java.lang.String[] javaVersions)
Sets the java versions.void
setOsArchs(java.lang.String[] osArchs)
Sets the os archs.void
setOsNames(java.lang.String[] osNames)
Sets the os names.void
setOsNames(java.lang.String[] fallback, java.lang.String[] os)
Sets the os names.void
setOsVersions(java.lang.String[] osVersions)
Sets the os versions.void
setReason(java.lang.String reason)
Sets the reason.void
setSystemProps(java.lang.String[] systemProps)
Sets the system props.void
setTimes(java.lang.String[] times)
Sets the times.void
setUsers(java.lang.String[] users)
Sets the users.
-
-
-
Constructor Detail
-
TestOn
public TestOn()
Instantiates a new object with the default environment.
-
TestOn
public TestOn(Environment env)
Instantiates a new object. For test you instantiate it now with your "own" environment.- Parameters:
env
- the env
-
-
Method Detail
-
setOsNames
public void setOsNames(java.lang.String[] osNames)
Sets the os names.- Parameters:
osNames
- the osNames to set
-
setOsNames
public void setOsNames(java.lang.String[] fallback, java.lang.String[] os)
Sets the os names.- Parameters:
fallback
- the values for fallback if parameter os is emptyos
- the osNames to set
-
setOsArchs
public void setOsArchs(java.lang.String[] osArchs)
Sets the os archs.- Parameters:
osArchs
- the osArchs to set
-
setOsVersions
public void setOsVersions(java.lang.String[] osVersions)
Sets the os versions.- Parameters:
osVersions
- the osVersions to set
-
setHosts
public void setHosts(java.lang.String[] hosts)
Sets the hosts.- Parameters:
hosts
- the hosts to set
-
setJavaVersions
public void setJavaVersions(java.lang.String[] javaVersions)
Sets the java versions.- Parameters:
javaVersions
- the javaVersions to set
-
setJavaVendors
public void setJavaVendors(java.lang.String[] javaVendors)
Sets the java vendors.- Parameters:
javaVendors
- the javaVendors to set
-
setUsers
public void setUsers(java.lang.String[] users)
Sets the users.- Parameters:
users
- the users to set
-
setSystemProps
public void setSystemProps(java.lang.String[] systemProps)
Sets the system props.- Parameters:
systemProps
- the systemProps to set
-
setDays
public void setDays(int[] days)
Sets the days.- Parameters:
days
- the days to set
-
setTimes
public void setTimes(java.lang.String[] times)
Sets the times.- Parameters:
times
- the times to set
-
setReason
public void setReason(java.lang.String reason)
Sets the reason.- Parameters:
reason
- the reason to set
-
getReason
public java.lang.String getReason()
Gets the reason.- Returns:
- the reason
-
hasReason
public boolean hasReason()
Checks for reason.- Returns:
- true, if reason is set
-
matches
public boolean matches()
If one of the attributes matches true will returned.- Returns:
- true, if successful
-
isValueGiven
public boolean isValueGiven()
Checks if is value given.- Returns:
- true, if is value given
-
-