01: package com.mockrunner.test.web;
02:
03: import com.mockrunner.mock.web.WebMockObjectFactory;
04: import com.mockrunner.servlet.BasicServletTestCaseAdapter;
05:
06: public class BasicServletTestCaseAdapterTest extends
07: BasicServletTestCaseAdapter {
08: public void testSetWebFactory() {
09: WebMockObjectFactory webFactory = new WebMockObjectFactory();
10: setWebMockObjectFactory(webFactory);
11: assertSame(webFactory, getWebMockObjectFactory());
12: setWebMockObjectFactory(null);
13: assertNotNull(getWebMockObjectFactory());
14: assertNotSame(webFactory, getWebMockObjectFactory());
15: }
16: }
|