1 4 package com.terracotta.session.util; 5 6 public class Assert { 7 8 public static void pre(boolean v) { 9 if (!v) throw new AssertionError ("Precondition Failed"); 10 } 11 12 public static void post(boolean v) { 13 if (!v) throw new AssertionError ("Postcondition Failed"); 14 } 15 16 public static void inv(boolean v) { 17 if (!v) throw new AssertionError ("Invariant Failed"); 18 } 19 20 } 21 | Popular Tags |