📄 sensornodetest.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */import java.util.ArrayList;import org.junit.After;import org.junit.AfterClass;import org.junit.Before;import org.junit.BeforeClass;import org.junit.Test;import static org.junit.Assert.*;/** * * @author Dhiraj */public class SensorNodeTest { public SensorNodeTest() { } @BeforeClass public static void setUpClass() throws Exception { } @AfterClass public static void tearDownClass() throws Exception { } @Before public void setUp() { } @After public void tearDown() { } /** * Test of getIXCord method, of class SensorNode. */ @Test public void testGetIXCord() { System.out.println("getIXCord"); SensorNode instance = null; int expResult = 0; int result = instance.getIXCord(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of setIXCord method, of class SensorNode. */ @Test public void testSetIXCord() { System.out.println("setIXCord"); int iXCord = 0; SensorNode instance = null; instance.setIXCord(iXCord); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of getIYCord method, of class SensorNode. */ @Test public void testGetIYCord() { System.out.println("getIYCord"); SensorNode instance = null; int expResult = 0; int result = instance.getIYCord(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of setIYCord method, of class SensorNode. */ @Test public void testSetIYCord() { System.out.println("setIYCord"); int iYCord = 0; SensorNode instance = null; instance.setIYCord(iYCord); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of getIIPAdd method, of class SensorNode. */ @Test public void testGetIIPAdd() { System.out.println("getIIPAdd"); SensorNode instance = null; int expResult = 0; int result = instance.getIIPAdd(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of setIIPAdd method, of class SensorNode. */ @Test public void testSetIIPAdd() { System.out.println("setIIPAdd"); int iIPAdd = 0; SensorNode instance = null; instance.setIIPAdd(iIPAdd); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of getIIPAddNeighbours method, of class SensorNode. */ @Test public void testGetIIPAddNeighbours() { System.out.println("getIIPAddNeighbours"); SensorNode instance = null; ArrayList<Integer> expResult = null; ArrayList<Integer> result = instance.getIIPAddNeighbours(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of setIIPAddNeighbours method, of class SensorNode. */ @Test public void testSetIIPAddNeighbours() { System.out.println("setIIPAddNeighbours"); ArrayList<Integer> alIPAddNeighbours = null; SensorNode instance = null; instance.setIIPAddNeighbours(alIPAddNeighbours); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of getIBatteryLevel method, of class SensorNode. */ @Test public void testGetIBatteryLevel() { System.out.println("getIBatteryLevel"); SensorNode instance = null; int expResult = 0; int result = instance.getIBatteryLevel(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of setIBatteryLevel method, of class SensorNode. */ @Test public void testSetIBatteryLevel() { System.out.println("setIBatteryLevel"); int iBatteryLevel = 0; SensorNode instance = null; instance.setIBatteryLevel(iBatteryLevel); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -