Пример #1
0
 @Test
 public void testSetActionKey() {
   injecter.setActionKey("action.key");
 }
Пример #2
0
 @Test(expected = IllegalArgumentException.class)
 public void testSetActionKey_emptyArg() {
   injecter.setActionKey("");
 }
Пример #3
0
 private void initializeInjecter() {
   injecter.setClassResource(sampleRes);
   injecter.setAction(action);
   injecter.setActionKey("doAction1");
 }
Пример #4
0
 @Test(expected = NullPointerException.class)
 public void testSetActionKey_nullArg() {
   injecter.setActionKey(null);
 }