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