Пример #1
0
 @Test
 public void testSetAction() {
   Action localAction = EasyMock.createMock(Action.class);
   EasyMock.replay(localAction);
   injecter.setAction(localAction);
   EasyMock.verify(localAction);
 }
Пример #2
0
 @Test(expected = NullPointerException.class)
 public void testSetAction_nullArg() {
   injecter.setAction(null);
 }
Пример #3
0
 private void initializeInjecter() {
   injecter.setClassResource(sampleRes);
   injecter.setAction(action);
   injecter.setActionKey("doAction1");
 }