Coverage Report - org.mule.example.hello.ChatString
 
Classes in this File Line Coverage Branch Coverage Complexity
ChatString
0%
0/8
N/A
0
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.example.hello;
 8  
 
 9  
 import java.io.Serializable;
 10  
 
 11  
 /**
 12  
  * <code>ChatString</code> TODO (document class)
 13  
  */
 14  0
 public class ChatString implements Serializable
 15  
 {
 16  
     /**
 17  
      * Serial version
 18  
      */
 19  
     private static final long serialVersionUID = -3140370545357738491L;
 20  
 
 21  0
     private StringBuffer string = new StringBuffer();
 22  
 
 23  
     /**
 24  
      * @param str
 25  
      */
 26  
     public StringBuffer append(String str)
 27  
     {
 28  0
         return string.append(str);
 29  
     }
 30  
 
 31  
     /**
 32  
      * @param sb
 33  
      */
 34  
     public StringBuffer append(StringBuffer sb)
 35  
     {
 36  0
         return string.append(sb);
 37  
     }
 38  
 
 39  
     /**
 40  
      * @param offset
 41  
      * @param str
 42  
      */
 43  
     public StringBuffer insert(int offset, char[] str)
 44  
     {
 45  0
         return string.insert(offset, str);
 46  
     }
 47  
 
 48  
     /**
 49  
      * @param index
 50  
      * @param str
 51  
      * @param offset
 52  
      * @param len
 53  
      */
 54  
     public StringBuffer insert(int index, char[] str, int offset, int len)
 55  
     {
 56  0
         return string.insert(index, str, offset, len);
 57  
     }
 58  
 
 59  
     @Override
 60  
     public String toString()
 61  
     {
 62  0
         return string.toString();
 63  
     }
 64  
 
 65  
     public int getSize()
 66  
     {
 67  0
         return string.length();
 68  
     }
 69  
 
 70  
 }