Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Data/Spring/Context/Support/WebApplicationContextTests
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5850/test/Spring/Spring.Web.Tests/Data/Spring/Context/Support/WebApplicationContextTests
Added Files:
.cvsignore Dummy.aspx Web.Config
Log Message:
fixed SPRNET-824
additional tests
--- NEW FILE: Web.Config ---
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/>
</sectionGroup>
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
</configSections>
<!-- to see logging output in the attached debugger -->
<common>
<logging>
<factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging">
<arg key="Level" value="ALL" />
</factoryAdapter>
</logging>
</common>
<system.web>
<compilation debug="true" />
<!--
The following needs to be configured in order to enable Spring.NET Web Framework features
-->
<httpModules>
<add name="SpringModule" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
<add name="NUnitAspExModule" type="NUnitAspEx.AspTestExecutionModule, NUnitAspEx" />
</httpModules>
<httpHandlers>
<add verb="*" path="*.oaspx" type="System.Web.UI.PageHandlerFactory"/>
<add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
<add verb="*" path="*.testmethod" type="NUnitAspEx.AspTestMethodHandler, NUnitAspEx" validate="false" />
</httpHandlers>
</system.web>
<spring>
<context>
<resource uri="config://spring/objects"/>
</context>
<objects xmlns="http://www.springframework.net">
<object type="Dummy.aspx"/>
<object id="singletonObject" type="System.Object" />
<object id="prototypeObject" type="System.Object" singleton="false" />
<object id="requestScopedObject" type="System.Object" scope="request" />
<object id="sessionScopedObject" type="System.Object" scope="session" />
<object id="applicationScopedObject" type="System.Object" scope="application" />
</objects>
</spring>
</configuration>
--- NEW FILE: .cvsignore ---
bin
--- NEW FILE: Dummy.aspx ---
<%@ Page language="c#" EnableSessionState="false" AutoEventWireup="false" Inherits="Spring.Web.UI.Page" %><script language="c#" runat="server">
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
try
{
Session["disablesSession"] = "somevalue";
NUnit.Framework.Assert.Fail("must not be able to access session");
}
catch(HttpException)
{}
}
</script>OK
|