1b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotpackage org.junit.internal.runners.statements; 2b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot 3b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotimport org.junit.runners.model.Statement; 4b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot 5b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot 6b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotpublic class Fail extends Statement { 7b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot private final Throwable fError; 8b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot 9b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot public Fail(Throwable e) { 10b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot fError= e; 11b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot } 12b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot 13b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot @Override 14b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot public void evaluate() throws Throwable { 15b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot throw fError; 16b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot } 17b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot} 18