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

COVERAGE SUMMARY FOR SOURCE FILE [TestDescriptionFactory.java]

nameclass, %method, %block, %line, %
TestDescriptionFactory.java100% (2/2)100% (4/4)100% (28/28)100% (11/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TestDescriptionFactory100% (1/1)100% (2/2)100% (7/7)100% (3/3)
TestDescriptionFactory (): void 100% (1/1)100% (3/3)100% (2/2)
newTestDescription (): TestDescription 100% (1/1)100% (4/4)100% (1/1)
     
class TestDescriptionFactory$TestDescriptionImpl100% (1/1)100% (2/2)100% (21/21)100% (8/8)
TestDescriptionFactory$TestDescriptionImpl (): void 100% (1/1)100% (3/3)100% (2/2)
getTestDescription (Method): String 100% (1/1)100% (18/18)100% (6/6)

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.framework;
12 
13import java.lang.reflect.Method;
14 
15final class TestDescriptionFactory
16{
17    private TestDescriptionFactory()
18    {
19 
20    }
21 
22    static TestDescription newTestDescription()
23    {
24        return new TestDescriptionImpl();
25    }
26 
27    private static final class TestDescriptionImpl implements TestDescription
28    {
29        TestDescriptionImpl()
30        {
31 
32        }
33 
34        public String getTestDescription(final Method m) throws NullPointerException
35        {
36            if(m == null)
37            {
38                throw new NullPointerException();
39            }
40 
41            final Test t = m.getAnnotation(Test.class);
42 
43            if(t == null)
44            {
45                return null;
46            }
47 
48            return t.description();
49        }
50    }
51}

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