package com.waas.core.exceptions;

/**
 * This class represents the exception when a testcase with given name doesn't
 * exist
 * 
 * @author Laxmikant Birajdar
 */

public class TestNotFoundException extends Exception {

    private static final long serialVersionUID = 1L;

    public TestNotFoundException(String testName) {

        if (testName == null || testName.trim().equals("")) {

            new Exception("Testcase name cannot be blank");
            System.out.println("Testcase name cannot be blank");
        } else {

            new Exception("Testcase with name : " + testName + " : Not Found");
            System.out.println("Testcase with name : " + testName
                    + " : Not Found");
        }

    }

}

@@ -320,16 +320,101 @@
 tName) %7B
+%0A        %0A        super(%22Testcase name :%22 + testName + %22 is either null or invalid%22);
 %0A%0A      
@@ -474,68 +474,8 @@
  %7B%0A%0A
-            new Exception(%22Testcase name cannot be blank%22);%0A
     
@@ -531,24 +531,37 @@
 be blank%22);%0A
+            %0A
         %7D el
@@ -570,88 +570,8 @@
  %7B%0A%0A
-            new Exception(%22Testcase with name : %22 + testName + %22 : Not Found%22);%0A
     
@@ -632,16 +632,16 @@
 estName%0A
-
         
@@ -667,24 +667,45 @@
 ot Found%22);%0A
+                    %0A
         %7D%0A%0A 

Update TestNotFoundException.java