@@ -0,0 +1,2628 @@
+/*%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*/%0Apackage nonregressiontest.activeobject.request.terminate;%0A%0Aimport nonregressiontest.activeobject.request.A;%0A%0Aimport org.objectweb.proactive.ProActive;%0Aimport org.objectweb.proactive.core.ProActiveException;%0A%0Aimport testsuite.test.ProActiveFunctionalTest;%0A%0Aimport java.io.IOException;%0A%0A%0A/**%0A * @author rquilici%0A *%0A * To change this generated comment edit the template variable %22typecomment%22:%0A * Window%3EPreferences%3EJava%3ETemplates.%0A * To enable and disable the creation of type comments go to%0A * Window%3EPreferences%3EJava%3ECode Generation.%0A */%0Apublic class Test extends ProActiveFunctionalTest %7B%0A    A a;%0A%0A    public Test() %7B%0A        super(%22Active Object termination%22, %22Test sending termination method%22);%0A    %7D%0A%0A    /**%0A     * @see testsuite.test.FunctionalTest#action()%0A     */%0A    public void action() throws Exception %7B%0A        a = (A) ProActive.newActive(A.class.getName(), new Object%5B0%5D);%0A        a.method1();%0A        a.exit();%0A        Thread.sleep(5000);%0A    %7D%0A%0A    /**%0A     * @see testsuite.test.AbstractTest#initTest()%0A     */%0A    public void initTest() throws Exception %7B%0A    %7D%0A%0A    /**%0A     * @see testsuite.test.AbstractTest#endTest()%0A     */%0A    public void endTest() throws Exception %7B%0A    %7D%0A%0A    public boolean postConditions() throws Exception %7B%0A        try %7B%0A            a.method1();%0A        %7D catch (Exception e) %7B%0A            return true;%0A        %7D%0A        return false;%0A    %7D%0A%7D%0A

Test terminate