| 1 | /* |
| 2 | * JTiger Unit Testing Framework for J2SE 1.5 |
| 3 | * Copyright (C) 2005 Tony Morris |
| 4 | * |
| 5 | * This software is licenced under the |
| 6 | * Common Public Licence version 1.0 |
| 7 | * http://www.opensource.org/licenses/cpl1.0.php |
| 8 | * |
| 9 | * You received a copy of this licence with this software. |
| 10 | */ |
| 11 | package org.jtiger.framework; |
| 12 | |
| 13 | /** |
| 14 | * An enumeration of the possible result types of a test case execution. |
| 15 | * |
| 16 | * @see TestResult |
| 17 | * @author %javadoc.author.tag% |
| 18 | * @version %version%<br/> |
| 19 | * <i>Build Number %build.number%</i><br/> |
| 20 | * <i>Build Time %build.time% CET (GMT + 1)</i> |
| 21 | */ |
| 22 | public enum TestResultType |
| 23 | { |
| 24 | /** |
| 25 | * Indicates that the test case execution resulted in success. |
| 26 | */ |
| 27 | SUCCESS, |
| 28 | |
| 29 | /** |
| 30 | * Indicates that the test case execution resulted in being ignored because it was annotated that way. |
| 31 | * |
| 32 | * @see Ignore |
| 33 | */ |
| 34 | IGNORED_ANNOTATED, |
| 35 | |
| 36 | /** |
| 37 | * Indicates that the test case execution resulted in being ignored because it does not satisfy the criteria for |
| 38 | * a test case method. |
| 39 | * |
| 40 | * @see Test |
| 41 | */ |
| 42 | IGNORED_CANNOT_INVOKE, |
| 43 | |
| 44 | /** |
| 45 | * Indicates that the test case execution resulted in failure because the test fixture that contains it could not |
| 46 | * be setup. |
| 47 | * |
| 48 | * @see SetUp |
| 49 | */ |
| 50 | FAILURE_SETUP, |
| 51 | |
| 52 | /** |
| 53 | * Indicates that the test case execution resulted in failure. |
| 54 | */ |
| 55 | FAILURE, |
| 56 | |
| 57 | /** |
| 58 | * Indicates that the test case execution resulted in failure because the test fixture that contains it could not |
| 59 | * be torn down. |
| 60 | * |
| 61 | * @see TearDown |
| 62 | */ |
| 63 | FAILURE_TEARDOWN; |
| 64 | } |