patterntesting.runtime.junit.internal
Class TestOn

Package class diagram package TestOn
java.lang.Object
  extended by patterntesting.runtime.junit.internal.TestOn

public final class TestOn
extends 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
TestOn()
           
 
Method Summary
 String getReason()
          Gets the reason.
 boolean hasReason()
          Checks for reason.
 boolean matches(String[] os, String[] arch, String[] version, String[] host, String[] javaVersions, String[] javaVendors, String[] users, String[] systemProps)
          If the operating system(s) match and one of the other parameters (if they contain values) this method will return true.
 boolean matches(String[] value, String[] os, String[] arch, String[] version, String[] host, String[] javaVersions, String[] javaVendors, String[] users, String[] systemProps)
          If the operating system(s) match and one of the other parameters (if they contain values) this method will return true.
 void setOsArch(String arch)
          For testing you can set the OS architector.
 void setOsName(String name)
          For testing you can set the OS name.
 void setUserName(String name)
          For testing you can set the user name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestOn

public TestOn()
Method Detail

setOsName

public void setOsName(String name)
For testing you can set the OS name.

Parameters:
name - the new os name

setOsArch

public void setOsArch(String arch)
For testing you can set the OS architector.

Parameters:
arch - the new os architector

setUserName

public void setUserName(String name)
For testing you can set the user name.

Parameters:
name - the new user name

getReason

public 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(String[] value,
                       String[] os,
                       String[] arch,
                       String[] version,
                       String[] host,
                       String[] javaVersions,
                       String[] javaVendors,
                       String[] users,
                       String[] systemProps)
If the operating system(s) match and one of the other parameters (if they contain values) this method will return true.

Parameters:
value - same as os parameter
os - the operating system(s) which should match
arch - the architectures
version - the version(s) of the operating systems
host - the host(s)
javaVersions - the java version(s)
javaVendors - the java vendor(s)
users - the user(s)
systemProps - the system properties
Returns:
true if the parameter matches

matches

public boolean matches(String[] os,
                       String[] arch,
                       String[] version,
                       String[] host,
                       String[] javaVersions,
                       String[] javaVendors,
                       String[] users,
                       String[] systemProps)
If the operating system(s) match and one of the other parameters (if they contain values) this method will return true.

Parameters:
os - the operating system(s) which should match
arch - the architectures
version - the version(s) of the operating systems
host - the host(s)
javaVersions - the java version(s)
javaVendors - the java vendor(s)
users - the user(s)
systemProps - the system properties
Returns:
true if the parameter matches


Copyright © 2002–2014 PatternTesting Team. All rights reserved.