/*
 * ################################################################
 *
 * ProActive: The Java(TM) library for Parallel, Distributed,
 *            Concurrent computing with Security and Mobility
 *
 * Copyright (C) 1997-2007 INRIA/University of Nice-Sophia Antipolis
 * Contact: proactive@objectweb.org
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 *  Initial developer(s):               The ProActive Team
 *                        http://proactive.inria.fr/team_members.htm
 *  Contributor(s):
 *
 * ################################################################
 */
package functionalTests.gcmdeployment.virtualnode;

import java.io.FileNotFoundException;

import org.junit.Assert;
import org.junit.Test;
import org.objectweb.proactive.core.ProActiveException;
import org.objectweb.proactive.extra.gcmdeployment.PAGCMDeployment;
import org.objectweb.proactive.extra.gcmdeployment.GCMApplication.GCMApplication;
import org.objectweb.proactive.extra.gcmdeployment.core.GCMVirtualNode;

import functionalTests.gcmdeployment.Abstract;


public class TestVirtualNode4 extends Abstract {
    @Test
    public void test() throws FileNotFoundException, ProActiveException {
        GCMApplication gcma = PAGCMDeployment.loadApplicationDescriptor(getDescriptor(this));
        gcma.startDeployment();
        waitAllocation();

        GCMVirtualNode vn = gcma.getVirtualNode("vn");
        Assert.assertEquals(5, vn.getCurrentNodes().size());
    }
}

@@ -1640,24 +1640,67 @@
 rtualNode;%0A%0A
+import functionalTests.GCMDeploymentReady;%0A
 import funct
@@ -1736,16 +1736,36 @@
 ract;%0A%0A%0A
+@GCMDeploymentReady%0A
 public c
@@ -2027,27 +2027,26 @@
     
-waitAllocation
+gcma.waitReady
 ();%0A
-%0A
     

Use waitReady instead waitAllocation (faster & safer)