1 22 package org.jboss.ejb3.test.jca.inflow; 23 24 import java.io.Serializable ; 25 26 32 public class Result implements Serializable  33 { 34 private boolean passed = false; 35 private Throwable error; 36 37 public void pass() 38 { 39 passed = true; 40 } 41 42 public void fail(Throwable t) 43 { 44 error = t; 45 } 46 47 public void check() throws Throwable  48 { 49 if (passed == false) 50 { 51 if (error != null) 52 throw error; 53 else 54 throw new Exception ("Failed"); 55 } 56 } 57 } 58 | Popular Tags |