Event Dispatcher  v0.1.6-beta.1
Project that offers a small library that allows to subscribe and fire events.
TestUtilities

Detailed Description

Definition at line 12 of file TestUtilities.java.

Static Public Member Functions

static Date parseToDate (LocalDate localDate)
 
static String getFailMessage (Exception e, TestInfo testInfo)
 

Private Member Functions

 TestUtilities ()
 

Constructor & Destructor Documentation

◆ TestUtilities()

TestUtilities ( )
private

Definition at line 14 of file TestUtilities.java.

Member Function Documentation

◆ parseToDate()

static Date parseToDate ( LocalDate  localDate)
static

Parse java.util.Date to java.time.LocalDate.

Assumes that the parsed value will not be null and that the parse will not throw any exceptions.
If the assumption fails, the test that calls the function will also fail.

Parameters
localDatevalue to parse
Returns
The date in java.util.Date type

Definition at line 25 of file TestUtilities.java.

◆ getFailMessage()

static String getFailMessage ( Exception  e,
TestInfo  testInfo 
)
static

Returns a formated error message with the exception information.

Parameters
ethe exception
testInfothe TestInfo used, to inject information about the current test
Returns
the formatted fail message

Definition at line 43 of file TestUtilities.java.