|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IRunner.java | - | - | - | - |
|
||||||||||||||
| 1 | /** | |
| 2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
| 3 | * terms of the GNU General Public License as published by the Free Software | |
| 4 | * Foundation; either version 2, or (at your option) any later version. | |
| 5 | */ | |
| 6 | ||
| 7 | package jtr.runners; | |
| 8 | ||
| 9 | /** | |
| 10 | * This interface represents a runner in its <code>RUNNING</code> state.<br> | |
| 11 | * All the states in which a <code>java.lang.Thread</code> might be are now | |
| 12 | * reachable from this state. Furthermore a <code>RUNNING</code> runner can go | |
| 13 | * into the <code>REQUIRES_NEW_PARAMETER</code> state and become elegible for | |
| 14 | * clean-up and re-parameterization. | |
| 15 | * | |
| 16 | * @author Francesco Russo (frusso@dev.java.net) | |
| 17 | * @version 4.0 | |
| 18 | * @since 1.0 | |
| 19 | */ | |
| 20 | public interface IRunner extends IRunnerPooled { | |
| 21 | /** | |
| 22 | * This method starts the test logic. | |
| 23 | * | |
| 24 | * @throws Throwable | |
| 25 | */ | |
| 26 | public void test() throws Throwable; | |
| 27 | ||
| 28 | /** | |
| 29 | * Returns the number of total failures experienced by the runner. | |
| 30 | * | |
| 31 | * @return int | |
| 32 | */ | |
| 33 | public int getFailures(); | |
| 34 | ||
| 35 | /** | |
| 36 | * Returns the number of successes experienced by the runner. | |
| 37 | * | |
| 38 | * @return int | |
| 39 | */ | |
| 40 | public int getSuccesses(); | |
| 41 | ||
| 42 | /** | |
| 43 | * Get the number of the current run. | |
| 44 | * | |
| 45 | * @return int | |
| 46 | */ | |
| 47 | public int getCurrentRun(); | |
| 48 | ||
| 49 | /** | |
| 50 | * Callback method for receiving notification of occourred errors. | |
| 51 | * | |
| 52 | * @param t | |
| 53 | * Throwable | |
| 54 | * @param msg | |
| 55 | * String | |
| 56 | */ | |
| 57 | public void receiveFailureNotification(Throwable t, String msg); | |
| 58 | } |
|
||||||||||