public final class TestLocation
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
TestLocation |
after() |
TestLocation |
after(java.lang.String listener) |
TestLocation |
before() |
TestLocation |
before(java.lang.String listener) |
static TestLocation |
getCurrent() |
java.lang.String |
getFilename() |
int |
getLineNumber() |
java.lang.String |
getTestClassName() |
java.lang.String |
getTestMethodName() |
static boolean |
isInTestCode() |
static boolean |
isRunningOnContinuousIntegrationServer()
Tests whether the currently-running JVM appears to be running inside a Continuous Integration server
such as Jenkins.
|
TestLocation |
modifier(java.lang.String modifier) |
static TestLocation |
of(java.lang.Class testClass) |
static TestLocation |
of(java.lang.Class testClass,
java.lang.reflect.Method method) |
static TestLocation |
of(java.lang.Class testClass,
java.lang.reflect.Method method,
java.lang.String filename) |
static TestLocation |
of(java.lang.Class testClass,
java.lang.reflect.Method method,
java.lang.String filename,
int lineNumber) |
static TestLocation |
of(java.lang.Class testClass,
java.lang.String filename) |
static TestLocation |
of(java.lang.Class testClass,
java.lang.String filename,
int lineNumber) |
static TestLocation |
of(com.appiancorp.process.workpoller.Coverage coverage) |
static TestLocation |
of(com.appiancorp.process.workpoller.Coverage coverage,
java.lang.String modifier) |
static TestLocation |
of(java.lang.String filename) |
static TestLocation |
of(java.lang.String filename,
int lineNumber) |
static TestLocation |
of(java.lang.String testClass,
java.lang.String method,
java.lang.String filename,
int lineNumber,
java.lang.String modifier) |
static TestLocation |
setCurrent(TestLocation testLocation)
Set the current TestLocation, returning the previous TestLocation.
|
static void |
setInTestCode(boolean flag) |
java.lang.String |
toString() |
public static TestLocation of(java.lang.Class testClass, java.lang.String filename, int lineNumber)
public static TestLocation of(java.lang.Class testClass, java.lang.String filename)
public static TestLocation of(java.lang.Class testClass)
public static TestLocation of(java.lang.Class testClass, java.lang.reflect.Method method, java.lang.String filename, int lineNumber)
public static TestLocation of(java.lang.String testClass, java.lang.String method, java.lang.String filename, int lineNumber, java.lang.String modifier)
public static TestLocation of(com.appiancorp.process.workpoller.Coverage coverage, java.lang.String modifier)
public static TestLocation of(com.appiancorp.process.workpoller.Coverage coverage)
public static TestLocation of(java.lang.Class testClass, java.lang.reflect.Method method, java.lang.String filename)
public static TestLocation of(java.lang.Class testClass, java.lang.reflect.Method method)
public static TestLocation of(java.lang.String filename, int lineNumber)
public static TestLocation of(java.lang.String filename)
public TestLocation before()
public TestLocation after()
public TestLocation before(java.lang.String listener)
public TestLocation after(java.lang.String listener)
public TestLocation modifier(java.lang.String modifier)
public static TestLocation getCurrent()
public static boolean isInTestCode()
public static void setInTestCode(boolean flag)
public static TestLocation setCurrent(TestLocation testLocation)
testLocation
- public java.lang.String getTestClassName()
public java.lang.String getTestMethodName()
public java.lang.String getFilename()
public int getLineNumber()
public static boolean isRunningOnContinuousIntegrationServer()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2023 Appian Corporation. All Rights Reserved.