/******************************************************************************* * Copyright (c) 2014 Imperial College London * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Raul Castro Fernandez - initial API and implementation ******************************************************************************/ package uk.ac.imperial.lsds.seep.comm; import java.net.InetAddress; import uk.ac.imperial.lsds.seep.infrastructure.master.Node; import junit.framework.*; /** * The class <code>NodeManagerCommunicationTest</code> contains tests for the class <code>{@link NodeManagerCommunication}</code>. * * @generatedBy CodePro at 18/10/13 18:58 * @author rc3011 * @version $Revision: 1.0 $ */ public class NodeManagerCommunicationTest extends TestCase { /** * Run the void sendBootstrapInformation(int,InetAddress,int) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendBootstrapInformation_1() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); int port = 1; InetAddress bindAddr = InetAddress.getLocalHost(); int ownPort = 1; fixture.sendBootstrapInformation(port, bindAddr, ownPort); // add additional test code here } /** * Run the void sendBootstrapInformation(int,InetAddress,int) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendBootstrapInformation_2() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); int port = 1; InetAddress bindAddr = InetAddress.getLocalHost(); int ownPort = 1; fixture.sendBootstrapInformation(port, bindAddr, ownPort); // add additional test code here } /** * Run the void sendBootstrapInformation(int,InetAddress,int) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendBootstrapInformation_3() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); int port = 1; InetAddress bindAddr = InetAddress.getLocalHost(); int ownPort = 1; fixture.sendBootstrapInformation(port, bindAddr, ownPort); // add additional test code here } /** * Run the void sendBootstrapInformation(int,InetAddress,int) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendBootstrapInformation_4() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); int port = 1; InetAddress bindAddr = InetAddress.getLocalHost(); int ownPort = 1; fixture.sendBootstrapInformation(port, bindAddr, ownPort); // add additional test code here } /** * Run the void sendBootstrapInformation(int,InetAddress,int) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendBootstrapInformation_5() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); int port = 1; InetAddress bindAddr = InetAddress.getLocalHost(); int ownPort = 1; fixture.sendBootstrapInformation(port, bindAddr, ownPort); // add additional test code here } /** * Run the void sendBootstrapInformation(int,InetAddress,int) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendBootstrapInformation_6() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); int port = 1; InetAddress bindAddr = InetAddress.getLocalHost(); int ownPort = 1; fixture.sendBootstrapInformation(port, bindAddr, ownPort); // add additional test code here } /** * Run the void sendFile(Node,byte[]) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendFile_1() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); byte[] data = new byte[] {}; fixture.sendFile(n, data); // add additional test code here } /** * Run the void sendFile(Node,byte[]) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendFile_2() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); byte[] data = new byte[] {}; fixture.sendFile(n, data); // add additional test code here } /** * Run the void sendFile(Node,byte[]) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendFile_3() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); byte[] data = new byte[] {}; fixture.sendFile(n, data); // add additional test code here } /** * Run the void sendFile(Node,byte[]) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendFile_4() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); byte[] data = new byte[] {}; fixture.sendFile(n, data); // add additional test code here } /** * Run the void sendFile(Node,byte[]) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendFile_5() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); byte[] data = new byte[] {}; fixture.sendFile(n, data); // add additional test code here } /** * Run the void sendFile(Node,byte[]) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendFile_6() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); byte[] data = new byte[] {}; fixture.sendFile(n, data); // add additional test code here } /** * Run the void sendFile(Node,byte[]) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendFile_7() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); byte[] data = new byte[] {}; fixture.sendFile(n, data); // add additional test code here } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_1() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_2() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_3() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_4() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_5() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_6() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_7() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_8() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Run the boolean sendObject(Node,Object) method test. * * @throws Exception * * @generatedBy CodePro at 18/10/13 18:58 */ public void testSendObject_9() throws Exception { NodeManagerCommunication fixture = new NodeManagerCommunication(); Node n = new Node(InetAddress.getLocalHost(), 1); Object o = new Object(); boolean result = fixture.sendObject(n, o); // add additional test code here assertEquals(false, result); } /** * Perform pre-test initialization. * * @throws Exception * if the initialization fails for some reason * * @see TestCase#setUp() * * @generatedBy CodePro at 18/10/13 18:58 */ protected void setUp() throws Exception { super.setUp(); // add additional set up code here } /** * Perform post-test clean-up. * * @throws Exception * if the clean-up fails for some reason * * @see TestCase#tearDown() * * @generatedBy CodePro at 18/10/13 18:58 */ protected void tearDown() throws Exception { super.tearDown(); // Add additional tear down code here } /** * Launch the test. * * @param args the command line arguments * * @generatedBy CodePro at 18/10/13 18:58 */ public static void main(String[] args) { if (args.length == 0) { // Run all of the tests junit.textui.TestRunner.run(NodeManagerCommunicationTest.class); } else { // Run only the named tests TestSuite suite = new TestSuite("Selected tests"); for (int i = 0; i < args.length; i++) { TestCase test = new NodeManagerCommunicationTest(); test.setName(args[i]); suite.addTest(test); } junit.textui.TestRunner.run(suite); } } }