package net.sf.pzfilereader.utilities;

/**
 * Static utility methods for Junit tests
 * 
 * @author Paul Zepernick
 */
public class UnitTestUtils {
    
    /**
     * Builds a delimited qualified string containing the elements passed in
     * 
     * @param elements
     *             Elements To Include In Delimited String
     * @param delimiter
     * @param qualifier
     * @return String
     */
    public static String buildDelimString(final String[] elements, final char delimiter, final char qualifier){
        final StringBuffer sb = new StringBuffer();
        for (int i = 0; i < elements.length; i++){
            if (i > 0){
                sb.append(delimiter);
            }
            sb.append(qualifier).append(elements[i]).append(qualifier);
        }
        
        
        return sb.toString();
    }
    
    /** Builds a delimited string containing the elements passed in
    * 
    * @param elements
    *             Elements To Include In Delimited String
    * @param delimiter
    * @return String
    */
   public static String buildDelimString(final String[] elements, final char delimiter){
       final StringBuffer sb = new StringBuffer();
       for (int i = 0; i < elements.length; i++){
           if (i > 0){
               sb.append(delimiter);
           }
       }
       
       
       return sb.toString();
   }
}

@@ -1282,32 +1282,33 @@
       if (i %3E 0)
+ 
 %7B%0D%0A             
@@ -1342,24 +1342,60 @@
          %7D%0D%0A
+           sb.append(elements%5Bi%5D);%0D%0A
        %7D%0D%0A  

Forgot to append the actual element.