com.servingxml.util
Class Asserter

java.lang.Object
  extended by com.servingxml.util.Asserter

public class Asserter
extends java.lang.Object


Nested Class Summary
static class Asserter.AssertionException
           
 
Method Summary
static void assertTrue(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String message, boolean condition)
          Asserts that a condition is true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertTrue

public static final void assertTrue(java.lang.String sourceClass,
                                    java.lang.String sourceMethod,
                                    java.lang.String message,
                                    boolean condition)
Asserts that a condition is true. If not, throws an Asserter.Failed exception.

Parameters:
sourceClass - the class name.
sourceMethod - the method name.
message - a message for the assertion
condition - the condition