|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| DefaultOutcomeFactory.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 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.test.impl; | |
| 8 | ||
| 9 | import jtr.test.*; | |
| 10 | ||
| 11 | /** | |
| 12 | * Default implementation of the <code>IOutcomeFactory</code> interface. | |
| 13 | * | |
| 14 | * @author Francesco Russo (frusso@dev.java.net) | |
| 15 | * @version 4.0 | |
| 16 | * @since 1.0 | |
| 17 | * @see jtr.test.IOutcomeFactory | |
| 18 | * @see jtr.test.IOutcome | |
| 19 | */ | |
| 20 | public class DefaultOutcomeFactory implements IOutcomeFactory { | |
| 21 | /** | |
| 22 | * Constructor. It is responsability of the JTR runtime using just one | |
| 23 | * instance of this class. | |
| 24 | */ | |
| 25 | 2 | public DefaultOutcomeFactory() { |
| 26 | } | |
| 27 | ||
| 28 | /** | |
| 29 | * Factory method that returns a valid <code>IOutcome</code> instance. | |
| 30 | * | |
| 31 | * @return IOutcome A valid <code>IOutcome</code> instance | |
| 32 | */ | |
| 33 | 44397 | public IOutcome getInstance() { |
| 34 | 44398 | return new DefaultOutcome(); |
| 35 | } | |
| 36 | } |
|
||||||||||