public final class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isFailure(org.tap4j.model.TestResult testResult,
Boolean todoIsFailure) |
static boolean |
isSkipped(org.tap4j.model.TestResult testResult) |
static boolean |
isTodo(org.tap4j.model.TestResult testResult) |
static String |
normalizeFolders(String workspace,
String relative)
Normalizes a folder path in relation to the workspace path.
|
public static String normalizeFolders(String workspace, String relative)
A folder that is subdirectory of workspace will return only the difference. It means that if the workspace is /home/workspace and the folder we want to normalize is /home/workspace/job-1/test.txt, then the return will be job-1/test.txt.
workspace - workspace pathrelative - relative pathpublic static boolean isSkipped(org.tap4j.model.TestResult testResult)
public static boolean isTodo(org.tap4j.model.TestResult testResult)
public static boolean isFailure(org.tap4j.model.TestResult testResult,
Boolean todoIsFailure)
Copyright © 2011–2019 Jenkins. All rights reserved.