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