com.groiss.util
Class Assert

java.lang.Object
  extended by com.groiss.util.Assert

public class Assert
extends java.lang.Object

Class for defining assertions.


Nested Class Summary
static class Assert.Failed
           
 
Constructor Summary
Assert()
           
 
Method Summary
static void isFalse(boolean expression)
          Throws an exception if the given expresion is true.
static void isFalse(boolean expression, java.lang.String message)
          Throws an exception if the given expresion is true.
static void isTrue(boolean expression)
          Throws an exception if the given expresion is false.
static void isTrue(boolean expression, java.lang.String message)
          Throws an exception if the given expresion is false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

public Assert()
Method Detail

isTrue

public static final void isTrue(boolean expression)
Throws an exception if the given expresion is false.

Parameters:
expression - a boolean expression

isFalse

public static final void isFalse(boolean expression)
Throws an exception if the given expresion is true.

Parameters:
expression - a boolean expression

isTrue

public static final void isTrue(boolean expression,
                                java.lang.String message)
Throws an exception if the given expresion is false.

Parameters:
expression - a boolean expression
message - the message of the exception

isFalse

public static final void isFalse(boolean expression,
                                 java.lang.String message)
Throws an exception if the given expresion is true.

Parameters:
expression - a boolean expression
message - the message of the exception


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.