SPRNET-1387: ASP.NET PageHandlerFactory cannot inject dependencies in the presence of the WebForms 4.0 routing infrastructure
- Changed how the WebSupportModule detects when it should inject into a Page Signed-off-by: Andreas Kluth <mail@andreaskluth.net>
This commit is contained in:
@@ -1,4 +1,24 @@
|
||||
using Apache.NMS;
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright © 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
using Apache.NMS;
|
||||
using NUnit.Framework;
|
||||
using Spring.Collections;
|
||||
|
||||
|
||||
@@ -271,5 +271,15 @@ namespace Spring.Util
|
||||
Assert.AreEqual("/mYpath", WebUtils.GetRelativePath("/Mydir", "/mYdir/mYpath"));
|
||||
Assert.AreEqual("/myotherdir/mypath", WebUtils.GetRelativePath("/mydir", "/myotherdir/mypath"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void GetNormalizedVirtualPath()
|
||||
{
|
||||
Assert.AreEqual(null, WebUtils.GetNormalizedVirtualPath(null));
|
||||
Assert.AreEqual(String.Empty, WebUtils.GetNormalizedVirtualPath(String.Empty));
|
||||
Assert.AreEqual("~test.aspx", WebUtils.GetNormalizedVirtualPath("~test.aspx"));
|
||||
Assert.AreEqual("/test.aspx", WebUtils.GetNormalizedVirtualPath("~/test.aspx"));
|
||||
Assert.AreEqual("/Complex.Path/~/test.aspx", WebUtils.GetNormalizedVirtualPath("~/Complex.Path/~/test.aspx"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user