@@ -0,0 +1,1237 @@
+package org.objectweb.proactive.core.node.test;%0A%0Aimport junit.framework.Test;%0Aimport junit.framework.TestCase;%0Aimport junit.framework.TestResult;%0Aimport junit.framework.TestSuite;%0Aimport org.objectweb.proactive.core.node.Node;%0Aimport org.objectweb.proactive.core.node.NodeException;%0Aimport org.objectweb.proactive.core.node.NodeFactory;%0A%0Apublic class NodeFactoryTest extends TestCase %7B%0A%0A%09public static Test suite() %7B%0A%09%09TestSuite suite = new TestSuite();%0A%09%09suite.addTest(new NodeFactoryTest(%22testCreateNode%22));%0A%09%09return suite;%0A%09%7D%0A%0A%09public NodeFactoryTest(String str) %7B%0A%09%09super(str);%0A%09%7D%0A%0A%09public void testCreateNode() %7B%0A%09%09Node node = null;%0A%09%09Node node2 = null;%0A%09%09try %7B%0A%09%09%09node = NodeFactory.createNode(%22//tata/Node%22, true);%0A%09%09%7D catch (NodeException e) %7B%0A%09%09%7D%0A%09%09try %7B%0A%09%09%09node2 = NodeFactory.createNode(%22//localhost/Node%22, true);%0A%09%09%7D catch (NodeException e) %7B%0A%09%09%7D%0A%09%09assertNull(%22 Node should not have been created%22, node);%0A%09%09assertNotNull(%22 Node should have been created%22, node2);%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09NodeFactoryTest test = new NodeFactoryTest(%22testCreateNode%22);%0A%09%09TestResult result = test.run();%0A%09%09System.out.println(%22Errors %22 + result.errorCount());%0A%09%09System.out.println(%22Failures %22 + result.failureCount());%0A%09%7D%0A%7D

change location(ie package)