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

COVERAGE SUMMARY FOR SOURCE FILE [TestFailureFactory.java]

nameclass, %method, %block, %line, %
TestFailureFactory.java100% (2/2)100% (4/4)100% (23/23)100% (6/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TestFailureFactory100% (1/1)100% (2/2)100% (7/7)100% (3/3)
TestFailureFactory (): void 100% (1/1)100% (3/3)100% (2/2)
newTestFailure (): TestFailure 100% (1/1)100% (4/4)100% (1/1)
     
class TestFailureFactory$TestFailureImpl100% (1/1)100% (2/2)100% (16/16)100% (3/3)
TestFailureFactory$TestFailureImpl (): void 100% (1/1)100% (3/3)100% (2/2)
isFailure (TestResultType): boolean 100% (1/1)100% (13/13)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.framework;
12 
13import static org.jtiger.framework.TestResultType.FAILURE;
14import static org.jtiger.framework.TestResultType.FAILURE_SETUP;
15import static org.jtiger.framework.TestResultType.FAILURE_TEARDOWN;
16 
17 
18final class TestFailureFactory
19{
20    private TestFailureFactory()
21    {
22 
23    }
24 
25    static TestFailure newTestFailure()
26    {
27        return new TestFailureImpl();
28    }
29 
30    private static final class TestFailureImpl implements TestFailure
31    {
32        TestFailureImpl()
33        {
34 
35        }
36 
37        public boolean isFailure(final TestResultType result)
38        {
39            return result == FAILURE ||
40                    result == FAILURE_SETUP ||
41                    result == FAILURE_TEARDOWN;
42        }
43    }
44}

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