示例#1
0
文件: CommandTest.java 项目: mjlim/db
 @Test
 public void testAddCommand() throws Exception {
   assertEquals(Command.ADD, Command.findByStr("add"));
 }
示例#2
0
文件: CommandTest.java 项目: mjlim/db
 @Test
 public void testEmptyCommand() throws Exception {
   assertEquals(null, Command.findByStr(""));
 }
示例#3
0
文件: CommandTest.java 项目: mjlim/db
 @Test
 public void testUpdateCommand() throws Exception {
   assertEquals(Command.UPDATE, Command.findByStr("update"));
 }
示例#4
0
文件: CommandTest.java 项目: mjlim/db
 @Test
 public void testNotCommand() throws Exception {
   assertEquals(null, Command.findByStr("notacommand"));
 }
示例#5
0
文件: CommandTest.java 项目: mjlim/db
 @Test
 public void testModifyCommand() throws Exception {
   assertEquals(Command.FIND, Command.findByStr("find"));
 }