public class Assert extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Assert.Failed |
Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
static void |
isFalse(boolean expression)
Throws an exception if the given expression is true.
|
static void |
isFalse(boolean expression,
String message)
Throws an exception if the given expression is true.
|
static void |
isTrue(boolean expression)
Throws an exception if the given expression is false.
|
static void |
isTrue(boolean expression,
String message)
Throws an exception if the given expression is false.
|
static void |
necessaryParameters(HttpServletRequest req,
String... names)
Check the presence of parameters
|
public static final void isTrue(boolean expression)
expression
- a boolean expressionpublic static final void isFalse(boolean expression)
expression
- a boolean expressionpublic static final void isTrue(boolean expression, String message)
expression
- a boolean expressionmessage
- the message of the exceptionpublic static final void isFalse(boolean expression, String message)
expression
- a boolean expressionmessage
- the message of the exceptionpublic static final void necessaryParameters(HttpServletRequest req, String... names)
req
- the requestnames
- list of parameter names@enterprise 10.0.38375 Copyright © 2001-2024 Groiss Informatics GmbH. All Rights Reserved.