Example #1
0
 @Test
 public void testAddCommand() throws Exception {
   assertEquals(Command.ADD, Command.findByStr("add"));
 }
Example #2
0
 @Test
 public void testEmptyCommand() throws Exception {
   assertEquals(null, Command.findByStr(""));
 }
Example #3
0
 @Test
 public void testUpdateCommand() throws Exception {
   assertEquals(Command.UPDATE, Command.findByStr("update"));
 }
Example #4
0
 @Test
 public void testNotCommand() throws Exception {
   assertEquals(null, Command.findByStr("notacommand"));
 }
Example #5
0
 @Test
 public void testModifyCommand() throws Exception {
   assertEquals(Command.FIND, Command.findByStr("find"));
 }