public class ReporterUtils extends Object
Constructor and Description |
---|
ReporterUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
convertNumberToLong(Object number)
Convert any number to long
|
static String |
getCurrentDate()
Returns the current date in the format that matches
this#getDateFormat() |
static String |
getDateFormat()
Returns the date format that should be used for dates
|
static String |
getTestClassId(Class<?> method)
Takes the given
Class , and creates an id using the fully qualified name of the test class |
static String |
getTestMethodId(Method method)
Takes the given
Method , and creates an id using the method name |
static String |
humanReadableByteCount(Long bytes,
boolean decimal)
Takes the given bytes and transforms them into a human readable format
|
public static String getDateFormat()
public static String getCurrentDate()
this#getDateFormat()
this#getDateFormat()
public static String getTestClassId(Class<?> method)
Class
, and creates an id using the fully qualified name of the test classmethod
- A Class
to be used for creating an idpublic static String getTestMethodId(Method method)
Method
, and creates an id using the method namemethod
- A Method
to be used for creating an idpublic static String humanReadableByteCount(Long bytes, boolean decimal)
bytes
- Bytes to be transformeddecimal
- If the number is in decimalpublic static long convertNumberToLong(Object number)
number
- A number to convertCopyright © 2017 JBoss by Red Hat. All rights reserved.