package org.openscore.lang.tools.build.tester.parse;

import java.io.Serializable;
import java.util.Map;

/**
 * Created by stoneo on 3/15/2015.
 **/
public class SlangTestCase {

    private final String description;

    private final String testSuits;

    private final String systemPropertiesFile;

    private final Map<String, Serializable> inputs;

    private final Boolean throwsException;

    private final String result;


    public SlangTestCase(String description, String testSuits, String systemPropertiesFile,
                         Map<String, Serializable> inputs, Boolean throwsException, String result){
        this.description = description;
        this.testSuits = testSuits;
        this.systemPropertiesFile = systemPropertiesFile;
        this.inputs = inputs;
        this.throwsException = throwsException;
        this.result = result;
    }

    public String getDescription() {
        return description;
    }

    public String getTestSuits() {
        return testSuits;
    }

    public String getSystemPropertiesFile() {
        return systemPropertiesFile;
    }

    public Map<String, Serializable> getInputs() {
        return inputs;
    }

    public Boolean getThrowsException() {
        return throwsException;
    }

    public String getResult() {
        return result;
    }
}

@@ -58,28 +58,136 @@
 ort 
-java.io.Serializable
+org.apache.commons.collections4.CollectionUtils;%0A%0Aimport java.io.Serializable;%0Aimport java.util.ArrayList;%0Aimport java.util.List
 ;%0Aim
@@ -338,22 +338,28 @@
 e final 
+List%3C
 String
+%3E
  testSui
@@ -542,16 +542,74 @@
 esult;%0A%0A
+    public static final String BASE_TEST_SUITE = %22base%22;%0A%0A
 %0A    pub
@@ -646,22 +646,28 @@
 iption, 
+List%3C
 String
+%3E
  testSui
@@ -843,44 +843,8 @@
 on;%0A
-        this.testSuits = testSuits;%0A
     
@@ -893,24 +893,236 @@
 ertiesFile;%0A
+        if(CollectionUtils.isEmpty(testSuits))%7B%0A            this.testSuits = new ArrayList%3C%3E();%0A            this.testSuits.add(BASE_TEST_SUITE);%0A        %7D else %7B%0A            this.testSuits = testSuits;%0A        %7D%0A
         this
@@ -1303,30 +1303,36 @@
 %0A    public 
+List%3C
 String
+%3E
  getTestSuit

Change testSuites to be a list with default value