Package | Description |
---|---|
de.tobiasroeser.lambdatest | |
de.tobiasroeser.lambdatest.generic | |
de.tobiasroeser.lambdatest.testng |
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
Expect.intercept(Class<T> exceptionType,
RunnableWithException throwing) |
static <T extends Throwable> |
Intercept.intercept(Class<T> exceptionType,
RunnableWithException throwing)
Intercept exceptions of type <code>exceptionType</code> and fail if no such
exception or an exception with an incompatible type was thrown.
|
<T extends Throwable> |
LambdaTest.intercept(Class<T> exceptionType,
RunnableWithException throwing)
Intercept exceptions of type
exceptionType and fail if no such
exception or an exception with an incompatible type was thrown. |
static <T extends Throwable> |
Expect.intercept(Class<T> exceptionType,
String messageRegex,
RunnableWithException throwing) |
static <T extends Throwable> |
Intercept.intercept(Class<T> exceptionType,
String messageRegex,
RunnableWithException throwing)
Intercept exceptions of type <code>exceptionType</code> and fail if no such
exception or an exception with an incompatible type was thrown or it the
message does not match a given pattern.
|
<T extends Throwable> |
LambdaTest.intercept(Class<T> exceptionType,
String messageRegex,
RunnableWithException throwing)
Intercept exceptions of type
exceptionType and fail if no such
exception or an exception with an incompatible type was thrown or it the
message does not match a given pattern. |
Modifier and Type | Method and Description |
---|---|
RunnableWithException |
DefaultTestCase.getTest() |
Modifier and Type | Method and Description |
---|---|
<T extends Throwable> |
FreeSpecBase.intercept(Class<T> exceptionType,
RunnableWithException throwing)
Intercept exceptions of type <code>exceptionType</code> and fail if no
such exception or an exception with an incompatible type was thrown.
|
<T extends Throwable> |
FreeSpecBase.intercept(Class<T> exceptionType,
String messageRegex,
RunnableWithException throwing)
Intercept exceptions of type <code>exceptionType</code> and fail if no
such exception or an exception with an incompatible type was thrown or it
the message does not match a given pattern.
|
void |
FreeSpecBase.test(String name,
RunnableWithException testCase)
Adds a test to the test suite.
|
Constructor and Description |
---|
DefaultTestCase(Section section,
String name,
String suiteName,
RunnableWithException test) |
DefaultTestCase(String name,
String suiteName,
RunnableWithException test) |
Modifier and Type | Method and Description |
---|---|
void |
FreeSpec.test(String name,
RunnableWithException testCase)
Adds a test to the test suite.
|
Copyright © 2019. All rights reserved.