예제 #1
0
 @Test
 public void testSetClassResource() {
   ClassResource cr = EasyMock.createMock(ClassResource.class);
   EasyMock.replay(cr);
   injecter.setClassResource(cr);
   EasyMock.verify(cr);
 }
예제 #2
0
 @Test(expected = NullPointerException.class)
 public void testSetClassResource_nullArg() {
   injecter.setClassResource(null);
 }
예제 #3
0
 private void initializeInjecter() {
   injecter.setClassResource(sampleRes);
   injecter.setAction(action);
   injecter.setActionKey("doAction1");
 }