commandfactorytest.java

来自「Java编写个人日程管理工具, 具有添加编辑日程和自动适应功能, 程序包含完整的」· Java 代码 · 共 67 行

JAVA
67
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package ui;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 Administrator */public class CommandFactoryTest {    public CommandFactoryTest() {    }    @BeforeClass    public static void setUpClass() throws Exception {    }    @AfterClass    public static void tearDownClass() throws Exception {    }    @Before    public void setUp() {    }    @After    public void tearDown() {    }    /**     * Test of getInstance method, of class CommandFactory.     */    @Test    public void getInstance() {        System.out.println("getInstance");        CommandFactory expResult = null;        CommandFactory result = CommandFactory.getInstance();        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 factory method, of class CommandFactory.     */    @Test    public void factory() {        System.out.println("factory");        String which = "";        Command expResult = null;        Command result = CommandFactory.factory(which);        assertEquals(expResult, result);        // 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 + -
显示快捷键?