Coverage Report - org.tap4j.representer.DumperOptions
 
Classes in this File Line Coverage Branch Coverage Complexity
DumperOptions
63%
14/22
N/A
1
 
 1  
 /*
 2  
  * The MIT License
 3  
  *
 4  
  * Copyright (c) <2012> <Bruno P. Kinoshita>
 5  
  * 
 6  
  * Permission is hereby granted, free of charge, to any person obtaining a copy
 7  
  * of this software and associated documentation files (the "Software"), to deal
 8  
  * in the Software without restriction, including without limitation the rights
 9  
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 10  
  * copies of the Software, and to permit persons to whom the Software is
 11  
  * furnished to do so, subject to the following conditions:
 12  
  * 
 13  
  * The above copyright notice and this permission notice shall be included in
 14  
  * all copies or substantial portions of the Software.
 15  
  * 
 16  
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 17  
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 18  
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 19  
  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 20  
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 21  
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 22  
  * THE SOFTWARE.
 23  
  */
 24  
 package org.tap4j.representer;
 25  
 
 26  
 /**
 27  
  * Options used by a representer.
 28  
  * 
 29  
  * @since 0.1
 30  
  */
 31  
 public class DumperOptions {
 32  
 
 33  14
     private boolean printDiagnostics = Boolean.TRUE;
 34  
 
 35  14
     private boolean printSubtests = Boolean.TRUE;
 36  
 
 37  14
     private boolean allowEmptyTestPlan = Boolean.TRUE;
 38  
 
 39  14
     private int indent = 0;
 40  
 
 41  14
     private int spaces = 4;
 42  
 
 43  14
     public DumperOptions() {
 44  14
     }
 45  
 
 46  
     /**
 47  
      * @return the printDiagnostics
 48  
      */
 49  
     public boolean isPrintDiagnostics() {
 50  0
         return printDiagnostics;
 51  
     }
 52  
 
 53  
     /**
 54  
      * @param printDiagnostics the printDiagnostics to set
 55  
      */
 56  
     public void setPrintDiagnostics(boolean printDiagnostics) {
 57  0
         this.printDiagnostics = printDiagnostics;
 58  0
     }
 59  
 
 60  
     /**
 61  
      * @return the printSubtests
 62  
      */
 63  
     public boolean isPrintSubtests() {
 64  0
         return printSubtests;
 65  
     }
 66  
 
 67  
     /**
 68  
      * @param printSubtests the printSubtests to set
 69  
      */
 70  
     public void setPrintSubtests(boolean printSubtests) {
 71  0
         this.printSubtests = printSubtests;
 72  0
     }
 73  
 
 74  
     /**
 75  
      * @param indent the indent to set
 76  
      */
 77  
     public void setIndent(int indent) {
 78  4
         this.indent = indent;
 79  4
     }
 80  
 
 81  
     /**
 82  
      * @return the indent
 83  
      */
 84  
     public int getIndent() {
 85  249
         return indent;
 86  
     }
 87  
 
 88  
     /**
 89  
      * @param spaces the spaces to set
 90  
      */
 91  
     public void setSpaces(int spaces) {
 92  0
         this.spaces = spaces;
 93  0
     }
 94  
 
 95  
     /**
 96  
      * @return the spaces
 97  
      */
 98  
     public int getSpaces() {
 99  2
         return spaces;
 100  
     }
 101  
 
 102  
     /**
 103  
      * @param allowEmptyTestPlan the allowEmptyTestPlan to set
 104  
      */
 105  
     public void setAllowEmptyTestPlan(boolean allowEmptyTestPlan) {
 106  2
         this.allowEmptyTestPlan = allowEmptyTestPlan;
 107  2
     }
 108  
 
 109  
     /**
 110  
      * @return the allowEmptyTestPlan
 111  
      */
 112  
     public boolean isAllowEmptyTestPlan() {
 113  1
         return allowEmptyTestPlan;
 114  
     }
 115  
 
 116  
 }