Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.tck/src/com/oracle/truffle/tck/TruffleJUnitRunListenerDecorator.java @ 21951:9c8c0937da41
Moving all sources into truffle subdirectory
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 17 Jun 2015 10:58:08 +0200 |
parents | graal/com.oracle.truffle.tck/src/com/oracle/truffle/tck/TruffleJUnitRunListenerDecorator.java@0a6e10379b9b |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
21950:2a5011c7e641 | 21951:9c8c0937da41 |
---|---|
1 /* | |
2 * Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. Oracle designates this | |
8 * particular file as subject to the "Classpath" exception as provided | |
9 * by Oracle in the LICENSE file that accompanied this code. | |
10 * | |
11 * This code is distributed in the hope that it will be useful, but WITHOUT | |
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 * version 2 for more details (a copy is included in the LICENSE file that | |
15 * accompanied this code). | |
16 * | |
17 * You should have received a copy of the GNU General Public License version | |
18 * 2 along with this work; if not, write to the Free Software Foundation, | |
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
20 * | |
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
22 * or visit www.oracle.com if you need additional information or have any | |
23 * questions. | |
24 */ | |
25 package com.oracle.truffle.tck; | |
26 | |
27 import java.io.*; | |
28 | |
29 import org.junit.runner.*; | |
30 import org.junit.runner.notification.*; | |
31 | |
32 class TruffleJUnitRunListenerDecorator implements TruffleJUnitRunListener { | |
33 | |
34 private final TruffleJUnitRunListener l; | |
35 | |
36 public TruffleJUnitRunListenerDecorator(TruffleJUnitRunListener l) { | |
37 this.l = l; | |
38 } | |
39 | |
40 @Override | |
41 public void testRunStarted(Description description) { | |
42 l.testRunStarted(description); | |
43 } | |
44 | |
45 @Override | |
46 public void testRunFinished(Result result) { | |
47 l.testRunFinished(result); | |
48 } | |
49 | |
50 @Override | |
51 public void testAssumptionFailure(Failure failure) { | |
52 l.testAssumptionFailure(failure); | |
53 } | |
54 | |
55 @Override | |
56 public void testIgnored(Description description) { | |
57 l.testIgnored(description); | |
58 } | |
59 | |
60 @Override | |
61 public void testClassStarted(Class<?> clazz) { | |
62 l.testClassStarted(clazz); | |
63 } | |
64 | |
65 @Override | |
66 public void testClassFinished(Class<?> clazz) { | |
67 l.testClassFinished(clazz); | |
68 } | |
69 | |
70 @Override | |
71 public void testStarted(Description description) { | |
72 l.testStarted(description); | |
73 } | |
74 | |
75 @Override | |
76 public void testFinished(Description description) { | |
77 l.testFinished(description); | |
78 } | |
79 | |
80 @Override | |
81 public void testFailed(Failure failure) { | |
82 l.testFailed(failure); | |
83 } | |
84 | |
85 @Override | |
86 public void testSucceeded(Description description) { | |
87 l.testSucceeded(description); | |
88 } | |
89 | |
90 @Override | |
91 public PrintStream getWriter() { | |
92 return l.getWriter(); | |
93 } | |
94 | |
95 public void testClassFinishedDelimiter() { | |
96 l.testClassFinishedDelimiter(); | |
97 } | |
98 | |
99 public void testClassStartedDelimiter() { | |
100 l.testClassStartedDelimiter(); | |
101 } | |
102 | |
103 public void testStartedDelimiter() { | |
104 l.testStartedDelimiter(); | |
105 } | |
106 | |
107 public void testFinishedDelimiter() { | |
108 l.testFinishedDelimiter(); | |
109 } | |
110 | |
111 } |