From: Juergen H. <jho...@us...> - 2006-04-21 00:06:47
|
Update of /cvsroot/springframework/spring/mock/org/springframework/mock/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16066/mock/org/springframework/mock/web Modified Files: Tag: mbranch-1-2 MockFilterConfig.java Log Message: added overloaded constructors, using a MockServletContext instead of a ServletContext argument Index: MockFilterConfig.java =================================================================== RCS file: /cvsroot/springframework/spring/mock/org/springframework/mock/web/MockFilterConfig.java,v retrieving revision 1.4.4.1 retrieving revision 1.4.4.2 diff -C2 -d -r1.4.4.1 -r1.4.4.2 *** MockFilterConfig.java 9 Jan 2006 22:46:02 -0000 1.4.4.1 --- MockFilterConfig.java 21 Apr 2006 00:06:39 -0000 1.4.4.2 *************** *** 1,4 **** /* ! * Copyright 2002-2005 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); --- 1,4 ---- /* ! * Copyright 2002-2006 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); *************** *** 61,64 **** --- 61,79 ---- } + /** + * Create new MockServletConfig with a MockServletContext. + */ + public MockFilterConfig() { + this(new MockServletContext()); + } + + /** + * Create new MockServletConfig with a MockServletContext. + * @param filterName the name of the filter + */ + public MockFilterConfig(String filterName) { + this(new MockServletContext(), filterName); + } + public String getFilterName() { |