/*
 * #%L
 * Wisdom-Framework
 * %%
 * Copyright (C) 2013 - 2014 Wisdom Framework
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package org.wisdom.test.internals;

/**
 * Sets of methods appending packages to export to the given list.
 */
public final class Packages {

    private Packages() {
        //Hide implicit constructor
    }

    /**
     * Adds the junit packages.
     *
     * @param builder the builder
     */
    public static void junit(StringBuilder builder) {
        checkEmpty(builder);
        // org.junit
        builder.append("org.junit, " +
                "org.junit.runners, " +
                "org.junit.runners.model," +
                "org.junit.runner," +
                "org.junit.runner.manipulation," +
                "org.junit.runner.notification," +
                "org.junit.matchers," +
                "org.junit.rules,");

        // junit.framework
        builder.append("junit.framework");
    }

    /**
     * Adds the wisdom test packages.
     *
     * @param builder the builder
     */
    public static void wisdomtest(StringBuilder builder) {
        checkEmpty(builder);
        builder.append("org.wisdom.test,");
        builder.append("org.wisdom.test.shared");
    }

    /**
     * Adds the javax.inject package.
     *
     * @param builder the builder
     */
    public static void javaxinject(StringBuilder builder) {
        checkEmpty(builder);
        builder.append("javax.inject;version=1.0.0");
    }

    /**
     * Adds the AssertJ packages.
     *
     * @param builder the builder
     */
    public static void assertj(StringBuilder builder) {
        checkEmpty(builder);
        builder.append("org.assertj.core.api," +
                "org.assertj.core.api.filter, " +
                "org.assertj.core.condition");
    }

    /**
     * Adds the OSGi Test Helpers packages.
     *
     * @param builder the builder
     */
    public static void osgihelpers(StringBuilder builder) {
        checkEmpty(builder);
        builder.append("org.ow2.chameleon.testing.helpers, " +
                "org.ow2.chameleon.testing.helpers.constants");
    }

    private static void checkEmpty(StringBuilder builder) {
        if (builder.length() != 0) {
            builder.append(',');
        }
    }

}

@@ -1091,69 +1091,81 @@
 nit,
- %22 +%0A                %22org.junit.runners, %22 +%0A                
+%22);%0A        builder.append(%22org.junit.runners,%22);%0A        builder.append(
 %22org
@@ -1186,31 +1186,27 @@
 .model,%22
- +%0A    
+);%0A
         
     %22org
@@ -1189,36 +1189,47 @@
 del,%22);%0A        
-    
+builder.append(
 %22org.junit.runne
@@ -1231,18 +1231,18 @@
 runner,%22
- +
+);
 %0A       
@@ -1238,32 +1238,39 @@
 %22);%0A        
-        
+builder.append(
 %22org.junit.r
@@ -1289,35 +1289,42 @@
 lation,%22
- +%0A                
+);%0A        builder.append(
 %22org.jun
@@ -1347,18 +1347,18 @@
 cation,%22
- +
+);
 %0A       
@@ -1354,32 +1354,39 @@
 %22);%0A        
-        
+builder.append(
 %22org.junit.m
@@ -1394,18 +1394,18 @@
 tchers,%22
- +
+);
 %0A       
@@ -1401,32 +1401,39 @@
 %22);%0A        
-        
+builder.append(
 %22org.junit.r
@@ -2270,18 +2270,18 @@
 re.api,%22
- +
+);
 %0A       
@@ -2277,32 +2277,39 @@
 %22);%0A        
-        
+builder.append(
 %22org.assertj
@@ -2325,20 +2325,19 @@
 .filter,
- %22 +
+%22);
 %0A       
@@ -2333,32 +2333,39 @@
 %22);%0A        
-        
+builder.append(
 %22org.assertj
@@ -2642,23 +2642,20 @@
 ers,
- %22 +%0A  
+%22);%0A
         
     
@@ -2650,22 +2650,31 @@
         
-      
+builder.append(
 %22org.ow2

Replace concat by builder call