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