/** * Creates a set of mock objects based on another one. * The created mock objects will have their own * request and session objects, but they will share * one <code>ServletContext</code>. * @param factory the other factory */ public WebMockObjectFactory(WebMockObjectFactory factory) { createMockObjectsBasedOn(factory); }
/** * Creates a set of mock objects based on another one. * You can specify, if the created mock objects should * share the same session. They will share one * <code>ServletContext</code> anyway. * @param factory the other factory * @param createNewSession <code>true</code> creates a new session, * <code>false</code> uses the session from factory */ public WebMockObjectFactory(WebMockObjectFactory factory, boolean createNewSession) { createMockObjectsBasedOn(factory, createNewSession); }
private void createMockObjectsBasedOn(WebMockObjectFactory factory) { createMockObjectsBasedOn(factory, true); }
private void createMockObjectsBasedOn(WebMockObjectFactory factory) { createMockObjectsBasedOn(factory, true); }
private void createMockObjectsBasedOn(WebMockObjectFactory factory) { createMockObjectsBasedOn(factory, true); }
/** * Creates a set of mock objects based on another one. * The created mock objects will have their own * request and session objects, but they will share * one <code>ServletContext</code>. * @param factory the other factory * @see com.mockrunner.base.BaseTestCase#createWebMockObjectFactory(WebMockObjectFactory) */ public WebMockObjectFactory(WebMockObjectFactory factory) { createMockObjectsBasedOn(factory); }
/** * Creates a set of mock objects based on another one. * The created mock objects will have their own * request and session objects, but they will share * one <code>ServletContext</code>. * @param factory the other factory * @see com.mockrunner.base.BaseTestCase#createWebMockObjectFactory(WebMockObjectFactory) */ public WebMockObjectFactory(WebMockObjectFactory factory) { createMockObjectsBasedOn(factory); }
/** * Creates a set of mock objects based on another one. * You can specify, if the created mock objects should * share the same session. They will share one * <code>ServletContext</code> anyway. * @param factory the other factory * @param createNewSession <code>true</code> creates a new session, * <code>false</code> uses the session from factory * @see com.mockrunner.base.BaseTestCase#createWebMockObjectFactory(WebMockObjectFactory, boolean) */ public WebMockObjectFactory(WebMockObjectFactory factory, boolean createNewSession) { createMockObjectsBasedOn(factory, createNewSession); }
/** * Creates a set of mock objects based on another one. * You can specify, if the created mock objects should * share the same session. They will share one * <code>ServletContext</code> anyway. * @param factory the other factory * @param createNewSession <code>true</code> creates a new session, * <code>false</code> uses the session from factory * @see com.mockrunner.base.BaseTestCase#createWebMockObjectFactory(WebMockObjectFactory, boolean) */ public WebMockObjectFactory(WebMockObjectFactory factory, boolean createNewSession) { createMockObjectsBasedOn(factory, createNewSession); }