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.report.html; |
12 | |
13 | final class OverallResultFactory |
14 | { |
15 | private OverallResultFactory() |
16 | { |
17 | |
18 | } |
19 | |
20 | static OverallResult newOverallResult(final String name, final String description, final String elapsedTime, final String result) |
21 | { |
22 | return new OverallResultImpl(name, description, elapsedTime, result); |
23 | } |
24 | |
25 | private static final class OverallResultImpl implements OverallResult |
26 | { |
27 | private final String name; |
28 | private final String description; |
29 | private final String elapsedTime; |
30 | private final String result; |
31 | |
32 | OverallResultImpl(final String name, final String description, final String elapsedTime, final String result) |
33 | { |
34 | this.name = name; |
35 | this.description = description; |
36 | this.elapsedTime = elapsedTime; |
37 | this.result = result; |
38 | } |
39 | |
40 | public String getName() |
41 | { |
42 | return name; |
43 | } |
44 | |
45 | public String getDescription() |
46 | { |
47 | return description; |
48 | } |
49 | |
50 | public String getElapsedTime() |
51 | { |
52 | return elapsedTime; |
53 | } |
54 | |
55 | public String getResult() |
56 | { |
57 | return result; |
58 | } |
59 | } |
60 | } |