1   package org.apache.maven.surefire;
2   
3   /*
4    * Copyright 2001-2006 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  import org.apache.maven.surefire.report.AbstractReporter;
20  import org.apache.maven.surefire.report.ReportEntry;
21  
22  /**
23   * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
24   * @version $Id: TestReport.java 398546 2006-05-01 08:10:38Z brett $
25   */
26  public class TestReport
27      extends AbstractReporter
28  {
29      public TestReport()
30      {
31          super( Boolean.TRUE );
32      }
33  
34      public void writeMessage( String message )
35      {
36          System.out.println( "TestReport::writeMessage -> " + message );
37      }
38  
39      public void runStarting( int testCount )
40      {
41          System.out.println( "TestReport::runStarting -> " + testCount );
42      }
43  
44      public void testStarting( ReportEntry reportEntry )
45      {
46          System.out.println( "TestReport::testStarting -> " + reportEntry.getMessage() );
47      }
48  
49      public void testSucceeded( ReportEntry reportEntry )
50      {
51          System.out.println( "TestReport::testSucceeded -> " + reportEntry.getMessage() );
52      }
53  
54      public void testError( ReportEntry reportEntry )
55      {
56          System.out.println( "TestReport::testError -> " + reportEntry.getMessage() );
57      }
58  
59      public void testFailed( ReportEntry reportEntry )
60      {
61          System.out.println( "TestReport::testFailed -> " + reportEntry.getMessage() );
62      }
63  
64      public void testSetStarting( ReportEntry reportEntry )
65      {
66          System.out.println( "TestReport::suiteStarting -> " + reportEntry.getMessage() );
67      }
68  
69      public void testSetCompleted( ReportEntry reportEntry )
70      {
71          System.out.println( "TestReport::suiteCompleted -> " + reportEntry.getMessage() );
72      }
73  
74      public void testSetAborted( ReportEntry reportEntry )
75      {
76          System.out.println( "TestReport::suiteAborted -> " + reportEntry.getMessage() );
77      }
78  
79      public void infoProvided( ReportEntry reportEntry )
80      {
81          System.out.println( "TestReport::infoProvided -> " + reportEntry.getMessage() );
82      }
83  
84      public void runStopped()
85      {
86          System.out.println( "TestReport::runStopped" );
87      }
88  
89      public void runAborted( ReportEntry reportEntry )
90      {
91          System.out.println( "TestReport::runAborted -> " + reportEntry.getMessage() );
92      }
93  
94      public void runCompleted()
95      {
96          System.out.println( "TestReport::runCompleted" );
97      }
98  
99      public void reset()
100     {
101         System.out.println( "TestReport::dispose" );
102     }
103 
104     public int getNumErrors()
105     {
106         System.out.println( "TestReport::getNumErrors" );
107         return 0;
108     }
109 
110     public int getNumFailures()
111     {
112         System.out.println( "TestReport::getNumFailures" );
113         return 0;
114     }
115 
116     public int getNumTests()
117     {
118         System.out.println( "TestReport::getNumTests" );
119         return 0;
120     }
121 }