public class ErrorTestMode extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_TEST_MODE
Error test mode parameter key.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
generateError(int uCError)
Indicates to generate UC error.
|
static boolean |
generateErrorInTry(int uCError)
Indicates to generate UC error in try of try / catch block.
|
static void |
incrementUCErrorsIndicator()
Increments UC errors indicator.
|
static boolean |
isActivated()
Checks if error test mode is activated.
|
static void |
resetGeneratedUseCaseErrors()
Reset generated use cases errors.
|
public static final String ERROR_TEST_MODE
public static void incrementUCErrorsIndicator()
public static void resetGeneratedUseCaseErrors()
public static boolean isActivated()
public static boolean generateError(int uCError)
throws ErrorTestModeException
error - useCaseErrorTestModeExceptionpublic static boolean generateErrorInTry(int uCError)
throws ErrorTestModeException
uCError - ErrorTestModeExceptionCopyright © 2019. All rights reserved.