sensornetworktest.java

来自「Sensor net work simulator in Java」· Java 代码 · 共 76 行

JAVA
76
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */import java.awt.Graphics;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 SensorNetworkTest {    public SensorNetworkTest() {    }    @BeforeClass    public static void setUpClass() throws Exception {    }    @AfterClass    public static void tearDownClass() throws Exception {    }    @Before    public void setUp() {    }    @After    public void tearDown() {    }    /**     * Test of initializeNetwork method, of class SensorNetwork.     */    @Test    public void testInitializeNetwork() {        System.out.println("initializeNetwork");        SensorNetwork instance = null;        instance.initializeNetwork();        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }    /**     * Test of drawNetwork method, of class SensorNetwork.     */    @Test    public void testDrawNetwork() {        System.out.println("drawNetwork");        SensorNetwork instance = null;        instance.drawNetwork();        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }    /**     * Test of setGDraw method, of class SensorNetwork.     */    @Test    public void testSetGDraw() {        System.out.println("setGDraw");        Graphics gDraw = null;        SensorNetwork instance = null;        instance.setGDraw(gDraw);        // 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 + =
减小字号Ctrl + -
显示快捷键?