1 17 18 package org.apache.james.util; 19 20 21 22 25 public final class Assert 26 { 27 public static final boolean ON = true; 28 29 private Assert() {}; 31 32 35 public static void isTrue( boolean expression ) 36 { 37 if ( ! expression ) { 38 throw new RuntimeException ( "Assertion Failed." ); 39 } 40 } 41 42 45 public static void fail() 46 { 47 throw new RuntimeException ( "Assertion error - should not reach here." ); 48 } 49 50 53 public static void notImplemented() 54 { 55 throw new RuntimeException ( "Not implemented" ); 56 } 57 58 } 59 | Popular Tags |