package nonregressiontest;

import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.SimpleLayout;

import testsuite.group.Group;

import testsuite.manager.ProActiveFuncTestManager;

import java.io.File;
import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;


/**
 * @author rquilici
 *
 * To change this generated comment edit the template variable "typecomment":
 * Window>Preferences>Java>Templates.
 * To enable and disable the creation of type comments go to
 * Window>Preferences>Java>Code Generation.
 */
public class MainManager extends ProActiveFuncTestManager {

    /**
     * Constructor for MainManager.
     */
    public MainManager() {
        this("Main unit test manager", "Manage all unit non-regression tests");
        logger.addAppender(new ConsoleAppender(new SimpleLayout()));
    }

    /**
     * Constructor for MainManager.
     * @param name
     * @param description
     */
    public MainManager(String name, String description) {
        super(name, description);
    }

    /**
     * @see testsuite.manager.AbstractManager#initManager()
     */
    public void initManager() throws Exception {
        Group testGroup = new Group("Unit test group", "group of unit tests",
                new File("/net/home/adicosta/workspace/ProActive/classes/"),
                "nonregressiontest", null, false, this);
        add(testGroup);
    }

    public static void main(String[] args) {
        MainManager manager = new MainManager();
        manager.execute(false);
        manager.setVerbatim(true);
        try {
            manager.toHTML(new File("/net/home/adicosta/test.html"));
        } catch (ParserConfigurationException e) {
            e.printStackTrace();
        } catch (TransformerException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.exit(0);
    }
}

@@ -1,8 +1,1245 @@
+/*%0A* ################################################################%0A*%0A* ProActive: The Java(TM) library for Parallel, Distributed,%0A*            Concurrent computing with Security and Mobility%0A*%0A* Copyright (C) 1997-2002 INRIA/University of Nice-Sophia Antipolis%0A* Contact: proactive-support@inria.fr%0A*%0A* This library is free software; you can redistribute it and/or%0A* modify it under the terms of the GNU Lesser General Public%0A* License as published by the Free Software Foundation; either%0A* version 2.1 of the License, or any later version.%0A*%0A* This library is distributed in the hope that it will be useful,%0A* but WITHOUT ANY WARRANTY; without even the implied warranty of%0A* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A* Lesser General Public License for more details.%0A*%0A* You should have received a copy of the GNU Lesser General Public%0A* License along with this library; if not, write to the Free Software%0A* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307%0A* USA%0A*%0A*  Initial developer(s):               The ProActive Team%0A*                        http://www.inria.fr/oasis/ProActive/contacts.html%0A*  Contributor(s):%0A*%0A* ################################################################%0A*/%0A
 package 
@@ -1889,16 +1889,189 @@
 nager %7B%0A
+    private static String FS = System.getProperty(%22file.separator%22);%0A    private static String RESULT_LOCATION = System.getProperty(%22user.home%22) +%0A        FS + %22test.html%22;%0A
 %0A    /**
@@ -2063,36 +2063,32 @@
 html%22;%0A%0A    /**%0A
-    
  * Constructor f
@@ -2103,20 +2103,16 @@
 anager.%0A
-    
  */%0A    
@@ -2298,20 +2298,16 @@
     /**%0A
-    
  * Const
@@ -2330,20 +2330,16 @@
 anager.%0A
-    
  * @para
@@ -2345,20 +2345,16 @@
 am name%0A
-    
  * @para
@@ -2367,20 +2367,16 @@
 ription%0A
-    
  */%0A    
@@ -2478,20 +2478,16 @@
     /**%0A
-    
  * @see 
@@ -2534,20 +2534,16 @@
 nager()%0A
-    
  */%0A    
@@ -2705,26 +2705,16 @@
 ome/
-adicosta/workspace
+rquilici
 /Pro
@@ -3035,38 +3035,23 @@
 ile(
-%22/net/home/adicosta/test.html%22
+RESULT_LOCATION
 ));%0A

formatted with Jalopy