01: package com.mockrunner.test.web;
02:
03: import com.mockrunner.mock.web.ActionMockObjectFactory;
04: import com.mockrunner.struts.BasicActionTestCaseAdapter;
05:
06: public class BasicActionTestCaseAdapterTest extends
07: BasicActionTestCaseAdapter {
08: public void testSetWebFactory() {
09: ActionMockObjectFactory actionFactory = new ActionMockObjectFactory();
10: setActionMockObjectFactory(actionFactory);
11: assertSame(actionFactory, getActionMockObjectFactory());
12: setActionMockObjectFactory(null);
13: assertNotNull(getActionMockObjectFactory());
14: assertNotSame(actionFactory, getActionMockObjectFactory());
15: }
16: }
|