|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tap4j.ext.junit.JUnitYAMLishUtils
public final class JUnitYAMLishUtils
JUnit YAMLish utility class.
Field Summary | |
---|---|
static SimpleDateFormat |
ISO_8061_DATE_FORMAT
Date Format used to format a datetime in ISO-8061 for YAMLish diagnostic. |
static String |
LINE_SEPARATOR
|
Method Summary | |
---|---|
static String |
extractClassName(org.junit.runner.Description description)
Extract the class name from a given junit test description |
static String |
extractMethodName(org.junit.runner.Description description)
Get the tested method name |
static String |
extractSimpleClassName(org.junit.runner.Description description)
Extract the simple class name from a given junit test description |
static String |
getBacktrace(JUnitTestData testMethod)
Get the backtrace from a given failed JUnit test result |
static String |
getDatetime()
Get a date time string |
static String |
getError(JUnitTestData testMethod)
Get the error message from a given failed JUnit test result |
static String |
getFile(JUnitTestData testMethod)
Get the file name of the tested method |
static String |
getLine(JUnitTestData testMethod)
Get the line of the error in the exception info |
static String |
getLineNumberFromExceptionTraceLine(String exceptionTraceLine,
String substrToSearch)
Get the error line number from the exception stack trace |
static String |
getMessage(JUnitTestData testMethod)
Generate a message with the name of the tested method |
static String |
getName(JUnitTestData testMethod)
Get tested method name |
static String |
getSeverity(JUnitTestData testMethod)
Get the severity of the test |
static String |
getSource(String testMethod,
String testClass)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SimpleDateFormat ISO_8061_DATE_FORMAT
public static final String LINE_SEPARATOR
Method Detail |
---|
public static String getMessage(JUnitTestData testMethod)
testMethod
-
public static String getSeverity(JUnitTestData testMethod)
testMethod
-
public static String getSource(String testMethod, String testClass)
testMethod
- testClass
-
public static String getDatetime()
public static String getFile(JUnitTestData testMethod)
testMethod
-
public static String getLine(JUnitTestData testMethod)
testMethod
-
public static String getLineNumberFromExceptionTraceLine(String exceptionTraceLine, String substrToSearch)
exceptionTraceLine
- substrToSearch
-
public static String getName(JUnitTestData testMethod)
testMethod
-
public static String getError(JUnitTestData testMethod)
testMethod
-
public static String getBacktrace(JUnitTestData testMethod)
testMethod
-
public static String extractClassName(org.junit.runner.Description description)
description
-
public static String extractSimpleClassName(org.junit.runner.Description description)
description
-
public static String extractMethodName(org.junit.runner.Description description)
description
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |