Coverage Report - org.apache.maven.plugins.surefire.report.ReportTestCase
 
Classes in this File Line Coverage Branch Coverage Complexity
ReportTestCase
95% 
N/A 
1
 
 1  
 package org.apache.maven.plugins.surefire.report;
 2  
 
 3  
 /*
 4  
  * Copyright 2001-2005 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 java.util.HashMap;
 20  
 import java.util.Map;
 21  
 
 22  124
 public class ReportTestCase
 23  
 {
 24  
     private String fullClassName;
 25  
 
 26  
     private String className;
 27  
 
 28  
     private String fullName;
 29  
 
 30  
     private String name;
 31  
 
 32  
     private float time;
 33  
 
 34  
     private Map failure;
 35  
 
 36  
     public String getName()
 37  
     {
 38  258
         return name;
 39  
     }
 40  
 
 41  
     public void setName( String name )
 42  
     {
 43  110
         this.name = name;
 44  110
     }
 45  
 
 46  
     public String getFullClassName()
 47  
     {
 48  24
         return fullClassName;
 49  
     }
 50  
 
 51  
     public void setFullClassName( String name )
 52  
     {
 53  108
         this.fullClassName = name;
 54  108
     }
 55  
 
 56  
     public String getClassName()
 57  
     {
 58  0
         return className;
 59  
     }
 60  
 
 61  
     public void setClassName( String name )
 62  
     {
 63  108
         this.className = name;
 64  108
     }
 65  
 
 66  
     public float getTime()
 67  
     {
 68  54
         return time;
 69  
     }
 70  
 
 71  
     public void setTime( float time )
 72  
     {
 73  110
         this.time = time;
 74  110
     }
 75  
 
 76  
     public Map getFailure()
 77  
     {
 78  234
         return failure;
 79  
     }
 80  
 
 81  
     public String getFullName()
 82  
     {
 83  102
         return fullName;
 84  
     }
 85  
 
 86  
     public void setFullName( String fullName )
 87  
     {
 88  110
         this.fullName = fullName;
 89  110
     }
 90  
 
 91  
     public void addFailure( String message, String type )
 92  
     {
 93  34
         failure = new HashMap();
 94  34
         failure.put( "message", message );
 95  34
         failure.put( "type", type );
 96  34
     }
 97  
 }