Coverage Report - org.apache.maven.surefire.testset.TestSetFailedException
 
Classes in this File Line Coverage Branch Coverage Complexity
TestSetFailedException
0%
0/8
0%
0/2
1
 
 1  
 package org.apache.maven.surefire.testset;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *     http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import org.apache.maven.surefire.util.NestedCheckedException;
 23  
 
 24  
 /**
 25  
  * Exception that indicates a test failed.
 26  
  *
 27  
  * @author Bill Venners
 28  
  */
 29  
 public class TestSetFailedException
 30  
     extends NestedCheckedException
 31  
 {
 32  
     /**
 33  
      * Create a <code>TestFailedException</code> with no detail message.
 34  
      */
 35  
     public TestSetFailedException()
 36  0
     {
 37  0
     }
 38  
 
 39  
     /**
 40  
      * Create a <code>TestFailedException</code> with a detail message.
 41  
      *
 42  
      * @param message A detail message for this <code>TestFailedException</code>, or
 43  
      *                <code>null</code>. If <code>null</code> is passed, the <code>getMessage</code>
 44  
      *                method will return an empty <code>String</code>.
 45  
      */
 46  
     public TestSetFailedException( String message )
 47  
     {
 48  0
         super( message );
 49  0
     }
 50  
 
 51  
     /**
 52  
      * Create a <code>TestFailedException</code> with the specified detail
 53  
      * message and cause.
 54  
      * <p/>
 55  
      * <p>Note that the detail message associated with cause is
 56  
      * <em>not</em> automatically incorporated in this throwable's detail
 57  
      * message.
 58  
      *
 59  
      * @param message A detail message for this <code>TestFailedException</code>, or <code>null</code>.
 60  
      * @param cause   the cause, which is saved for later retrieval by the <code>getCause</code> method.
 61  
      *                (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
 62  
      */
 63  
     public TestSetFailedException( String message, Throwable cause )
 64  
     {
 65  0
         super( message, cause );
 66  0
     }
 67  
 
 68  
     /**
 69  
      * Create a <code>TestFailedException</code> with the specified cause.  The
 70  
      * <code>getMessage</code> method of this exception object will return
 71  
      * <code>(cause == null ? "" : cause.toString())</code>.
 72  
      */
 73  
     public TestSetFailedException( Throwable cause )
 74  
     {
 75  0
         super( cause == null ? "" : cause.toString(), cause );
 76  0
     }
 77  
 }