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.framework; |
12 | |
13 | import static org.jtiger.framework.TestResultType.IGNORED_ANNOTATED; |
14 | import static org.jtiger.framework.TestResultType.IGNORED_CANNOT_INVOKE; |
15 | |
16 | final class TestIgnoredFactory |
17 | { |
18 | private TestIgnoredFactory() |
19 | { |
20 | |
21 | } |
22 | |
23 | static TestIgnored newTestIgnored() |
24 | { |
25 | return new TestIgnoredImpl(); |
26 | } |
27 | |
28 | private static final class TestIgnoredImpl implements TestIgnored |
29 | { |
30 | TestIgnoredImpl() |
31 | { |
32 | |
33 | } |
34 | |
35 | public boolean isIgnored(final TestResultType result) |
36 | { |
37 | return result == IGNORED_ANNOTATED || |
38 | result == IGNORED_CANNOT_INVOKE; |
39 | } |
40 | } |
41 | } |