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.ant; |
12 | |
13 | /** |
14 | * An element used in {@link JTigerTask the Ant task} to specify the class name of a test fixture class that is to be |
15 | * executed during a test run. |
16 | * |
17 | * @see JTigerTask |
18 | * @author %javadoc.author.tag% |
19 | * @version %version%<br/> |
20 | * <i>Build Number %build.number%</i><br/> |
21 | * <i>Build Time %build.time% CET (GMT + 1)</i> |
22 | */ |
23 | public final class Fixture |
24 | { |
25 | private String classname; |
26 | |
27 | /** |
28 | * Create a default <tt>Fixture</tt>. |
29 | */ |
30 | public Fixture() |
31 | { |
32 | |
33 | } |
34 | |
35 | /** |
36 | * Create a <tt>Fixture</tt> with the given class name. |
37 | * |
38 | * @param classname The class name of the <tt>Fixture</tt>. |
39 | */ |
40 | public Fixture(final String classname) |
41 | { |
42 | setClassname(classname); |
43 | } |
44 | |
45 | /** |
46 | * Returns the class name for this test fixture. |
47 | * |
48 | * @return The class name for this test fixture. |
49 | */ |
50 | public String getClassname() |
51 | { |
52 | return classname; |
53 | } |
54 | |
55 | /** |
56 | * Sets the class name for this classname. |
57 | * |
58 | * @param classname The class name for this classname. |
59 | */ |
60 | public void setClassname(final String classname) |
61 | { |
62 | this.classname = classname; |
63 | } |
64 | } |