EMMA Coverage Report (generated Fri Jul 28 01:51:09 CEST 2006)
[all classes][org.jtiger.report.html]

COVERAGE SUMMARY FOR SOURCE FILE [TestResultFactory.java]

nameclass, %method, %block, %line, %
TestResultFactory.java100% (2/2)100% (10/10)100% (59/59)100% (19/19)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TestResultFactory100% (1/1)100% (2/2)100% (14/14)100% (3/3)
TestResultFactory (): void 100% (1/1)100% (3/3)100% (2/2)
newTestResult (String, String, String, String, String, String, String): TestR... 100% (1/1)100% (11/11)100% (1/1)
     
class TestResultFactory$TestResultImpl100% (1/1)100% (8/8)100% (45/45)100% (16/16)
TestResultFactory$TestResultImpl (String, String, String, String, String, Str... 100% (1/1)100% (24/24)100% (9/9)
getDescription (): String 100% (1/1)100% (3/3)100% (1/1)
getElapsedTime (): String 100% (1/1)100% (3/3)100% (1/1)
getException (): String 100% (1/1)100% (3/3)100% (1/1)
getMessage (): String 100% (1/1)100% (3/3)100% (1/1)
getMethodName (): String 100% (1/1)100% (3/3)100% (1/1)
getName (): String 100% (1/1)100% (3/3)100% (1/1)
getResult (): String 100% (1/1)100% (3/3)100% (1/1)

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 */
11package org.jtiger.report.html;
12 
13final class TestResultFactory
14{
15    private TestResultFactory()
16    {
17 
18    }
19 
20    static TestResult newTestResult(final String name, final String exception, final String elapsedTime,
21                                           final String message, final String methodName, final String description, final String result)
22    {
23        return new TestResultImpl(name, exception, elapsedTime, message, methodName, description, result);
24    }
25 
26    private static final class TestResultImpl implements TestResult
27    {
28        private final String name;
29        private final String exception;
30        private final String elapsedTime;
31        private final String message;
32        private final String methodName;
33        private final String description;
34        private final String result;
35 
36        TestResultImpl(final String name, final String exception, final String elapsedTime,
37                                           final String message, final String methodName, final String description, final String result)
38        {
39            this.name = name;
40            this.exception = exception;
41            this.elapsedTime = elapsedTime;
42            this.message = message;
43            this.methodName = methodName;
44            this.description = description;
45            this.result = result;
46        }
47 
48        public String getName()
49        {
50            return name;
51        }
52 
53        public String getException()
54        {
55            return exception;
56        }
57 
58        public String getElapsedTime()
59        {
60            return elapsedTime;
61        }
62 
63        public String getMessage()
64        {
65            return message;
66        }
67 
68        public String getMethodName()
69        {
70            return methodName;
71        }
72 
73        public String getDescription()
74        {
75            return description;
76        }
77 
78        public String getResult()
79        {
80            return result;
81        }
82    }
83}

[all classes][org.jtiger.report.html]
EMMA 2.0.5312 (C) Vladimir Roubtsov