Coverage Report - org.apache.maven.surefire.testset.TestSetFailedException
 
Classes in this File Line Coverage Branch Coverage Complexity
TestSetFailedException
0%
0/6
0%
0/2
1,333
 
 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  
     /**
 34  
      * Create a <code>TestFailedException</code> with a detail message.
 35  
      *
 36  
      * @param message A detail message for this <code>TestFailedException</code>, or
 37  
      *                <code>null</code>. If <code>null</code> is passed, the <code>getMessage</code>
 38  
      *                method will return an empty <code>String</code>.
 39  
      */
 40  
     public TestSetFailedException( String message )
 41  
     {
 42  0
         super( message );
 43  0
     }
 44  
 
 45  
     /**
 46  
      * Create a <code>TestFailedException</code> with the specified detail
 47  
      * message and cause.
 48  
      * <p/>
 49  
      * <p>Note that the detail message associated with cause is
 50  
      * <em>not</em> automatically incorporated in this throwable's detail
 51  
      * message.
 52  
      *
 53  
      * @param message A detail message for this <code>TestFailedException</code>, or <code>null</code>.
 54  
      * @param cause   the cause, which is saved for later retrieval by the <code>getCause</code> method.
 55  
      *                (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
 56  
      */
 57  
     public TestSetFailedException( String message, Throwable cause )
 58  
     {
 59  0
         super( message, cause );
 60  0
     }
 61  
 
 62  
     /**
 63  
      * Create a <code>TestFailedException</code> with the specified cause.  The
 64  
      * <code>getMessage</code> method of this exception object will return
 65  
      * <code>(cause == null ? "" : cause.toString())</code>.
 66  
      *
 67  
      * @param cause The cause
 68  
      */
 69  
     public TestSetFailedException( Throwable cause )
 70  
     {
 71  0
         super( cause == null ? "" : cause.toString(), cause );
 72  0
     }
 73  
 }