IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui
Class Assert

java.lang.Object
  extended by com.ibm.btt.rcp.xui.Assert

public class Assert
extends java.lang.Object

Assert class, when assert fail, throws AssertFailedException, this is a runtime exception.


Nested Class Summary
static class Assert.AssertFailedException
          Assert Fail Exception
 
Constructor Summary
Assert()
           
 
Method Summary
static void isTrue(boolean expression, java.lang.String msg)
          Assert if expression is true, when assert fail, throws AssertFailedException, this is a runtime exception.
 
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 void isTrue(boolean expression,
                          java.lang.String msg)
Assert if expression is true, when assert fail, throws AssertFailedException, this is a runtime exception.

Parameters:
expression - the expression to be assert.
msg - exception message.

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011