springnet-commits Mailing List for Spring Framework .NET (Page 27)
Brought to you by:
aseovic,
markpollack
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(33) |
Aug
(163) |
Sep
(491) |
Oct
(289) |
Nov
(336) |
Dec
(84) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(227) |
Feb
(413) |
Mar
(128) |
Apr
(232) |
May
(92) |
Jun
(299) |
Jul
(386) |
Aug
(228) |
Sep
(237) |
Oct
(426) |
Nov
(325) |
Dec
(405) |
2006 |
Jan
(315) |
Feb
(311) |
Mar
(152) |
Apr
(177) |
May
(443) |
Jun
(92) |
Jul
(88) |
Aug
(80) |
Sep
(288) |
Oct
(515) |
Nov
(1049) |
Dec
(440) |
2007 |
Jan
(179) |
Feb
(406) |
Mar
(294) |
Apr
(80) |
May
(432) |
Jun
(242) |
Jul
(452) |
Aug
(710) |
Sep
(206) |
Oct
(240) |
Nov
(65) |
Dec
(227) |
2008 |
Jan
(80) |
Feb
(90) |
Mar
(98) |
Apr
(136) |
May
(101) |
Jun
(12) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mark P. <mar...@us...> - 2007-12-06 06:42:07
|
Update of /cvsroot/springnet/Spring.Net In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7931 Modified Files: changelog.txt Log Message: misc updates Index: changelog.txt =================================================================== RCS file: /cvsroot/springnet/Spring.Net/changelog.txt,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** changelog.txt 16 Oct 2007 16:22:18 -0000 1.28 --- changelog.txt 6 Dec 2007 06:42:00 -0000 1.29 *************** *** 3,9 **** http://www.springframework.net Release 1.1 RC2, October 15, 2007 ! (Note: A bug in the dbproviders.xml file was discovered shortly after the initial release of 1.1 RC2. A new version was uploaded with the same name. This should not present a problem, but if you have trouble creating an OracleODP-2.0 provider, please download again) Bug --- 3,72 ---- http://www.springframework.net + Release 1.1 final, December 7, 2007 + + Bug + + [SPRNET-394] - Recursive calls to Context.GetRegistry() + [SPRNET-448] - TransactionTimeout setting not being applied correctly. + [SPRNET-453] - ConversionUtils should use ConvertFromInvariantString if failed to convert string value. + [SPRNET-606] - Problems with Attributes in proxy generation + [SPRNET-719] - PropertyPlaceholderConfigurer does not replace property values in <list element-type=${prop}> + [SPRNET-723] - Head control renders not XHTML valid script tag + [SPRNET-752] - Implement advanced DataSet related methods in AdoTemplate + [SPRNET-759] - Wrong assembly named used to configure NHibernate12's SessionFactory property ExposeTransactionAwareSessionFactory + [SPRNET-760] - StoredProcedure.DeclaredParameters.AddOut("A", OracleType.Cursor); causes double ':' in Oracle10g stored procedure call + [SPRNET-761] - Fix use of Nested Transactions in TxScopeTransactionManager. + [SPRNET-769] - Resume and throw exception if exception is thrown at start of transaction. + [SPRNET-770] - Nested RequiresNew propagaion options not working in AdoPlatformTransaction manager . + [SPRNET-778] - AdoExceptionTranslator in HibernateTransactionManager did not have a default value + [SPRNET-796] - AdoTemplate not using DbMetadata for CommandBuilderDeriveParamtersMethod + + Improvement + + [SPRNET-497] - Print 'resultName's value if Page.SetResult() is called with a non-existant result name + [SPRNET-514] - dbproviders.xml configuration should allow for an optional 'DeriveParameters' method. + [SPRNET-540] - Warning for ProxyTargetType pitfall + [SPRNET-555] - Improve ResourceSetMessageSource documentation and add example for ASP.NET 2.0 + [SPRNET-756] - Add protected method to ErrorCodeExceptionTranslator to allow for a subclass to first attempt exception translation. + [SPRNET-766] - Add support for Sybase provider + [SPRNET-768] - Add support for ODBC provider + [SPRNET-774] - Add Designmode support for DataBindingPanel + [SPRNET-784] - WebServiceProxyFactory support for SoapHeaderAttribute with Direction=SoapHeaderDirection.In + [SPRNET-793] - Add Execute methods missing in Generic.AdoTemplate but present in non-generic version. + [SPRNET-797] - Make it such that DefaultTransactionStatus property Rollback can only be set to true + + Task + + [SPRNET-203] - Add test coverage for Spring.Net Web module + [SPRNET-217] - QuickStart documents for Spring.Air + [SPRNET-401] - Show use case of strategy/command pattern usage to create/set objects parameters at runtime. + [SPRNET-421] - Document programmatic use of data validation framework + [SPRNET-457] - Investigate AdoTemplate behavior when contraint is violated. + [SPRNET-511] - Clean up IResource code/comments + [SPRNET-516] - Improve documentation on Spring.Data DataSet functionality + [SPRNET-574] - NHibernate and custom loader + [SPRNET-587] - Add example of validation usage in middle tier services + [SPRNET-590] - Include use of Spring's implementation of NHibernate's ICurrentSessionContext in demo appliation. + [SPRNET-609] - AOP documentation should describe in detail differences using ProxyTargetType value on ProxyFactoryObject + [SPRNET-610] - AOP documentation improvements + [SPRNET-682] - Change vs.net 2002 solution to be Spring.Net.1.1.2002.sln + [SPRNET-689] - Add more documentation describing ITransactionAttributeSource implementations. + [SPRNET-708] - Remove "UniqueID" based usercontrol DI sample from web reference docs + [SPRNET-726] - Improve Spring.Data.NHibernate docs w.r.t FlushMode.Never in OSIV + [SPRNET-744] - update assembly version numbers to current builds in dbproviders.xml + [SPRNET-764] - NUnit 2.4.3 GUI-runner not executing Spring.Testing.NUnit based tests linked to NUnit 2.4.1. + [SPRNET-773] - Unit tests for ServiceDomainTransactionManager + [SPRNET-775] - Document using a custom IFactoryObject to help with configuring embedded resources + [SPRNET-776] - Unit tests for AdoPlatformTransactionManager + [SPRNET-777] - Provide 10,000 ft intro page on spring.net features on web site + [SPRNET-781] - Add new providers added to dbproviders.xml to spring-dataase-1.1.xsd + [SPRNET-786] - Fix Spring.Data related projects in Spring VS2003 solution + [SPRNET-787] - add examples for DataBindingPanel to WebQuickStart + [SPRNET-788] - integrate Spring.Web.Tests with NUnitAspEx to support real HttpRuntime-integrated tests + + Release 1.1 RC2, October 15, 2007 ! (Note: A bug in the dbproviders.xml file was discovered shortly after the initial release of 1.1 RC2. A new version was uploaded with the same name. This should not present a problem, but if you have trouble creating an OracleODP-2.0 provider, please download again as it may take up to a day for the proxy servers to get updated) Bug |
From: Mark P. <mar...@us...> - 2007-12-06 06:26:35
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv1752 Modified Files: ado.xml index.xml objects.xml orm.xml Log Message: doc improvements. Index: index.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/index.xml,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** index.xml 11 Oct 2007 16:05:50 -0000 1.75 --- index.xml 6 Dec 2007 06:26:30 -0000 1.76 *************** *** 54,59 **** <title>The Spring.NET Framework</title> <subtitle>Reference Documentation</subtitle> ! <releaseinfo>Version 1.1 RC2</releaseinfo> ! <pubdate>Last Updated October 15, 2007</pubdate> <authorgroup> <author> --- 54,59 ---- <title>The Spring.NET Framework</title> <subtitle>Reference Documentation</subtitle> ! <releaseinfo>Version 1.1 final</releaseinfo> ! <pubdate>Last Updated December 7, 2007</pubdate> <authorgroup> <author> Index: orm.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/orm.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** orm.xml 3 Oct 2007 14:38:35 -0000 1.12 --- orm.xml 6 Dec 2007 06:26:31 -0000 1.13 *************** *** 200,204 **** a data access layer also configured using XML. An XML fragment showing the declaration of <classname>HibernateTransactionManager</classname> is ! shown below. </para> <programlisting> <object id="HibernateTransactionManager" --- 200,204 ---- a data access layer also configured using XML. An XML fragment showing the declaration of <classname>HibernateTransactionManager</classname> is ! shown below.</para> <programlisting> <object id="HibernateTransactionManager" *************** *** 298,301 **** --- 298,310 ---- </objects></programlisting> + + <para>The location of NHibernate mapping information can also be + specified using Spring's <link linkend="resources">IResource + abstraction</link> via the property <literal>MappingResources</literal>. + The IResource abstraction supports opening and input stream from + assemblies, file system, and http(s) based on a uri syntax. You can also + leverage the extensiblity of IResoure and thereby allow NHibernate to + obtain its configuration information from locations such as a database + or ldap. </para> </section> Index: ado.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/ado.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** ado.xml 27 Nov 2007 21:01:42 -0000 1.20 --- ado.xml 6 Dec 2007 06:26:30 -0000 1.21 *************** *** 85,91 **** <listitem> ! <para>Mapping DBNull values - Strategy for providing centralized and ! transparent mapping of DBNull values to CLR types when accessing an ! IDataReader.</para> </listitem> --- 85,93 ---- <listitem> [...1007 lines suppressed...] ! { ! DeriveParameters(); ! AddRowMapper("orderDetailRowMapper", new OrderDetailRowMapper<OrderDetails>() ); ! Compile(); ! } ! ! public virtual List<OrderDetails> GetOrderDetails(int orderid) ! { ! ! IDictionary outParams = Query<OrderDetails>(orderid); ! return outParams["orderDetailRowMapper"] as List<OrderDetails>; ! } ! ! }</programlisting> ! ! <para>You can find ready to run code demonstrating the StoredProcedure ! class in the example 'Data Access' that is part of the Spring.NET ! distribution.</para> </sect2> </sect1> Index: objects.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/objects.xml,v retrieving revision 1.109 retrieving revision 1.110 diff -C2 -d -r1.109 -r1.110 *** objects.xml 27 Nov 2007 21:01:42 -0000 1.109 --- objects.xml 6 Dec 2007 06:26:30 -0000 1.110 *************** *** 3918,3922 **** </sect3> ! <sect3> <title>IVariableSource</title> --- 3918,3922 ---- </sect3> ! <sect3 id="objects-variablesource"> <title>IVariableSource</title> |
From: Mark P. <mar...@us...> - 2007-12-06 06:23:42
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv590 Modified Files: DefaultTransactionStatus.cs Log Message: SPRNET-797 - Make it such that DefaultTransactionStatus property Rollback can only be set to true Index: DefaultTransactionStatus.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Support/DefaultTransactionStatus.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** DefaultTransactionStatus.cs 29 Aug 2007 03:42:20 -0000 1.13 --- DefaultTransactionStatus.cs 6 Dec 2007 06:23:33 -0000 1.14 *************** *** 213,216 **** --- 213,217 ---- /// <see cref="Spring.Transaction.Support.ISmartTransactionObject"/> interface. /// </summary> + /// <remarks>The property can only be set to true.</remarks> public bool RollbackOnly { *************** *** 218,222 **** return ( LocalRollbackOnly || GlobalRollbackOnly); } ! set { _rollbackOnly = value; } } #endregion --- 219,224 ---- return ( LocalRollbackOnly || GlobalRollbackOnly); } ! ! set { if (value) {_rollbackOnly = value;} } } #endregion |
From: Mark P. <mar...@us...> - 2007-12-06 06:21:37
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv32259 Modified Files: AdoTemplate.cs Log Message: SPRNET-796 - AdoTemplate not using DbMetadata for CommandBuilderDeriveParamtersMethod Index: AdoTemplate.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core/AdoTemplate.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AdoTemplate.cs 4 Dec 2007 06:52:19 -0000 1.7 --- AdoTemplate.cs 6 Dec 2007 06:21:25 -0000 1.8 *************** *** 2617,2621 **** //The DeriveParameter is static in all providers...it seems.... Type commandBuilderType = provider.DbMetadata.CommandBuilderType; ! commandBuilderType.InvokeMember("DeriveParameters", BindingFlags.Static | BindingFlags.Public | BindingFlags.InvokeMethod, null, null, new object[] { command }); --- 2617,2621 ---- //The DeriveParameter is static in all providers...it seems.... Type commandBuilderType = provider.DbMetadata.CommandBuilderType; ! commandBuilderType.InvokeMember(provider.DbMetadata.CommandBuilderDeriveParametersMethod.Name, BindingFlags.Static | BindingFlags.Public | BindingFlags.InvokeMethod, null, null, new object[] { command }); *************** *** 2635,2639 **** } } - //AdoRowCallbackCommandCallback private class AdoRowCallbackCommandCallback : ICommandCallback --- 2635,2638 ---- *************** *** 2736,2765 **** - private class ExecuteNonQueryCallback : ICommandCallback, ICommandTextProvider - { - private CommandType commandType = CommandType.Text; - private string commandText; - - public ExecuteNonQueryCallback(CommandType cmdType, string cmdText) - { - commandType = cmdType; - commandText = cmdText; - } - - public string CommandText - { - get { return commandText; } - } - - public Object DoInCommand(IDbCommand command) - { - command.CommandType = commandType; - command.CommandText = commandText; - return command.ExecuteNonQuery(); - } - } - - - private class ExecuteNonQueryCallbackWithParameters : ICommandCallback, ICommandTextProvider { --- 2735,2738 ---- |
From: Mark P. <mar...@us...> - 2007-12-06 06:12:01
|
Update of /cvsroot/springnet/Spring.Net In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv28447 Modified Files: Spring.build Log Message: SPRNET-682 - Change vs.net 2002 solution to be Spring.Net.1.1.2002.sln Index: Spring.build =================================================================== RCS file: /cvsroot/springnet/Spring.Net/Spring.build,v retrieving revision 1.192 retrieving revision 1.193 diff -C2 -d -r1.192 -r1.193 *** Spring.build 4 Dec 2007 18:03:25 -0000 1.192 --- Spring.build 6 Dec 2007 06:11:57 -0000 1.193 *************** *** 161,168 **** <property name="current.package.dir" value="${package.dir}/${project::get-name()}"/> ! <!-- for docs packaging MLP <property name="current.package.dir" value="L:/projects/Spring.Net/build/package-docs/${project::get-name()}"/> --> <property name="doc.dir" value="${current.package.dir}/doc"/> <property name="sdkdoc.dir" value="${doc.dir}/sdk"/> --- 161,171 ---- <property name="current.package.dir" value="${package.dir}/${project::get-name()}"/> ! <!-- for docs packaging MLP ! <property name="current.package.dir" value="l:/release/${project::get-name()}"/> ! <property name="current.package.dir" value="L:/projects/Spring.Net/build/package-docs/${project::get-name()}"/> --> + <property name="doc.dir" value="${current.package.dir}/doc"/> <property name="sdkdoc.dir" value="${doc.dir}/sdk"/> *************** *** 827,830 **** --- 830,835 ---- <exclude name="**/obj/**"/> <exclude name="**/*.resharper"/> + <exclude name="**/*.resharper.user"/> + <exclude name="**/Thumbs.db"/> </fileset> </copy> *************** *** 1162,1166 **** <property name="build-sandbox" value="false"/> <property name="build-examples" value="true"/> ! <property name="solution.file.1.1.2002" value="Spring.Net.1.0.2002.sln"/> <property name="solution.file.1.1.2003" value="Spring.Net.1.1.2003.sln"/> <property name="solution.file.1.1.2005" value="Spring.Net.1.1.2005.sln"/> --- 1167,1171 ---- <property name="build-sandbox" value="false"/> <property name="build-examples" value="true"/> ! <property name="solution.file.1.1.2002" value="Spring.Net.1.1.2002.sln"/> <property name="solution.file.1.1.2003" value="Spring.Net.1.1.2003.sln"/> <property name="solution.file.1.1.2005" value="Spring.Net.1.1.2005.sln"/> |
From: Mark P. <mar...@us...> - 2007-12-06 06:05:52
|
Update of /cvsroot/springnet/Spring.Net In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv26152 Added Files: Spring.Net.1.1.2002.sln Log Message: SPRNET-682 - Change vs.net 2002 solution to be Spring.Net.1.1.2002.sln --- NEW FILE: Spring.Net.1.1.2002.sln --- Microsoft Visual Studio Solution File, Format Version 7.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.Tests.2002", "test\Spring\Spring.Core.Tests\Spring.Core.Tests.2002.csproj", "{44B16BAA-6DF8-447C-9D7F-3AD3D854D904}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.2002", "src\Spring\Spring.Core\Spring.Core.2002.csproj", "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aop.2002", "src\Spring\Spring.Aop\Spring.Aop.2002.csproj", "{828F16E3-20A4-4EC4-A8F4-CD95B8ED44C9}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aop.Tests.2002", "test\Spring\Spring.Aop.Tests\Spring.Aop.Tests.2002.csproj", "{F856BCAE-421E-469A-B75F-E41E5BA7F160}" EndProject Global GlobalSection(SolutionConfiguration) = preSolution ConfigName.0 = Debug-1.0 ConfigName.1 = Release-1.0 EndGlobalSection GlobalSection(ProjectDependencies) = postSolution EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug.ActiveCfg = Debug-1.0|.NET {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug.Build.0 = Debug-1.0|.NET {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release.ActiveCfg = Release-1.0|.NET {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release.Build.0 = Release-1.0|.NET {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug.ActiveCfg = Debug-1.0|.NET {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug.Build.0 = Debug-1.0|.NET {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release.ActiveCfg = Release-1.0|.NET {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release.Build.0 = Release-1.0|.NET {828F16E3-20A4-4EC4-A8F4-CD95B8ED44C9}.Debug.ActiveCfg = Debug-1.0|.NET {828F16E3-20A4-4EC4-A8F4-CD95B8ED44C9}.Debug.Build.0 = Debug-1.0|.NET {828F16E3-20A4-4EC4-A8F4-CD95B8ED44C9}.Release.ActiveCfg = Release-1.0|.NET {828F16E3-20A4-4EC4-A8F4-CD95B8ED44C9}.Release.Build.0 = Release-1.0|.NET {F856BCAE-421E-469A-B75F-E41E5BA7F160}.Debug.ActiveCfg = Debug-1.0|.NET {F856BCAE-421E-469A-B75F-E41E5BA7F160}.Debug.Build.0 = Debug-1.0|.NET {F856BCAE-421E-469A-B75F-E41E5BA7F160}.Release.ActiveCfg = Release-1.0|.NET {F856BCAE-421E-469A-B75F-E41E5BA7F160}.Release.Build.0 = Release-1.0|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal |
From: Mark P. <mar...@us...> - 2007-12-06 05:48:36
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19257 Modified Files: Spring.Data.Tests.2005.csproj Log Message: SPRNET-760 - StoredProcedure.DeclaredParameters.AddOut("A", OracleType.Cursor); causes double ':' in Oracle10g stored procedure call Index: Spring.Data.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Spring.Data.Tests.2005.csproj,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** Spring.Data.Tests.2005.csproj 4 Dec 2007 16:31:14 -0000 1.31 --- Spring.Data.Tests.2005.csproj 6 Dec 2007 05:48:32 -0000 1.32 *************** *** 170,173 **** --- 170,174 ---- </ItemGroup> <ItemGroup> + <Compile Include="Data\Common\DbParametersTests.cs" /> <Compile Include="Data\Core\ServiceDomainTransactionManagerTests.cs" /> <Compile Include="Data\Core\TxScopeTransactionManagerIntegrationTests.cs" /> |
From: Mark P. <mar...@us...> - 2007-12-06 05:48:36
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Data/Common In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19257/Data/Common Added Files: DbParametersTests.cs Log Message: SPRNET-760 - StoredProcedure.DeclaredParameters.AddOut("A", OracleType.Cursor); causes double ':' in Oracle10g stored procedure call --- NEW FILE: DbParametersTests.cs --- (This appears to be a binary file; contents omitted.) |
From: Mark P. <mar...@us...> - 2007-12-06 05:48:36
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19257/Support Modified Files: TestDbProvider.cs Log Message: SPRNET-760 - StoredProcedure.DeclaredParameters.AddOut("A", OracleType.Cursor); causes double ':' in Oracle10g stored procedure call Index: TestDbProvider.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Support/TestDbProvider.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** TestDbProvider.cs 28 Nov 2007 05:54:56 -0000 1.10 --- TestDbProvider.cs 6 Dec 2007 05:48:32 -0000 1.11 *************** *** 81,84 **** --- 81,85 ---- } + public IDbDataAdapter CreateDataAdapter() { *************** *** 137,141 **** } ! #region Stub method to set behavior public IDbConnection ConnectionToCreate --- 138,161 ---- } ! public string CreateParameterNameForCollection(string name) ! { ! if (dbMetadata.BindByName) ! { ! if (DbMetadata.UseParameterNamePrefixInParameterCollection) ! { ! return DbMetadata.ParameterNamePrefix + name; ! } ! else ! { ! return name; ! } ! } ! else ! { ! return DbMetadata.ParameterNamePrefix; ! } ! } ! ! #region Stub method to set behavior public IDbConnection ConnectionToCreate |
From: Mark P. <mar...@us...> - 2007-12-06 05:48:31
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Common In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19242 Modified Files: DbParameters.cs DbProvider.cs IDbProvider.cs MultiDelegatingDbProvider.cs Log Message: SPRNET-760 - StoredProcedure.DeclaredParameters.AddOut("A", OracleType.Cursor); causes double ':' in Oracle10g stored procedure call Index: DbParameters.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Common/DbParameters.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** DbParameters.cs 13 Oct 2007 23:01:17 -0000 1.12 --- DbParameters.cs 6 Dec 2007 05:48:27 -0000 1.13 *************** *** 119,123 **** IDbDataParameter parameter = dbCommand.CreateParameter(); ! parameter.ParameterName = dbProvider.CreateParameterName(name); AssignParameterType(parameter, parameterType); --- 119,129 ---- IDbDataParameter parameter = dbCommand.CreateParameter(); ! int start = dbProvider.DbMetadata.ParameterNamePrefix.Length; ! ! if (dbProvider.DbMetadata.UseParameterNamePrefixInParameterCollection == false) ! { ! ! } ! parameter.ParameterName = dbProvider.CreateParameterNameForCollection(name); AssignParameterType(parameter, parameterType); *************** *** 250,259 **** public object GetValue(string name) { ! return dataParameterCollection[dbProvider.CreateParameterName(name)]; } public void SetValue(string name, object parameterValue) { ! IDbDataParameter parameter = dataParameterCollection[dbProvider.CreateParameterName(name)] as IDbDataParameter; if (parameter != null) { --- 256,265 ---- public object GetValue(string name) { ! return dataParameterCollection[dbProvider.CreateParameterNameForCollection(name)]; } public void SetValue(string name, object parameterValue) { ! IDbDataParameter parameter = dataParameterCollection[dbProvider.CreateParameterNameForCollection(name)] as IDbDataParameter; if (parameter != null) { *************** *** 277,282 **** throw new TypeMismatchDataAccessException("Invalid parameter type specified for parameter name [" + parameter.ParameterName + "]. [" ! + parameterType.GetType() + "] is not of expected type [" ! + dbProvider.DbMetadata.ParameterDbType + "]"); } dbProvider.DbMetadata.ParameterDbTypeProperty.SetValue(parameter, parameterType, null); --- 283,288 ---- throw new TypeMismatchDataAccessException("Invalid parameter type specified for parameter name [" + parameter.ParameterName + "]. [" ! + parameterType.GetType().AssemblyQualifiedName + "] is not of expected type [" ! + dbProvider.DbMetadata.ParameterDbType.AssemblyQualifiedName + "]"); } dbProvider.DbMetadata.ParameterDbTypeProperty.SetValue(parameter, parameterType, null); Index: MultiDelegatingDbProvider.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Common/MultiDelegatingDbProvider.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MultiDelegatingDbProvider.cs 10 Oct 2007 20:59:22 -0000 1.1 --- MultiDelegatingDbProvider.cs 6 Dec 2007 05:48:27 -0000 1.2 *************** *** 120,123 **** --- 120,129 ---- } + + public string CreateParameterNameForCollection(string name) + { + return GetTargetProvider().CreateParameterNameForCollection(name); + } + public IDbMetadata DbMetadata { Index: IDbProvider.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Common/IDbProvider.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** IDbProvider.cs 13 Oct 2006 21:59:06 -0000 1.9 --- IDbProvider.cs 6 Dec 2007 05:48:27 -0000 1.10 *************** *** 65,73 **** /// <returns>A new <see cref="IDbDataParameter"/></returns> IDbDataParameter CreateParameter(); ! ! string CreateParameterName(string name); /// <summary> /// Return metadata information about the database provider /// </summary> --- 65,87 ---- /// <returns>A new <see cref="IDbDataParameter"/></returns> IDbDataParameter CreateParameter(); ! ! ! /// <summary> ! /// Creates the name of the parameter in the format appropriate to use inside IDbCommand.CommandText. ! /// </summary> ! /// <remarks>In most cases this adds the parameter prefix to the name passed into this method.</remarks> ! /// <param name="name">The unformatted name of the parameter.</param> ! /// <returns>The parameter name formatted foran IDbCommand.CommandText.</returns> string CreateParameterName(string name); /// <summary> + /// Creates the name ofthe parameter in the format appropriate for an IDataParameter, i.e. to be + /// part of a IDataParameterCollection. + /// </summary> + /// <param name="name">The unformatted name of the parameter.</param> + /// <returns>The parameter name formatted for an IDataParameter</returns> + string CreateParameterNameForCollection(string name); + + /// <summary> /// Return metadata information about the database provider /// </summary> *************** *** 87,92 **** get; } ! ! string ExtractError(Exception e); --- 101,111 ---- get; } ! ! ! /// <summary> ! /// Extracts the provider specific error code as a string. ! /// </summary> ! /// <param name="e">The data access exception.</param> ! /// <returns>The provider specific error code</returns> string ExtractError(Exception e); Index: DbProvider.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Common/DbProvider.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** DbProvider.cs 11 Oct 2007 14:55:45 -0000 1.12 --- DbProvider.cs 6 Dec 2007 05:48:27 -0000 1.13 *************** *** 88,91 **** --- 88,110 ---- } + public string CreateParameterNameForCollection(string name) + { + if (dbMetadata.BindByName) + { + if (DbMetadata.UseParameterNamePrefixInParameterCollection) + { + return DbMetadata.ParameterNamePrefix + name; + } + else + { + return name; + } + } + else + { + return DbMetadata.ParameterNamePrefix; + } + } + public IDbMetadata DbMetadata { |
From: Mark P. <mar...@us...> - 2007-12-06 05:48:25
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19230 Modified Files: dbprovider.xml Log Message: SPRNET-760 - StoredProcedure.DeclaredParameters.AddOut("A", OracleType.Cursor); causes double ':' in Oracle10g stored procedure call Index: dbprovider.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/dbprovider.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** dbprovider.xml 22 Nov 2007 00:14:06 -0000 1.14 --- dbprovider.xml 6 Dec 2007 05:48:21 -0000 1.15 *************** *** 62,65 **** --- 62,67 ---- string CreateParameterName(string name); + string CreateParameterNameForCollection(string name); + IDbMetadata DbMetadata { *************** *** 82,86 **** into a DAO exception. On .NET 1.1 the method IsDataAccessException is used to determine if the thrown exception is related to data access since in ! .NET 1.1 there isn't a common base class for database exceptions.</para> <para>The class <classname>DbProviderFactory</classname> creates --- 84,92 ---- into a DAO exception. On .NET 1.1 the method IsDataAccessException is used to determine if the thrown exception is related to data access since in ! .NET 1.1 there isn't a common base class for database exceptions. ! CreateParameterName is used to create the string for parameters used in a ! CommandText object while CreateParameterNameForCollection is used to ! create the string for a IDataParameter.ParameterName, typically contained ! inside a IDataParameterCollection.</para> <para>The class <classname>DbProviderFactory</classname> creates *************** *** 146,150 **** <listitem> ! <para><literal>MySql-5.1 </literal>- (aliased to <literal>MySql.Data.MySqlClient</literal>) MySQL, MySQL provider 5.1.2.2</para> --- 152,166 ---- <listitem> ! <para><literal>MySql-5.0.8.1</literal> - MySQL, MySQL provider ! 5.0.8.1</para> ! </listitem> ! ! <listitem> ! <para><literal>MySql-5.1 </literal>- MySQL, MySQL provider ! 5.1.2.2</para> ! </listitem> ! ! <listitem> ! <para><literal>MySql-5.1.4</literal> - (aliased to <literal>MySql.Data.MySqlClient</literal>) MySQL, MySQL provider 5.1.2.2</para> *************** *** 152,157 **** <listitem> ! <para><literal>Npgsql-1.0</literal> - Postgresql provider ! 1.0.0.0</para> </listitem> --- 168,178 ---- <listitem> ! <para><literal>Npgsql-1.0</literal> - Postgresql provider 1.0.0.0 (and ! 1.0.0.1 - were build with same version info)</para> ! </listitem> ! ! <listitem> ! <para><literal>Npgsql-2.0-beta1</literal> - Postgresql provider ! 1.98.1.0 beta 1</para> </listitem> *************** *** 179,183 **** <listitem> ! <para><literal>SQLite-1.0.43 </literal>- (aliased to System.Data.SQLite) - SQLite provider 1.0.43 for .NET Framework 2.0</para> --- 200,209 ---- <listitem> ! <para><literal>SQLite-1.0.43 </literal>SQLite provider 1.0.43 for .NET ! Framework 2.0</para> ! </listitem> ! ! <listitem> ! <para><literal>SQLite-1.0.47 </literal>- (aliased to System.Data.SQLite) - SQLite provider 1.0.43 for .NET Framework 2.0</para> |
From: Erich E. <oak...@us...> - 2007-12-05 11:58:41
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/TestSupport In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv4668 Added Files: NUnitAdapter.cs Log Message: added missing WebFormTestCase --- NEW FILE: NUnitAdapter.cs --- #region Copyright (c) 2002, 2005 by James Shore /******************************************************************************************************************** ' ' Copyright (c) 2002, 2005 by James Shore ' ' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ' documentation files (the "Software"), to deal in the Software without restriction, including without limitation ' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and ' to permit persons to whom the Software is furnished to do so, subject to the following conditions: ' ' The above copyright notice and this permission notice shall be included in all copies or substantial portions ' of the Software. ' ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ' THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF ' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ' DEALINGS IN THE SOFTWARE. ' '******************************************************************************************************************/ #endregion #region Instructions /******************************************************************************************************************** * * This file allows NUnitAsp to be used with NUnit. To use, copy this file * into your test project. For additional information, see the NUnitAsp * documentation in your download package or visit * http://nunitasp.sourceforge.net. * *******************************************************************************************************************/ #endregion using System; using NUnit.Extensions.Asp; using NUnit.Framework; namespace Spring.TestSupport { /// <summary> /// Base class for NUnitAsp test fixtures. Extend this class to use NUnitAsp. /// </summary> [TestFixture] public abstract class WebFormTestCase : CompatibilityAdapter { private bool setupCalled = false; /// <summary> /// Do not call. For use by NUnit only. /// </summary> [SetUp] public void MasterSetUp() { setupCalled = true; HttpClient.Default = new HttpClient(); SetUp(); } /// <summary> /// Executed before each test method is run. Override in subclasses to do subclass /// set up. NOTE: The [SetUp] attribute cannot be used in subclasses because it is already /// in use. /// </summary> protected virtual void SetUp() { } /// <summary> /// Do not call. For use by NUnit only. /// </summary> [TearDown] public void MasterTearDown() { TearDown(); } /// <summary> /// Executed after each test method is run. Override in subclasses to do subclass /// clean up. NOTE: [TearDown] attribute cannot be used in subclasses because it is /// already in use. /// </summary> protected virtual void TearDown() { } /// <summary> /// The web form currently loaded by the browser. /// </summary> protected WebFormTester CurrentWebForm { get { AssertSetUp(); return new WebFormTester(HttpClient.Default); } } /// <summary> /// The web browser. /// </summary> protected HttpClient Browser { get { AssertSetUp(); return HttpClient.Default; } } private void AssertSetUp() { if (!setupCalled) { Fail("A required setup method in WebFormTestCase was not called. This is probably because you used the [SetUp] attribute in a subclass of WebFormTestCase. That is not supported. Override the SetUp() method instead."); } } } // Everything below this line is for backwards compatibility and may be deleted. /// <summary> /// For backwards compatibility; will be deprecated in the future. /// This class provides convenience methods for common assertions. You /// should use Assert and WebAssert methods instead. /// </summary> public class CompatibilityAdapter { /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertTrue(bool condition) { Assert.IsTrue(condition); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertTrue(string message, bool condition) { Assert.IsTrue(condition, message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertEquals(object expected, object actual) { Assert.AreEqual(expected, actual); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertEquals(string message, object expected, object actual) { Assert.AreEqual(expected, actual, message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertNotNull(object o) { Assert.IsNotNull(o); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertNotNull(string message, object o) { Assert.IsNotNull(o, message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertNull(object o) { Assert.IsNull(o); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertNull(string message, object o) { Assert.IsNull(o, message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertSame(object expected, object actual) { Assert.AreSame(expected, actual); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertSame(string message, object expected, object actual) { Assert.AreSame(expected, actual, message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void Fail(string message) { Assert.Fail(message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertVisibility(ControlTester tester, bool expectedVisibility) { if (expectedVisibility) WebAssert.Visible(tester); else WebAssert.NotVisible(tester); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertEquals(string[] expected, string[] actual) { WebAssert.AreEqual(expected, actual); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> public static void AssertEquals(string message, string[] expected, string[] actual) { WebAssert.AreEqual(expected, actual, message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> //[CLSCompliant(false)] public static void AssertEquals(string[][] expected, string[][] actual) { WebAssert.AreEqual(expected, actual); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> //[CLSCompliant(false)] public static void AssertEquals(string message, string[][] expected, string[][] actual) { WebAssert.AreEqual(expected, actual, message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> //[CLSCompliant(false)] public static void AssertEqualsIgnoreOrder(string message, string[][] expected, string[][] actual) { WebAssert.AreEqualIgnoringOrder(expected, actual, message); } /// <summary> /// For backwards compatibility; will be deprecated in the future. /// </summary> //[CLSCompliant(false)] public static void AssertSortOrder(string message, string[][] data, int column, bool isAscending, DataType type) { WebAssert.Sorted(data, column, isAscending, type, message); } } } |
From: Erich E. <oak...@us...> - 2007-12-05 08:30:35
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Data/Spring/Web/Support/PageHandlerFactoryTests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21640/Data/Spring/Web/Support/PageHandlerFactoryTests Modified Files: TransferAfterSetResultSave.aspx Web.Config.net-2.0 Log Message: removed unused NUnitForms assembly updated to NUnitAsp 2.0 added DI check to TransferAfterSetResult() test Index: Web.Config.net-2.0 =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Data/Spring/Web/Support/PageHandlerFactoryTests/Web.Config.net-2.0,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Web.Config.net-2.0 3 Dec 2007 16:11:32 -0000 1.1 --- Web.Config.net-2.0 5 Dec 2007 08:30:21 -0000 1.2 *************** *** 56,60 **** </object> ! <object type="TransferAfterSetResultSave.aspx"/> </objects> </spring> --- 56,62 ---- </object> ! <object type="TransferAfterSetResultSave.aspx"> ! <property name="SomeProperty" value="someValue" /> ! </object> </objects> </spring> Index: TransferAfterSetResultSave.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Data/Spring/Web/Support/PageHandlerFactoryTests/TransferAfterSetResultSave.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TransferAfterSetResultSave.aspx 3 Dec 2007 16:11:32 -0000 1.1 --- TransferAfterSetResultSave.aspx 5 Dec 2007 08:30:21 -0000 1.2 *************** *** 2,9 **** --- 2,12 ---- <%@ Reference Page="TransferAfterSetResult.aspx" %> <script language="c#" runat="server"> + public string SomeProperty; + protected override void OnLoad(EventArgs e) { base.OnLoad(e); NUnit.Framework.Assert.AreEqual( typeof(TransferAfterSetResult), this.PreviousPage.GetType() ); + NUnit.Framework.Assert.AreEqual( "someValue", SomeProperty ); } </script>OK \ No newline at end of file |
From: Erich E. <oak...@us...> - 2007-12-05 08:30:35
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Web/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21688 Modified Files: PageHandlerFactoryTests.cs Log Message: removed unused NUnitForms assembly updated to NUnitAsp 2.0 added DI check to TransferAfterSetResult() test Index: PageHandlerFactoryTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Web/Support/PageHandlerFactoryTests.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PageHandlerFactoryTests.cs 3 Dec 2007 16:11:32 -0000 1.1 --- PageHandlerFactoryTests.cs 5 Dec 2007 08:30:30 -0000 1.2 *************** *** 24,27 **** --- 24,28 ---- using NUnit.Framework; using NUnitAspEx; + using Spring.TestSupport; #endregion *************** *** 35,60 **** /// <version>$Id$</version> [AspTestFixture("/Test", "/Spring/Web/Support/PageHandlerFactoryTests")] ! public class PageHandlerFactoryTests : NUnit.Extensions.Asp.WebFormTestCase { [Test] ! public void MaintainsSession() { AspTestClient client = new AspTestClient(); ! string result = client.GetPage("MaintainsSession1.aspx"); ! NUnit.Framework.Assert.AreEqual("OK", result); ! NUnit.Framework.Assert.AreEqual("somevalue", AspTestContext.HttpContext.Session["maintainsSession"]); ! ! // checks previously set session variable ! result = client.GetPage("MaintainsSession2.aspx"); ! NUnit.Framework.Assert.AreEqual("OK", result); } [Test] ! public void DisablesSessions() { AspTestClient client = new AspTestClient(); ! // a session-less page - checks, if session is correctly disabled ! string result = client.GetPage("DisablesSession.aspx"); ! NUnit.Framework.Assert.AreEqual("OK", result); } --- 36,61 ---- /// <version>$Id$</version> [AspTestFixture("/Test", "/Spring/Web/Support/PageHandlerFactoryTests")] ! public class PageHandlerFactoryTests : WebFormTestCase { [Test] ! public void DisablesSessions() { AspTestClient client = new AspTestClient(); ! // a session-less page - checks, if session is correctly disabled ! string result = client.GetPage("DisablesSession.aspx"); ! Assert.AreEqual("OK", result); } [Test] ! public void MaintainsSession() { AspTestClient client = new AspTestClient(); ! string result = client.GetPage("MaintainsSession1.aspx"); ! Assert.AreEqual("OK", result); ! Assert.AreEqual("somevalue", AspTestContext.HttpContext.Session["maintainsSession"]); ! ! // checks previously set session variable ! result = client.GetPage("MaintainsSession2.aspx"); ! Assert.AreEqual("OK", result); } *************** *** 71,75 **** save.Click(); string result = Browser.CurrentPageText; ! NUnit.Framework.Assert.AreEqual("OK", result); } #endif --- 72,76 ---- save.Click(); string result = Browser.CurrentPageText; ! Assert.AreEqual("OK", result); } #endif |
From: Erich E. <oak...@us...> - 2007-12-05 08:30:25
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21640 Modified Files: Spring.Web.Tests.2005.csproj Log Message: removed unused NUnitForms assembly updated to NUnitAsp 2.0 added DI check to TransferAfterSetResult() test Index: Spring.Web.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2005.csproj,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** Spring.Web.Tests.2005.csproj 3 Dec 2007 16:11:31 -0000 1.23 --- Spring.Web.Tests.2005.csproj 5 Dec 2007 08:30:21 -0000 1.24 *************** *** 87,90 **** --- 87,91 ---- <SubType>Code</SubType> </Compile> + <Compile Include="TestSupport\NUnitAdapter.cs" /> <Compile Include="TestSupport\TestPage.cs"> <SubType>ASPXCodeBehind</SubType> |
From: Erich E. <oak...@us...> - 2007-12-05 08:30:07
|
Update of /cvsroot/springnet/Spring.Net/lib/Net/1.1 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21190/1.1 Modified Files: NUnitAsp.dll Removed Files: NUnitForms.dll Log Message: removed unused NUnitForms assembly updated to NUnitAsp 2.0 added DI check to TransferAfterSetResult() test --- NUnitForms.dll DELETED --- Index: NUnitAsp.dll =================================================================== RCS file: /cvsroot/springnet/Spring.Net/lib/Net/1.1/NUnitAsp.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvs1ncM1L and /tmp/cvsMabnlL differ |
From: Erich E. <oak...@us...> - 2007-12-05 08:30:07
|
Update of /cvsroot/springnet/Spring.Net/lib/Net/2.0 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21190/2.0 Modified Files: NUnitAsp.dll Log Message: removed unused NUnitForms assembly updated to NUnitAsp 2.0 added DI check to TransferAfterSetResult() test Index: NUnitAsp.dll =================================================================== RCS file: /cvsroot/springnet/Spring.Net/lib/Net/2.0/NUnitAsp.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsBUNjMV and /tmp/cvsJ0IeiV differ |
From: Bruno B. <bb...@us...> - 2007-12-05 00:57:34
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Core/IO In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3821 Modified Files: ConfigSectionResource.cs Log Message: Use SectionName in ConfigSectionResource.Description Index: ConfigSectionResource.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Core/IO/ConfigSectionResource.cs,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** ConfigSectionResource.cs 8 Aug 2007 17:46:55 -0000 1.26 --- ConfigSectionResource.cs 5 Dec 2007 00:57:31 -0000 1.27 *************** *** 52,55 **** --- 52,56 ---- { private XmlElement configElement; + private string sectionName; #region Constructor (s) / Destructor *************** *** 68,71 **** --- 69,73 ---- { AssertUtils.ArgumentNotNull(configSection, "configSection"); + sectionName = configSection.Name; configElement = configSection; } *************** *** 85,89 **** { AssertUtils.ArgumentHasText(resourceName, "resourceName"); ! string sectionName = GetResourceNameWithoutProtocol(resourceName); configElement = (XmlElement) ConfigurationUtils.GetSection(sectionName); } --- 87,91 ---- { AssertUtils.ArgumentHasText(resourceName, "resourceName"); ! sectionName = GetResourceNameWithoutProtocol(resourceName); configElement = (XmlElement) ConfigurationUtils.GetSection(sectionName); } *************** *** 139,145 **** get { - string sectionName = configElement != null ? - configElement.Name : - "no section specified"; return StringUtils.Surround("config [", sectionName, "]"); } --- 141,144 ---- |
From: Bruno B. <bb...@us...> - 2007-12-05 00:28:42
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Proxy In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24986 Modified Files: AbstractProxyTypeBuilderTests.cs Log Message: Minor fix to avoid potential error. Index: AbstractProxyTypeBuilderTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Proxy/AbstractProxyTypeBuilderTests.cs,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** AbstractProxyTypeBuilderTests.cs 4 Dec 2007 18:38:14 -0000 1.20 --- AbstractProxyTypeBuilderTests.cs 5 Dec 2007 00:28:39 -0000 1.21 *************** *** 275,282 **** Assert.IsNotNull(attrs, "Should have had 2 attribute applied to the target type."); Assert.AreEqual(2, attrs.Length, "Should have had 2 attribute applied to the target type."); - Assert.AreEqual(typeof(WebPermissionAttribute), attrs[1].GetType(), "Wrong System.Type of Attribute applied to the target type."); - - WebPermissionAttribute wpa = attrs[1] as WebPermissionAttribute; - Assert.AreEqual(SecurityAction.Deny, wpa.Action); } --- 275,278 ---- |
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24599/Support Modified Files: AbstractAutowireCapableObjectFactory.cs AbstractObjectFactory.cs StaticListableObjectFactory.cs Log Message: Update use of 'ObjectCreationException's for better message exceptions. Index: StaticListableObjectFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Support/StaticListableObjectFactory.cs,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** StaticListableObjectFactory.cs 30 Jul 2007 18:00:01 -0000 1.23 --- StaticListableObjectFactory.cs 5 Dec 2007 00:28:05 -0000 1.24 *************** *** 106,110 **** catch (Exception ex) { ! throw new ObjectCreationException( "IFactoryObject threw an exception on object creation", ex); } --- 106,110 ---- catch (Exception ex) { ! throw new ObjectCreationException(name, "IFactoryObject threw an exception on object creation", ex); } Index: AbstractAutowireCapableObjectFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Support/AbstractAutowireCapableObjectFactory.cs,v retrieving revision 1.82 retrieving revision 1.83 diff -C2 -d -r1.82 -r1.83 *** AbstractAutowireCapableObjectFactory.cs 7 Sep 2007 01:52:24 -0000 1.82 --- AbstractAutowireCapableObjectFactory.cs 5 Dec 2007 00:28:04 -0000 1.83 *************** *** 463,467 **** if (properties.PropertyValues.Length > 0) { ! throw new ObjectCreationException(name, "Cannot apply property values to null instance"); } else --- 463,468 ---- if (properties.PropertyValues.Length > 0) { ! throw new ObjectCreationException(definition.ResourceDescription, ! name, "Cannot apply property values to null instance."); } else *************** *** 2233,2240 **** if (result == null) { ! throw new ObjectCreationException( string.Format(CultureInfo.InvariantCulture, "PostProcessBeforeInitialization method of IObjectPostProcessor [{0}] " ! + " returned null for object [{1}] with name [{2}].", objectProcessor, result, name)); } } --- 2234,2241 ---- if (result == null) { ! throw new ObjectCreationException(name, string.Format(CultureInfo.InvariantCulture, "PostProcessBeforeInitialization method of IObjectPostProcessor [{0}] " ! + " returned null for object [{1}] with name '{2}'.", objectProcessor, instance, name)); } } *************** *** 2278,2285 **** if (result == null) { ! throw new ObjectCreationException( string.Format(CultureInfo.InvariantCulture, "PostProcessAfterInitialization method of IObjectPostProcessor [{0}] " ! + " returned null for object [{1}] with name [{2}].", objectProcessor, result, name)); } } --- 2279,2286 ---- if (result == null) { ! throw new ObjectCreationException(name, string.Format(CultureInfo.InvariantCulture, "PostProcessAfterInitialization method of IObjectPostProcessor [{0}] " ! + " returned null for object [{1}] with name [{2}].", objectProcessor, instance, name)); } } Index: AbstractObjectFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectFactory.cs,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** AbstractObjectFactory.cs 10 Oct 2007 19:17:07 -0000 1.72 --- AbstractObjectFactory.cs 5 Dec 2007 00:28:04 -0000 1.73 *************** *** 820,829 **** instance = factory.GetObject(); } ! catch (FactoryObjectNotInitializedException ex) { ! throw new ObjectCurrentlyInCreationException("Object Name = " + objectName + ", " + ex, ex); } catch (Exception ex) { ! throw new ObjectCreationException("IFactoryObject threw exception on object creation for object with name = " + objectName, ex); } --- 820,832 ---- instance = factory.GetObject(); } ! catch (FactoryObjectNotInitializedException ex) ! { ! throw new ObjectCurrentlyInCreationException( ! rod.ResourceDescription, objectName, ex); } catch (Exception ex) { ! throw new ObjectCreationException(rod.ResourceDescription, objectName, ! "FactoryObject threw exception on object creation.", ex); } *************** *** 831,835 **** // initialized yet: Many FactoryBeans just return null then. if (instance == null && IsSingletonCurrentlyInCreation(objectName)) { ! throw new ObjectCurrentlyInCreationException(objectName, "FactoryObject which is currently in creation returned null from GetObject"); } --- 834,839 ---- // initialized yet: Many FactoryBeans just return null then. if (instance == null && IsSingletonCurrentlyInCreation(objectName)) { ! throw new ObjectCurrentlyInCreationException(rod.ResourceDescription, objectName, ! "FactoryObject which is currently in creation returned null from GetObject."); } *************** *** 841,845 **** catch (Exception ex) { throw new ObjectCreationException(rod.ResourceDescription, objectName, ! "Post-processing of the FactoryObject's object failed", ex); } } --- 845,849 ---- catch (Exception ex) { throw new ObjectCreationException(rod.ResourceDescription, objectName, ! "Post-processing of the FactoryObject's object failed.", ex); } } |
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24599 Modified Files: FactoryObjectNotInitializedException.cs ObjectCreationException.cs ObjectCurrentlyInCreationException.cs Log Message: Update use of 'ObjectCreationException's for better message exceptions. Index: ObjectCreationException.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/ObjectCreationException.cs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ObjectCreationException.cs 1 Aug 2007 23:24:24 -0000 1.14 --- ObjectCreationException.cs 5 Dec 2007 00:28:04 -0000 1.15 *************** *** 71,82 **** /// A message about the exception. /// </param> ! /// <param name="name"> /// The name of the object that triggered the exception. /// </param> ! public ObjectCreationException(string name, string message) ! : this(name, message, null as Exception) { } /// <summary> /// Creates a new instance of the --- 71,97 ---- /// A message about the exception. /// </param> ! /// <param name="objectName"> /// The name of the object that triggered the exception. /// </param> ! public ObjectCreationException(string objectName, string message) ! : this(null, objectName, message, null) { } + /// <summary> + /// Creates a new instance of the + /// <see cref="Spring.Objects.Factory.ObjectCreationException"/> class. + /// </summary> + /// <param name="message"> + /// A message about the exception. + /// </param> + /// <param name="rootCause"> + /// The root exception that is being wrapped. + /// </param> + public ObjectCreationException(string message, Exception rootCause) + : base(message, rootCause) + { + } + /// <summary> /// Creates a new instance of the *************** *** 86,90 **** /// A message about the exception. /// </param> ! /// <param name="name"> /// The name of the object that triggered the exception. /// </param> --- 101,105 ---- /// A message about the exception. /// </param> ! /// <param name="objectName"> /// The name of the object that triggered the exception. /// </param> *************** *** 93,98 **** /// </param> public ObjectCreationException( ! string name, string message, Exception rootCause) ! : this(null, name, message, rootCause) { } --- 108,113 ---- /// </param> public ObjectCreationException( ! string objectName, string message, Exception rootCause) ! : this(null, objectName, message, rootCause) { } *************** *** 108,119 **** /// A message about the exception. /// </param> ! /// <param name="name"> /// The name of the object that triggered the exception. /// </param> public ObjectCreationException( string resourceDescription, ! string name, string message) ! : this(resourceDescription, name, message, null) { } --- 123,134 ---- /// A message about the exception. /// </param> ! /// <param name="objectName"> /// The name of the object that triggered the exception. /// </param> public ObjectCreationException( string resourceDescription, ! string objectName, string message) ! : this(resourceDescription, objectName, message, null) { } *************** *** 129,133 **** /// A message about the exception. /// </param> ! /// <param name="name"> /// The name of the object that triggered the exception. /// </param> --- 144,148 ---- /// A message about the exception. /// </param> ! /// <param name="objectName"> /// The name of the object that triggered the exception. /// </param> *************** *** 137,141 **** public ObjectCreationException( string resourceDescription, ! string name, string message, Exception rootCause) --- 152,156 ---- public ObjectCreationException( string resourceDescription, ! string objectName, string message, Exception rootCause) *************** *** 143,162 **** { _resourceDescription = resourceDescription; ! _objectName = name; ! } ! ! /// <summary> ! /// Creates a new instance of the ! /// <see cref="Spring.Objects.Factory.ObjectCreationException"/> class. ! /// </summary> ! /// <param name="message"> ! /// A message about the exception. ! /// </param> ! /// <param name="rootCause"> ! /// The root exception that is being wrapped. ! /// </param> ! public ObjectCreationException(string message, Exception rootCause) ! : base(message, rootCause) ! { } --- 158,162 ---- { _resourceDescription = resourceDescription; ! _objectName = objectName; } *************** *** 238,242 **** private static string FormatMessage( string resourceDescription, ! string name, string message, string callStack) --- 238,242 ---- private static string FormatMessage( string resourceDescription, ! string objectName, string message, string callStack) *************** *** 247,256 **** string.Format( "Error creating object with name '{0}' : {1}", ! name, message) : string.Format( "Error creating object with name '{0}' defined in '{1}' : {2}", ! name, resourceDescription, message); --- 247,256 ---- string.Format( "Error creating object with name '{0}' : {1}", ! objectName, message) : string.Format( "Error creating object with name '{0}' defined in '{1}' : {2}", ! objectName, resourceDescription, message); *************** *** 261,265 **** string.Format( "Error thrown by a dependency of object '{0}' : {1}{2}", ! name, message, callStack) --- 261,265 ---- string.Format( "Error thrown by a dependency of object '{0}' : {1}{2}", ! objectName, message, callStack) *************** *** 267,271 **** string.Format( "Error thrown by a dependency of object '{0}' defined in '{1}' : {2}{3}", ! name, resourceDescription, message, --- 267,271 ---- string.Format( "Error thrown by a dependency of object '{0}' defined in '{1}' : {2}{3}", ! objectName, resourceDescription, message, Index: FactoryObjectNotInitializedException.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/FactoryObjectNotInitializedException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FactoryObjectNotInitializedException.cs 9 Apr 2006 07:18:48 -0000 1.3 --- FactoryObjectNotInitializedException.cs 5 Dec 2007 00:28:04 -0000 1.4 *************** *** 93,97 **** /// FactoryObjectCircularReferenceException class. /// </summary> ! /// <param name="name"> /// The name of the object that triggered the exception. /// </param> --- 93,97 ---- /// FactoryObjectCircularReferenceException class. /// </summary> ! /// <param name="objectName"> /// The name of the object that triggered the exception. /// </param> *************** *** 99,104 **** /// A message about the exception. /// </param> ! public FactoryObjectNotInitializedException(string name, string message) ! : base(name, StringUtils.HasText(message) ? message : "Circular dependency chain detected for factory object.") { --- 99,104 ---- /// A message about the exception. /// </param> ! public FactoryObjectNotInitializedException(string objectName, string message) ! : base(objectName, StringUtils.HasText(message) ? message : "Circular dependency chain detected for factory object.") { Index: ObjectCurrentlyInCreationException.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/ObjectCurrentlyInCreationException.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ObjectCurrentlyInCreationException.cs 9 Apr 2006 07:18:48 -0000 1.5 --- ObjectCurrentlyInCreationException.cs 5 Dec 2007 00:28:04 -0000 1.6 *************** *** 44,90 **** public class ObjectCurrentlyInCreationException : ObjectCreationException { ! /// <summary> ! /// Creates a new instance of the ObjectCurrentlyInCreationException class. ! /// </summary> public ObjectCurrentlyInCreationException() { } ! /// <summary> ! /// Creates a new instance of the ObjectCurrentlyInCreationException class. ! /// </summary> /// <param name="message"> /// A message about the exception. /// </param> ! public ObjectCurrentlyInCreationException(string message) : base(message) { } ! /// <summary> ! /// Creates a new instance of the ObjectCurrentlyInCreationException class. /// </summary> /// <param name="message"> /// A message about the exception. /// </param> /// <param name="rootCause"> /// The root exception that is being wrapped. /// </param> ! public ObjectCurrentlyInCreationException(string message, Exception rootCause) ! : base(message, rootCause) { } ! /// <summary> ! /// Creates a new instance of the ObjectCurrentlyInCreationException class. /// </summary> ! /// <param name="name"> /// The name of the object that triggered the exception. /// </param> /// <param name="message"> /// A message about the exception. /// </param> ! public ObjectCurrentlyInCreationException(string name, string message) ! : base(name, StringUtils.HasText(message) ? message : ! "Requested object is currently in creation (circular reference when autowiring constructor?).") { } --- 44,162 ---- public class ObjectCurrentlyInCreationException : ObjectCreationException { ! /// <summary> ! /// Creates a new instance of the ! /// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class. ! /// </summary> public ObjectCurrentlyInCreationException() { } ! /// <summary> ! /// Creates a new instance of the ! /// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class. ! /// </summary> /// <param name="message"> /// A message about the exception. /// </param> ! public ObjectCurrentlyInCreationException(string message) ! : base(message) { } ! /// <summary> ! /// Creates a new instance of the ! /// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class. ! /// </summary> ! /// <param name="message"> ! /// A message about the exception. ! /// </param> ! /// <param name="rootCause"> ! /// The root exception that is being wrapped. ! /// </param> ! public ObjectCurrentlyInCreationException(string message, Exception rootCause) ! : base(message, rootCause) ! { ! } ! ! /// <summary> ! /// Creates a new instance of the ! /// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class. /// </summary> /// <param name="message"> /// A message about the exception. /// </param> + /// <param name="objectName"> + /// The name of the object that triggered the exception. + /// </param> + public ObjectCurrentlyInCreationException(string objectName, string message) + : this(null, objectName, message, null) + { + } + + /// <summary> + /// Creates a new instance of the + /// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class. + /// </summary> + /// <param name="message"> + /// A message about the exception. + /// </param> + /// <param name="objectName"> + /// The name of the object that triggered the exception. + /// </param> /// <param name="rootCause"> /// The root exception that is being wrapped. /// </param> ! public ObjectCurrentlyInCreationException( ! string objectName, string message, Exception rootCause) ! : this(null, objectName, message, rootCause) { } ! /// <summary> ! /// Creates a new instance of the ! /// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class. /// </summary> ! /// <param name="resourceDescription"> ! /// The description of the resource associated with the object. ! /// </param> ! /// <param name="message"> ! /// A message about the exception. ! /// </param> ! /// <param name="objectName"> /// The name of the object that triggered the exception. /// </param> + public ObjectCurrentlyInCreationException( + string resourceDescription, + string objectName, + string message) + : this(resourceDescription, objectName, message, null) + { + } + + /// <summary> + /// Creates a new instance of the + /// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class. + /// </summary> + /// <param name="resourceDescription"> + /// The description of the resource associated with the object. + /// </param> /// <param name="message"> /// A message about the exception. /// </param> ! /// <param name="objectName"> ! /// The name of the object that triggered the exception. ! /// </param> ! /// <param name="rootCause"> ! /// The root exception that is being wrapped. ! /// </param> ! public ObjectCurrentlyInCreationException( ! string resourceDescription, ! string objectName, ! string message, ! Exception rootCause) ! : base(resourceDescription, ! objectName, ! StringUtils.HasText(message) ? message : "Requested object is currently in creation: Is there an unresolvable circular reference?", ! rootCause) { } |
From: Mark P. <mar...@us...> - 2007-12-04 21:30:46
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10914 Modified Files: testing.xml Log Message: SPRNET-764 - NUnit 2.4.3 GUI-runner not executing Spring.Testing.NUnit based tests linked to NUnit 2.4.1. Index: testing.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/testing.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** testing.xml 28 Jun 2007 14:42:34 -0000 1.3 --- testing.xml 4 Dec 2007 21:30:42 -0000 1.4 *************** *** 62,66 **** class="libraryfile">Spring.Testing.NUnit.dll</filename> library. <emphasis>Please note that these test classes are NUnit-specific. Support ! for mbUnit and VSTS is under development.</emphasis></para> <para>The <literal>Spring.Testing.NUnit</literal> namepace provides --- 62,85 ---- class="libraryfile">Spring.Testing.NUnit.dll</filename> library. <emphasis>Please note that these test classes are NUnit-specific. Support ! for mbUnit and VSTS are under consideration for future ! versions.</emphasis></para> ! ! <note> ! <para>The Spring.Testing.NUnit.dll library is compiled against NUnit ! 2.4.1. At the time of this writing the latest version of NUnit is 2.4.3. ! Resharper (which uses 2.2.8 internall) TestDriven.NET will handle these ! differences appropriately and you will be able to use these tools for ! Spring based NUnit testing in the IDE. If you are using the GUI-runner ! that comes with NUnit then you should add the following to your .config ! file, (in the form of MyAssembly.dll.config) </para> ! ! <programlisting><dependentAssembly> ! <assemblyIdentity name="nunit.framework" ! publicKeyToken="96d09a1eb7f44a77" ! culture="neutral"/> ! <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" ! newVersion="2.4.3.0"/> ! </dependentAssembly></programlisting> ! </note> <para>The <literal>Spring.Testing.NUnit</literal> namepace provides *************** *** 69,73 **** these can be rewritten in terms of custom attributes via NUnit's new extenibility mechanism. This will be an additional option in an upcoming ! release of Spring.NET</para> <para>These superclasses provide the following functionality:</para> --- 88,93 ---- these can be rewritten in terms of custom attributes via NUnit's new extenibility mechanism. This will be an additional option in an upcoming ! release of Spring.NET and is already present in the Java version of the ! Spring framework.</para> <para>These superclasses provide the following functionality:</para> |
From: Mark P. <mar...@us...> - 2007-12-04 19:56:33
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3967 Modified Files: Spring.Data.Tests.2003.csproj Log Message: SPRNET-786 - Fix Spring.Data related projects in Spring VS2003 solution Index: Spring.Data.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Spring.Data.Tests.2003.csproj,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Spring.Data.Tests.2003.csproj 14 Sep 2007 15:11:47 -0000 1.10 --- Spring.Data.Tests.2003.csproj 4 Dec 2007 19:56:29 -0000 1.11 *************** *** 2,6 **** <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{C5585365-561C-4EC4-8956-87FFBD9AB1CD}" --- 2,6 ---- <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.6030" SchemaVersion = "2.0" ProjectGuid = "{C5585365-561C-4EC4-8956-87FFBD9AB1CD}" *************** *** 130,133 **** --- 130,138 ---- HintPath = "..\..\..\lib\Net\1.1\Rhino.Mocks.dll" /> + <Reference + Name = "System.EnterpriseServices" + AssemblyName = "System.EnterpriseServices" + HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.EnterpriseServices.dll" + /> </References> </Build> *************** *** 207,215 **** /> <File - RelPath = "Data\TxScopeTransactionManagerTests.cs" - SubType = "Code" - BuildAction = "Compile" - /> - <File RelPath = "Data\Common\AdditonalProviders.xml" BuildAction = "EmbeddedResource" --- 212,215 ---- *************** *** 221,224 **** --- 221,229 ---- /> <File + RelPath = "Data\Core\ServiceDomainTransactionManagerTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Data\Objects\AdoQueryTests.cs" SubType = "Code" |
From: Mark P. <mar...@us...> - 2007-12-04 19:56:22
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3953 Modified Files: Spring.Data.2003.csproj Log Message: SPRNET-786 - Fix Spring.Data related projects in Spring VS2003 solution Index: Spring.Data.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Spring.Data.2003.csproj,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** Spring.Data.2003.csproj 4 Dec 2007 15:22:46 -0000 1.25 --- Spring.Data.2003.csproj 4 Dec 2007 19:56:18 -0000 1.26 *************** *** 568,576 **** /> <File - RelPath = "Data\Objects\DataSetOperation.cs" - SubType = "Code" - BuildAction = "Compile" - /> - <File RelPath = "Data\Objects\MappingAdoQuery.cs" SubType = "Code" --- 568,571 ---- *************** *** 643,646 **** --- 638,646 ---- /> <File + RelPath = "Data\Support\DefaultServiceDomainAdapter.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Data\Support\ErrorCodeExceptionTranslator.cs" SubType = "Code" *************** *** 658,661 **** --- 658,666 ---- /> <File + RelPath = "Data\Support\IServiceDomainAdapter.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Data\Support\NamedResultSetProcessor.cs" SubType = "Code" *************** *** 678,681 **** --- 683,691 ---- /> <File + RelPath = "Data\Support\SimpleServiceConfig.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Data\Support\TypedDataSetUtils.cs" SubType = "Code" |
From: Mark P. <mar...@us...> - 2007-12-04 19:43:30
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Data/Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31309 Modified Files: ServiceDomainTransactionManagerTests.cs TxScopeTransactionManagerTests.cs Log Message: SPRNET-773 - Unit tests for ServiceDomainTransactionManager SPRNET-761 - Unit tests for TxScopePlatformTransactionManager, call 'IsExistingTransaction' method on ITransactionScopeAdapter in TxMgr impl remove DataAdapterObject, was not used or implemented - cruft. Index: TxScopeTransactionManagerTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Data/Core/TxScopeTransactionManagerTests.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TxScopeTransactionManagerTests.cs 30 Nov 2007 18:38:59 -0000 1.1 --- TxScopeTransactionManagerTests.cs 4 Dec 2007 19:43:23 -0000 1.2 *************** *** 59,62 **** --- 59,63 ---- using (mocks.Ordered()) { + Expect.Call(txAdapter.IsExistingTransaction).Return(false); TransactionOptions txOptions = new TransactionOptions(); txOptions.IsolationLevel = IsolationLevel.Unspecified; *************** *** 93,96 **** --- 94,98 ---- using (mocks.Ordered()) { + Expect.Call(txAdapter.IsExistingTransaction).Return(false); TransactionOptions txOptions = new TransactionOptions(); txOptions.IsolationLevel = IsolationLevel.Unspecified; *************** *** 137,140 **** --- 139,143 ---- using (mocks.Ordered()) { + Expect.Call(txAdapter.IsExistingTransaction).Return(false); TransactionOptions txOptions = new TransactionOptions(); txOptions.IsolationLevel = IsolationLevel.Unspecified; *************** *** 142,145 **** --- 145,149 ---- //inner tx actions + Expect.Call(txAdapter.IsExistingTransaction).Return(true); txAdapter.CreateTransactionScope(TransactionScopeOption.RequiresNew, txOptions, EnterpriseServicesInteropOption.None); txAdapter.Dispose(); Index: ServiceDomainTransactionManagerTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Data/Core/ServiceDomainTransactionManagerTests.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ServiceDomainTransactionManagerTests.cs 4 Dec 2007 16:31:14 -0000 1.3 --- ServiceDomainTransactionManagerTests.cs 4 Dec 2007 19:43:23 -0000 1.4 *************** *** 55,64 **** public void TransactionCommit() { IServiceDomainAdapter txAdapter = (IServiceDomainAdapter) mocks.CreateMock(typeof (IServiceDomainAdapter)); using (mocks.Ordered()) { ! SimpleServiceConfig serviceConfig = CreateServiceConfig(); ! serviceConfig.TransactionOption = TransactionOption.Required; ! serviceConfig.IsolationLevel = TransactionIsolationLevel.Any; txAdapter.Enter(serviceConfig); --- 55,65 ---- public void TransactionCommit() { + #region Mock Setup IServiceDomainAdapter txAdapter = (IServiceDomainAdapter) mocks.CreateMock(typeof (IServiceDomainAdapter)); using (mocks.Ordered()) { ! Expect.Call(txAdapter.IsInTransaction).Return(false); ! SimpleServiceConfig serviceConfig = new SimpleServiceConfig(); ! ConfigureServiceConfig(serviceConfig, true); txAdapter.Enter(serviceConfig); *************** *** 73,78 **** txAdapter.SetComplete(); Expect.Call(txAdapter.Leave()).Return(TransactionStatus.Commited); ! } mocks.ReplayAll(); --- 74,81 ---- txAdapter.SetComplete(); Expect.Call(txAdapter.Leave()).Return(TransactionStatus.Commited); ! } + #endregion + mocks.ReplayAll(); *************** *** 98,107 **** public void TransactionRollback() { IServiceDomainAdapter txAdapter = (IServiceDomainAdapter)mocks.CreateMock(typeof(IServiceDomainAdapter)); using (mocks.Ordered()) { ! SimpleServiceConfig serviceConfig = CreateServiceConfig(); ! serviceConfig.TransactionOption = TransactionOption.Required; ! serviceConfig.IsolationLevel = TransactionIsolationLevel.Any; txAdapter.Enter(serviceConfig); Expect.Call(txAdapter.IsInTransaction).Return(true); --- 101,112 ---- public void TransactionRollback() { + #region Mock Setup IServiceDomainAdapter txAdapter = (IServiceDomainAdapter)mocks.CreateMock(typeof(IServiceDomainAdapter)); using (mocks.Ordered()) { ! ! Expect.Call(txAdapter.IsInTransaction).Return(false); ! SimpleServiceConfig serviceConfig = new SimpleServiceConfig(); ! ConfigureServiceConfig(serviceConfig, true); txAdapter.Enter(serviceConfig); Expect.Call(txAdapter.IsInTransaction).Return(true); *************** *** 110,113 **** --- 115,120 ---- } + #endregion + mocks.ReplayAll(); *************** *** 134,140 **** } ! private SimpleServiceConfig CreateServiceConfig() { - SimpleServiceConfig serviceConfig = new SimpleServiceConfig(); serviceConfig.TransactionDescription = null; --- 141,198 ---- } ! ! [Test] ! public void PropagationRequiresNewWithExistingTransaction() ! { ! #region Mock Setup ! IServiceDomainAdapter txAdapter = (IServiceDomainAdapter)mocks.CreateMock(typeof(IServiceDomainAdapter)); ! using (mocks.Ordered()) ! { ! ! Expect.Call(txAdapter.IsInTransaction).Return(false); ! SimpleServiceConfig serviceConfig = new SimpleServiceConfig(); ! ConfigureServiceConfig(serviceConfig, true); ! txAdapter.Enter(serviceConfig); ! ! ! Expect.Call(txAdapter.IsInTransaction).Return(true); ! // inner tx ! ConfigureServiceConfig(serviceConfig, false); ! serviceConfig.TransactionOption = TransactionOption.RequiresNew; ! serviceConfig.IsolationLevel = TransactionIsolationLevel.Any; ! txAdapter.Enter(serviceConfig); ! Expect.Call(txAdapter.IsInTransaction).Return(true); ! txAdapter.SetAbort(); ! Expect.Call(txAdapter.Leave()).Return(TransactionStatus.Aborted); ! // innter tx aborted ! ! ! //ProcessCommit - status.GlobalRollbackOnly check ! Expect.Call(txAdapter.MyTransactionVote).Return(TransactionVote.Commit); ! //DoCommit - status.GlobalRollbackOnly check ! Expect.Call(txAdapter.MyTransactionVote).Return(TransactionVote.Commit); ! ! Expect.Call(txAdapter.IsInTransaction).Return(true); ! //DoCommit - check to call SetComplete or SetAbort ! Expect.Call(txAdapter.MyTransactionVote).Return(TransactionVote.Commit); ! txAdapter.SetComplete(); ! ! Expect.Call(txAdapter.Leave()).Return(TransactionStatus.Commited); ! ! } ! #endregion ! ! mocks.ReplayAll(); ! ! IPlatformTransactionManager tm = new ServiceDomainPlatformTransactionManager(txAdapter); ! TransactionTemplate tt = new TransactionTemplate(tm); ! tt.PropagationBehavior = TransactionPropagation.RequiresNew; ! tt.Execute(new PropagationRequiresNewWithExistingTransactionCallbackSD(tt)); ! mocks.VerifyAll(); ! } ! ! #region Helper Methods ! private SimpleServiceConfig ConfigureServiceConfig(SimpleServiceConfig serviceConfig, bool standardIsolationAndProp) { serviceConfig.TransactionDescription = null; *************** *** 142,148 **** --- 200,213 ---- serviceConfig.TrackingAppName = "Spring.NET"; serviceConfig.TrackingComponentName = "ServiceDomainPlatformTransactionManager"; + if (standardIsolationAndProp) + { + serviceConfig.TransactionOption = TransactionOption.Required; + serviceConfig.IsolationLevel = TransactionIsolationLevel.Any; + } return serviceConfig; } + #endregion + #region Supporting class for TransactionRollback test *************** *** 167,171 **** --- 232,274 ---- #endregion + + #region Supporting class for PropagationRequiresNewWithExistingTransactionCallback test + internal class PropagationRequiresNewWithExistingTransactionCallbackSD : ITransactionCallback + { + private TransactionTemplate tt; + + public PropagationRequiresNewWithExistingTransactionCallbackSD(TransactionTemplate tt) + { + this.tt = tt; + } + + public object DoInTransaction(ITransactionStatus status) + { + Assert.IsTrue(status.IsNewTransaction, "Is new transaction"); + Assert.IsTrue(TransactionSynchronizationManager.SynchronizationActive, "Synchronization active"); + Assert.IsFalse(TransactionSynchronizationManager.CurrentTransactionReadOnly); + Assert.IsTrue(TransactionSynchronizationManager.ActualTransactionActive); + tt.Execute(new TransactionDelegate(TransactionMethod)); + Assert.IsTrue(status.IsNewTransaction, "Is new transaction"); + Assert.IsFalse(TransactionSynchronizationManager.CurrentTransactionReadOnly); + Assert.IsTrue(TransactionSynchronizationManager.ActualTransactionActive); + return null; + } + + private object TransactionMethod(ITransactionStatus status) + { + Assert.IsTrue(TransactionSynchronizationManager.SynchronizationActive, "Synchronization active"); + Assert.IsTrue(status.IsNewTransaction, "Is new transaction"); + Assert.IsFalse(TransactionSynchronizationManager.CurrentTransactionReadOnly); + Assert.IsTrue(TransactionSynchronizationManager.ActualTransactionActive); + status.RollbackOnly = true; + return null; + } + } + + #endregion } + + } #endif \ No newline at end of file |