springnet-commits Mailing List for Spring Framework .NET (Page 46)
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: Bruno B. <bb...@us...> - 2007-09-14 15:11:58
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/test/Spring/Spring.Data.Integration.Tests Modified Files: Spring.Data.Integration.Tests.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Data.Integration.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests/Spring.Data.Integration.Tests.2003.csproj,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Spring.Data.Integration.Tests.2003.csproj 11 Sep 2007 16:41:29 -0000 1.8 --- Spring.Data.Integration.Tests.2003.csproj 14 Sep 2007 15:11:47 -0000 1.9 *************** *** 18,22 **** OutputType = "Library" PreBuildEvent = "" ! PostBuildEvent = 'echo "Copying .xml files for tests"
xcopy "$(ProjectDir)Data" ..\..\..\..\build\VS.Net\Spring.Data.Integration.Tests\$(ConfigurationName)\ /y /s /q /d
xcopy "$(ProjectDir)$(TargetFileName).config" ..\..\..\..\build\VS.Net\Spring.Data.Integration.Tests\$(ConfigurationName)\ /y /s /q' RootNamespace = "Spring" RunPostBuildEvent = "OnBuildSuccess" --- 18,22 ---- OutputType = "Library" PreBuildEvent = "" ! PostBuildEvent = 'echo "Copying .xml files for tests"
xcopy "$(ProjectDir)Data" ..\..\..\..\build\VS.Net.2003\Spring.Data.Integration.Tests\$(ConfigurationName)\ /y /s /q /d
xcopy "$(ProjectDir)$(TargetFileName).config" ..\..\..\..\build\VS.Net.2003\Spring.Data.Integration.Tests\$(ConfigurationName)\ /y /s /q' RootNamespace = "Spring" RunPostBuildEvent = "OnBuildSuccess" *************** *** 37,41 **** NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Data.Integration.Tests\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Data.Integration.Tests\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Data.Integration.Tests\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Data.Integration.Tests\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:53
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Services In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/src/Spring/Spring.Services Modified Files: Spring.Services.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Services.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Services/Spring.Services.2003.csproj,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Spring.Services.2003.csproj 11 Sep 2007 16:41:02 -0000 1.7 --- Spring.Services.2003.csproj 14 Sep 2007 15:11:46 -0000 1.8 *************** *** 37,41 **** NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Services\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Services\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Services\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Services\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:52
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/test/Spring/Spring.Web.Tests Modified Files: Spring.Web.Tests.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Web.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2003.csproj,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** Spring.Web.Tests.2003.csproj 14 Sep 2007 13:49:00 -0000 1.36 --- Spring.Web.Tests.2003.csproj 14 Sep 2007 15:11:47 -0000 1.37 *************** *** 37,41 **** NoWarn = "0618" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Web.Tests\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "0618" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Web.Tests\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Web.Tests\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Web.Tests\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:52
|
Update of /cvsroot/springnet/Spring.Net In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151 Modified Files: Spring.Net.1.0.2003.sln Spring.Net.Core.2003.sln Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Net.1.0.2003.sln =================================================================== RCS file: /cvsroot/springnet/Spring.Net/Spring.Net.1.0.2003.sln,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Spring.Net.1.0.2003.sln 29 Oct 2006 21:08:32 -0000 1.1 --- Spring.Net.1.0.2003.sln 14 Sep 2007 15:11:46 -0000 1.2 *************** *** 1,16 **** Microsoft Visual Studio Solution File, Format Version 8.00 ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core", "src\Spring\Spring.Core\Spring.Core.2003.csproj", "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.Tests", "test\Spring\Spring.Core.Tests\Spring.Core.Tests.2003.csproj", "{44B16BAA-6DF8-447C-9D7F-3AD3D854D904}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aop", "src\Spring\Spring.Aop\Spring.Aop.2003.csproj", "{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aop.Tests", "test\Spring\Spring.Aop.Tests\Spring.Aop.Tests.2003.csproj", "{2111596A-0327-4C9D-8919-294FBD988A23}" ProjectSection(ProjectDependencies) = postProject EndProjectSection --- 1,16 ---- Microsoft Visual Studio Solution File, Format Version 8.00 ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.2003", "src\Spring\Spring.Core\Spring.Core.2003.csproj", "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.Tests.2003", "test\Spring\Spring.Core.Tests\Spring.Core.Tests.2003.csproj", "{44B16BAA-6DF8-447C-9D7F-3AD3D854D904}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aop.2003", "src\Spring\Spring.Aop\Spring.Aop.2003.csproj", "{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aop.Tests.2003", "test\Spring\Spring.Aop.Tests\Spring.Aop.Tests.2003.csproj", "{2111596A-0327-4C9D-8919-294FBD988A23}" ProjectSection(ProjectDependencies) = postProject EndProjectSection *************** *** 18,41 **** Global GlobalSection(SolutionConfiguration) = preSolution ! Debug = Debug ! Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug.ActiveCfg = Debug|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug.Build.0 = Debug|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release.ActiveCfg = Release|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release.Build.0 = Release|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug.ActiveCfg = Debug|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug.Build.0 = Debug|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release.ActiveCfg = Release|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release.Build.0 = Release|.NET ! {3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug.ActiveCfg = Debug|.NET ! {3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug.Build.0 = Debug|.NET ! {3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release.ActiveCfg = Release|.NET ! {3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release.Build.0 = Release|.NET ! {2111596A-0327-4C9D-8919-294FBD988A23}.Debug.ActiveCfg = Debug|.NET ! {2111596A-0327-4C9D-8919-294FBD988A23}.Debug.Build.0 = Debug|.NET ! {2111596A-0327-4C9D-8919-294FBD988A23}.Release.ActiveCfg = Release|.NET ! {2111596A-0327-4C9D-8919-294FBD988A23}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution --- 18,41 ---- Global GlobalSection(SolutionConfiguration) = preSolution ! Debug-1.1 = Debug-1.1 ! Release-1.1 = Release-1.1 EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug-1.1.ActiveCfg = Debug-1.1|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug-1.1.Build.0 = Debug-1.1|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release-1.1.ActiveCfg = Release-1.1|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release-1.1.Build.0 = Release-1.1|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug-1.1.ActiveCfg = Debug-1.1|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug-1.1.Build.0 = Debug-1.1|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release-1.1.ActiveCfg = Release-1.1|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release-1.1.Build.0 = Release-1.1|.NET ! {3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug-1.1.ActiveCfg = Debug-1.1|.NET ! {3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug-1.1.Build.0 = Debug-1.1|.NET ! {3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release-1.1.ActiveCfg = Release-1.1|.NET ! {3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release-1.1.Build.0 = Release-1.1|.NET ! {2111596A-0327-4C9D-8919-294FBD988A23}.Debug-1.1.ActiveCfg = Debug-1.1|.NET ! {2111596A-0327-4C9D-8919-294FBD988A23}.Debug-1.1.Build.0 = Debug-1.1|.NET ! {2111596A-0327-4C9D-8919-294FBD988A23}.Release-1.1.ActiveCfg = Release-1.1|.NET ! {2111596A-0327-4C9D-8919-294FBD988A23}.Release-1.1.Build.0 = Release-1.1|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution Index: Spring.Net.Core.2003.sln =================================================================== RCS file: /cvsroot/springnet/Spring.Net/Spring.Net.Core.2003.sln,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Spring.Net.Core.2003.sln 29 Oct 2006 21:08:32 -0000 1.4 --- Spring.Net.Core.2003.sln 14 Sep 2007 15:11:46 -0000 1.5 *************** *** 1,8 **** Microsoft Visual Studio Solution File, Format Version 8.00 ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core", "src\Spring\Spring.Core\Spring.Core.2003.csproj", "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.Tests", "test\Spring\Spring.Core.Tests\Spring.Core.Tests.2003.csproj", "{44B16BAA-6DF8-447C-9D7F-3AD3D854D904}" ProjectSection(ProjectDependencies) = postProject EndProjectSection --- 1,8 ---- Microsoft Visual Studio Solution File, Format Version 8.00 ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.2003", "src\Spring\Spring.Core\Spring.Core.2003.csproj", "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject ! Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.Tests.2003", "test\Spring\Spring.Core.Tests\Spring.Core.Tests.2003.csproj", "{44B16BAA-6DF8-447C-9D7F-3AD3D854D904}" ProjectSection(ProjectDependencies) = postProject EndProjectSection *************** *** 10,25 **** Global GlobalSection(SolutionConfiguration) = preSolution ! Debug = Debug ! Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug.ActiveCfg = Debug|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug.Build.0 = Debug|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release.ActiveCfg = Release|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release.Build.0 = Release|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug.ActiveCfg = Debug|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug.Build.0 = Debug|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release.ActiveCfg = Release|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution --- 10,25 ---- Global GlobalSection(SolutionConfiguration) = preSolution ! Debug-1.1 = Debug-1.1 ! Release-1.1 = Release-1.1 EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug-1.1.ActiveCfg = Debug-1.1|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug-1.1.Build.0 = Debug-1.1|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release-1.1.ActiveCfg = Release-1.1|.NET ! {710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release-1.1.Build.0 = Release-1.1|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug-1.1.ActiveCfg = Debug-1.1|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Debug-1.1.Build.0 = Debug-1.1|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release-1.1.ActiveCfg = Release-1.1|.NET ! {44B16BAA-6DF8-447C-9D7F-3AD3D854D904}.Release-1.1.Build.0 = Release-1.1|.NET EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:52
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Testing.NUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/src/Spring/Spring.Testing.NUnit Modified Files: Spring.Testing.NUnit.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Testing.NUnit.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Testing.NUnit/Spring.Testing.NUnit.2003.csproj,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Spring.Testing.NUnit.2003.csproj 11 Sep 2007 16:41:02 -0000 1.4 --- Spring.Testing.NUnit.2003.csproj 14 Sep 2007 15:11:46 -0000 1.5 *************** *** 37,41 **** NoWarn = "1587, 1591, 219, 162" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Testing.NUnit\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "1587, 1591, 219, 162" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Testing.NUnit\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Testing.NUnit\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Testing.NUnit\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:52
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/src/Spring/Spring.Web Modified Files: Spring.Web.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Web.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Spring.Web.2003.csproj,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Spring.Web.2003.csproj 8 Aug 2007 17:46:09 -0000 1.22 --- Spring.Web.2003.csproj 14 Sep 2007 15:11:46 -0000 1.23 *************** *** 37,41 **** NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Web\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Web\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Web\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Web\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:51
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/src/Spring/Spring.Core Modified Files: Spring.Core.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Core.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Spring.Core.2003.csproj,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** Spring.Core.2003.csproj 14 Sep 2007 13:48:53 -0000 1.49 --- Spring.Core.2003.csproj 14 Sep 2007 15:11:46 -0000 1.50 *************** *** 37,41 **** NoWarn = "219, 162" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Core\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "219, 162" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Core\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Core\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Core\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:51
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/src/Spring/Spring.Data Modified Files: Spring.Data.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Data.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Spring.Data.2003.csproj,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Spring.Data.2003.csproj 11 Sep 2007 16:41:02 -0000 1.22 --- Spring.Data.2003.csproj 14 Sep 2007 15:11:46 -0000 1.23 *************** *** 37,41 **** NoWarn = "1591" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Data\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "1591" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Data\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Data\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Data\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:51
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Aop.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/test/Spring/Spring.Aop.Tests Modified Files: Spring.Aop.Tests.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Aop.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Aop.Tests/Spring.Aop.Tests.2003.csproj,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Spring.Aop.Tests.2003.csproj 11 Sep 2007 16:41:28 -0000 1.16 --- Spring.Aop.Tests.2003.csproj 14 Sep 2007 15:11:46 -0000 1.17 *************** *** 18,22 **** OutputType = "Library" PreBuildEvent = "" ! PostBuildEvent = 'echo "Copying .xml files for tests"
xcopy "$(ProjectDir)Data" "..\..\..\..\build\VS.Net\Spring.Aop.Tests\$(ConfigurationName)\" /y /s /q
' RootNamespace = "Spring" RunPostBuildEvent = "OnBuildSuccess" --- 18,22 ---- OutputType = "Library" PreBuildEvent = "" ! PostBuildEvent = 'echo "Copying .xml files for tests"
xcopy "$(ProjectDir)Data" "..\..\..\..\build\VS.Net.2003\Spring.Aop.Tests\$(ConfigurationName)\" /y /s /q
' RootNamespace = "Spring" RunPostBuildEvent = "OnBuildSuccess" *************** *** 37,41 **** NoWarn = "0618" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Aop.Tests\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "0618" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Aop.Tests\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Aop.Tests\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Aop.Tests\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:51
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/src/Spring/Spring.Aop Modified Files: Spring.Aop.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Aop.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Spring.Aop.2003.csproj,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Spring.Aop.2003.csproj 11 Sep 2007 16:41:01 -0000 1.20 --- Spring.Aop.2003.csproj 14 Sep 2007 15:11:46 -0000 1.21 *************** *** 37,41 **** NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Aop\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Aop\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Aop\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Aop\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Bruno B. <bb...@us...> - 2007-09-14 15:11:50
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16151/src/Spring/Spring.Data.NHibernate Modified Files: Spring.Data.NHibernate.2003.csproj Log Message: Updated VS2003 csprj OutputPath. Index: Spring.Data.NHibernate.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate/Spring.Data.NHibernate.2003.csproj,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Spring.Data.NHibernate.2003.csproj 11 Sep 2007 16:41:02 -0000 1.6 --- Spring.Data.NHibernate.2003.csproj 14 Sep 2007 15:11:46 -0000 1.7 *************** *** 37,41 **** NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net\Spring.Data.NHibernate\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 37,41 ---- NoWarn = "" Optimize = "false" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Data.NHibernate\Debug-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" *************** *** 57,61 **** NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net\Spring.Data.NHibernate\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" --- 57,61 ---- NoWarn = "" Optimize = "true" ! OutputPath = "..\..\..\build\VS.Net.2003\Spring.Data.NHibernate\Release-1.1\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" |
From: Erich E. <oak...@us...> - 2007-09-14 13:49:05
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13385 Modified Files: Spring.Web.Tests.2003.csproj Log Message: fixed SPRNET-725 Index: Spring.Web.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2003.csproj,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Spring.Web.Tests.2003.csproj 11 Sep 2007 17:03:50 -0000 1.35 --- Spring.Web.Tests.2003.csproj 14 Sep 2007 13:49:00 -0000 1.36 *************** *** 2,6 **** <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{EB2587B7-8B26-4FBC-852A-4128D5CACAFC}" --- 2,6 ---- <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.6030" SchemaVersion = "2.0" ProjectGuid = "{EB2587B7-8B26-4FBC-852A-4128D5CACAFC}" *************** *** 164,168 **** RelPath = "Data\Spring\Objects\Factory\Support\TestForm.aspx.cs" DependentUpon = "TestForm.aspx" ! SubType = "Code" BuildAction = "Compile" /> --- 164,168 ---- RelPath = "Data\Spring\Objects\Factory\Support\TestForm.aspx.cs" DependentUpon = "TestForm.aspx" ! SubType = "ASPXCodeBehind" BuildAction = "Compile" /> *************** *** 179,183 **** <File RelPath = "TestSupport\PageTestObject.cs" ! SubType = "Code" BuildAction = "Compile" /> --- 179,183 ---- <File RelPath = "TestSupport\PageTestObject.cs" ! SubType = "ASPXCodeBehind" BuildAction = "Compile" /> *************** *** 204,208 **** <File RelPath = "Util\ControlInterceptionTests.cs" ! SubType = "ASPXCodeBehind" BuildAction = "Compile" /> --- 204,208 ---- <File RelPath = "Util\ControlInterceptionTests.cs" ! SubType = "Code" BuildAction = "Compile" /> |
From: Erich E. <oak...@us...> - 2007-09-14 13:48:57
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Expressions In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13355/Expressions Modified Files: PropertyOrFieldNode.cs Log Message: fixed SPRNET-725 Index: PropertyOrFieldNode.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Expressions/PropertyOrFieldNode.cs,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** PropertyOrFieldNode.cs 7 Sep 2007 03:01:26 -0000 1.27 --- PropertyOrFieldNode.cs 14 Sep 2007 13:48:53 -0000 1.28 *************** *** 111,115 **** // check the context type first accessor = GetPropertyOrFieldAccessor(contextType, memberName, BINDING_FLAGS); ! // if not found, probe the Type type if (accessor == null && context is Type) --- 111,115 ---- // check the context type first accessor = GetPropertyOrFieldAccessor(contextType, memberName, BINDING_FLAGS); ! // if not found, probe the Type type if (accessor == null && context is Type) *************** *** 184,205 **** { PropertyInfo pi = null; ! // search type hierarchy ! while( contextType != typeof(object) ) { ! pi = contextType.GetProperty(memberName, bindingFlags | BindingFlags.DeclaredOnly); ! if(pi == null) ! { ! FieldInfo fi = contextType.GetField(memberName, bindingFlags | BindingFlags.DeclaredOnly); ! if(fi != null) { ! return new FieldValueAccessor(fi); } ! } ! else ! { ! return new PropertyValueAccessor(pi); ! } ! contextType = contextType.BaseType; } } --- 184,205 ---- { PropertyInfo pi = null; ! // search type hierarchy ! while (contextType != typeof(object)) { ! pi = contextType.GetProperty(memberName, bindingFlags | BindingFlags.DeclaredOnly); ! if (pi == null) { ! FieldInfo fi = contextType.GetField(memberName, bindingFlags | BindingFlags.DeclaredOnly); ! if (fi != null) ! { ! return new FieldValueAccessor(fi); ! } } ! else ! { ! return new PropertyValueAccessor(pi); ! } ! contextType = contextType.BaseType; } } *************** *** 219,237 **** { InitializeNode(context); - } ! if (context == null && accessor.RequiresContext) ! { ! throw new NullValueInNestedPathException( ! "Cannot retrieve the value of a field or property '" + this.memberName ! + "', because context for its resolution is null."); ! } ! if (IsProperty || IsField) ! { ! return GetPropertyOrFieldValue(context, evalContext); ! } ! else ! { ! return accessor.Get(context); } } --- 219,237 ---- { InitializeNode(context); ! if (context == null && accessor.RequiresContext) ! { ! throw new NullValueInNestedPathException( ! "Cannot retrieve the value of a field or property '" + this.memberName ! + "', because context for its resolution is null."); ! } ! if (IsProperty || IsField) ! { ! return GetPropertyOrFieldValue(context, evalContext); ! } ! else ! { ! return accessor.Get(context); ! } } } *************** *** 255,267 **** + "', because context for its resolution is null."); } ! } ! ! if (IsProperty || IsField) ! { ! SetPropertyOrFieldValue(context, evalContext, newValue); ! } ! else ! { ! accessor.Set(context, newValue); } } --- 255,266 ---- + "', because context for its resolution is null."); } ! if (IsProperty || IsField) ! { ! SetPropertyOrFieldValue(context, evalContext, newValue); ! } ! else ! { ! accessor.Set(context, newValue); ! } } } *************** *** 303,311 **** catch (InvalidOperationException) { ! throw new NotReadablePropertyException( evalContext.RootContextType,this.memberName ); } catch (TargetInvocationException e) { ! throw new InvalidPropertyException( evalContext.RootContextType,this.memberName, "Getter for property '" + this.memberName + "' threw an exception.", e); --- 302,310 ---- catch (InvalidOperationException) { ! throw new NotReadablePropertyException(evalContext.RootContextType, this.memberName); } catch (TargetInvocationException e) { ! throw new InvalidPropertyException(evalContext.RootContextType, this.memberName, "Getter for property '" + this.memberName + "' threw an exception.", e); *************** *** 313,317 **** catch (UnauthorizedAccessException e) { ! throw new InvalidPropertyException( evalContext.RootContextType,this.memberName, "Illegal attempt to get value for the property '" + this.memberName + "'.", e); --- 312,316 ---- catch (UnauthorizedAccessException e) { ! throw new InvalidPropertyException(evalContext.RootContextType, this.memberName, "Illegal attempt to get value for the property '" + this.memberName + "'.", e); *************** *** 430,437 **** if (newValue is IList && !RemotingServices.IsTransparentProxy(newValue)) { ! IList currentValue = (IList) Get(context, evalContext); if (currentValue != null && !currentValue.IsFixedSize && !currentValue.IsReadOnly) { ! foreach (object el in (IList) newValue) { currentValue.Add(el); --- 429,436 ---- if (newValue is IList && !RemotingServices.IsTransparentProxy(newValue)) { ! IList currentValue = (IList)Get(context, evalContext); if (currentValue != null && !currentValue.IsFixedSize && !currentValue.IsReadOnly) { ! foreach (object el in (IList)newValue) { currentValue.Add(el); *************** *** 440,450 **** } } ! // try adding values if property is a dictionary... else if (newValue is IDictionary && !RemotingServices.IsTransparentProxy(newValue)) { ! IDictionary currentValue = (IDictionary)Get( context, evalContext ); if (currentValue != null && !currentValue.IsFixedSize && !currentValue.IsReadOnly) { ! foreach (DictionaryEntry entry in (IDictionary) newValue) { currentValue[entry.Key] = entry.Value; --- 439,449 ---- } } ! // try adding values if property is a dictionary... else if (newValue is IDictionary && !RemotingServices.IsTransparentProxy(newValue)) { ! IDictionary currentValue = (IDictionary)Get(context, evalContext); if (currentValue != null && !currentValue.IsFixedSize && !currentValue.IsReadOnly) { ! foreach (DictionaryEntry entry in (IDictionary)newValue) { currentValue[entry.Key] = entry.Value; *************** *** 453,463 **** } } ! // try adding values if property is a set... else if (newValue is ISet && !RemotingServices.IsTransparentProxy(newValue)) { ! ISet currentValue = (ISet)Get( context, evalContext ); if (currentValue != null) { ! currentValue.AddAll((ICollection) newValue); added = true; } --- 452,462 ---- } } ! // try adding values if property is a set... else if (newValue is ISet && !RemotingServices.IsTransparentProxy(newValue)) { ! ISet currentValue = (ISet)Get(context, evalContext); if (currentValue != null) { ! currentValue.AddAll((ICollection)newValue); added = true; } |
From: Erich E. <oak...@us...> - 2007-09-14 13:48:56
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13355 Modified Files: Spring.Core.2003.csproj Log Message: fixed SPRNET-725 Index: Spring.Core.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Spring.Core.2003.csproj,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** Spring.Core.2003.csproj 11 Sep 2007 16:41:01 -0000 1.48 --- Spring.Core.2003.csproj 14 Sep 2007 13:48:53 -0000 1.49 *************** *** 2,6 **** <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}" --- 2,6 ---- <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.6030" SchemaVersion = "2.0" ProjectGuid = "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}" *************** *** 17,21 **** DelaySign = "false" OutputType = "Library" ! PreBuildEvent = "$(SolutionDir)\tools\antlr-2.7.6\antlr-2.7.6.exe -o $(ProjectDir)\Expressions\Parser $(ProjectDir)\Expressions\Expression.g" PostBuildEvent = "" RootNamespace = "Spring" --- 17,21 ---- DelaySign = "false" OutputType = "Library" ! PreBuildEvent = "$(ProjectDir)..\..\..\tools\antlr-2.7.6\antlr-2.7.6.exe -o $(ProjectDir)\Expressions\Parser $(ProjectDir)\Expressions\Expression.g" PostBuildEvent = "" RootNamespace = "Spring" |
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests/Scheduling/Quartz In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23397/Scheduling/Quartz Modified Files: AdaptableJobFactoryTest.cs JobDetailObjectTest.cs SchedulerFactoryObjectTest.cs Log Message: Some fixes to tests, added small Quartz Integration example Index: SchedulerFactoryObjectTest.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests/Scheduling/Quartz/SchedulerFactoryObjectTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SchedulerFactoryObjectTest.cs 12 Sep 2007 18:39:33 -0000 1.1 --- SchedulerFactoryObjectTest.cs 14 Sep 2007 12:56:10 -0000 1.2 *************** *** 35,38 **** --- 35,39 ---- public class SchedulerFactoryObjectTest { + private MockRepository mockery = null; private SchedulerFactoryObject factory; *************** *** 41,44 **** --- 42,46 ---- { factory = new SchedulerFactoryObject(); + TestSchedulerFactory.Mockery.BackToRecordAll(); } *************** *** 47,50 **** --- 49,53 ---- { factory.AfterPropertiesSet(); + TestSchedulerFactory.Mockery.ReplayAll(); } *************** *** 54,57 **** --- 57,61 ---- factory.JobFactory = null; factory.AfterPropertiesSet(); + TestSchedulerFactory.Mockery.ReplayAll(); } *************** *** 60,64 **** { // set expectations - TestSchedulerFactory.Mockery.BackToRecordAll(); TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); --- 64,67 ---- *************** *** 68,73 **** factory.AutoStartup = false; factory.AfterPropertiesSet(); - - TestSchedulerFactory.Mockery.VerifyAll(); } --- 71,74 ---- *************** *** 75,82 **** public void TestAfterPropertiesSet_AutoStartup() { ! TestSchedulerFactory.Mockery.BackToRecordAll(); ! // set expectations ! TestSchedulerFactory.MockScheduler.JobFactory = null; ! LastCall.IgnoreArguments(); TestSchedulerFactory.MockScheduler.Start(); TestSchedulerFactory.Mockery.ReplayAll(); --- 76,81 ---- public void TestAfterPropertiesSet_AutoStartup() { ! InitForAfterPropertiesSetTest(); ! TestSchedulerFactory.MockScheduler.Start(); TestSchedulerFactory.Mockery.ReplayAll(); *************** *** 85,90 **** factory.AutoStartup = true; factory.AfterPropertiesSet(); ! TestSchedulerFactory.Mockery.VerifyAll(); } --- 84,186 ---- factory.AutoStartup = true; factory.AfterPropertiesSet(); + } ! [Test] ! public void TestAfterPropertiesSet_AddListeners() ! { ! mockery = new MockRepository(); ! InitForAfterPropertiesSetTest(); ! ! factory.SchedulerListeners = new ISchedulerListener[] { (ISchedulerListener)mockery.CreateMock(typeof(ISchedulerListener)) }; ! TestSchedulerFactory.MockScheduler.AddSchedulerListener(null); ! LastCall.IgnoreArguments(); ! ! factory.GlobalJobListeners = new IJobListener[] { (IJobListener)mockery.CreateMock(typeof(IJobListener)) }; ! TestSchedulerFactory.MockScheduler.AddGlobalJobListener(null); ! LastCall.IgnoreArguments(); ! ! factory.JobListeners = new IJobListener[] { (IJobListener)mockery.CreateMock(typeof(IJobListener)) }; ! TestSchedulerFactory.MockScheduler.AddJobListener(null); ! LastCall.IgnoreArguments(); ! ! factory.GlobalTriggerListeners = new ITriggerListener[] { (ITriggerListener)mockery.CreateMock(typeof(ITriggerListener)) }; ! TestSchedulerFactory.MockScheduler.AddGlobalTriggerListener(null); ! LastCall.IgnoreArguments(); ! ! factory.TriggerListeners = new ITriggerListener[] { (ITriggerListener)mockery.CreateMock(typeof(ITriggerListener)) }; ! TestSchedulerFactory.MockScheduler.AddTriggerListener(null); ! LastCall.IgnoreArguments(); ! ! TestSchedulerFactory.Mockery.ReplayAll(); ! mockery.ReplayAll(); ! factory.AfterPropertiesSet(); ! } ! ! [Test] ! public void TestAfterPropertiesSet_Calendars() ! { ! mockery = new MockRepository(); ! InitForAfterPropertiesSetTest(); ! ! const string calendarName = "calendar"; ! ICalendar cal = (ICalendar) mockery.CreateMock(typeof (ICalendar)); ! Hashtable calTable = new Hashtable(); ! calTable[calendarName] = cal; ! factory.Calendars = calTable; ! TestSchedulerFactory.MockScheduler.AddCalendar(calendarName, cal, true, true); ! ! TestSchedulerFactory.Mockery.ReplayAll(); ! mockery.ReplayAll(); ! factory.AfterPropertiesSet(); ! } ! ! [Test] ! public void TestAfterPropertiesSet_Trigger_TriggerExists() ! { ! mockery = new MockRepository(); ! InitForAfterPropertiesSetTest(); ! ! const string TRIGGER_NAME = "trigName"; ! const string TRIGGER_GROUP = "trigGroup"; ! SimpleTrigger trigger = new SimpleTrigger(TRIGGER_NAME, TRIGGER_GROUP); ! factory.Triggers = new Trigger[] { trigger }; ! ! Expect.Call(TestSchedulerFactory.MockScheduler.GetTrigger(TRIGGER_NAME, TRIGGER_GROUP)).Return(trigger); ! ! TestSchedulerFactory.Mockery.ReplayAll(); ! mockery.ReplayAll(); ! factory.AfterPropertiesSet(); ! } ! ! [Test] ! public void TestAfterPropertiesSet_Trigger_TriggerDoesntExist() ! { ! mockery = new MockRepository(); ! InitForAfterPropertiesSetTest(); ! ! const string TRIGGER_NAME = "trigName"; ! const string TRIGGER_GROUP = "trigGroup"; ! SimpleTrigger trigger = new SimpleTrigger(TRIGGER_NAME, TRIGGER_GROUP); ! factory.Triggers = new Trigger[] { trigger }; ! ! Expect.Call(TestSchedulerFactory.MockScheduler.GetTrigger(TRIGGER_NAME, TRIGGER_GROUP)).Return(null); ! TestSchedulerFactory.MockScheduler.ScheduleJob(trigger); ! LastCall.IgnoreArguments().Return(DateTime.UtcNow); ! ! ! TestSchedulerFactory.Mockery.ReplayAll(); ! mockery.ReplayAll(); ! factory.AfterPropertiesSet(); ! ! } ! ! ! private void InitForAfterPropertiesSetTest() ! { ! factory.AutoStartup = false; ! // set expectations ! factory.SchedulerFactoryType = typeof(TestSchedulerFactory); ! TestSchedulerFactory.MockScheduler.JobFactory = null; ! LastCall.IgnoreArguments(); } *************** *** 93,97 **** { // set expectations - TestSchedulerFactory.Mockery.BackToRecordAll(); TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); --- 189,192 ---- *************** *** 102,111 **** factory.SchedulerFactoryType = typeof(TestSchedulerFactory); factory.AutoStartup = true; ! factory.StartupDelay = 5; factory.AfterPropertiesSet(); - Thread.Sleep(TimeSpan.FromSeconds(6)); - - TestSchedulerFactory.Mockery.VerifyAll(); } --- 197,204 ---- factory.SchedulerFactoryType = typeof(TestSchedulerFactory); factory.AutoStartup = true; ! factory.StartupDelay = 2; factory.AfterPropertiesSet(); + Thread.Sleep(TimeSpan.FromSeconds(3)); } *************** *** 114,118 **** { // set expectations - TestSchedulerFactory.Mockery.BackToRecordAll(); TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); --- 207,210 ---- *************** *** 124,128 **** factory.AfterPropertiesSet(); factory.Start(); - TestSchedulerFactory.Mockery.VerifyAll(); } --- 216,219 ---- *************** *** 131,135 **** { // set expectations - TestSchedulerFactory.Mockery.BackToRecordAll(); TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); --- 222,225 ---- *************** *** 141,145 **** factory.AfterPropertiesSet(); factory.Stop(); - TestSchedulerFactory.Mockery.VerifyAll(); } --- 231,234 ---- *************** *** 148,152 **** { factory.AfterPropertiesSet(); ! IScheduler sched = (IScheduler) factory.GetObject(); Assert.IsNotNull(sched, "scheduler was null"); } --- 237,242 ---- { factory.AfterPropertiesSet(); ! TestSchedulerFactory.Mockery.ReplayAll(); ! IScheduler sched = (IScheduler)factory.GetObject(); Assert.IsNotNull(sched, "scheduler was null"); } *************** *** 156,160 **** public void TestSchedulerFactoryType_InvalidType() { ! factory.SchedulerFactoryType = typeof (SchedulerFactoryObjectTest); } --- 246,251 ---- public void TestSchedulerFactoryType_InvalidType() { ! TestSchedulerFactory.Mockery.ReplayAll(); ! factory.SchedulerFactoryType = typeof(SchedulerFactoryObjectTest); } *************** *** 162,168 **** --- 253,270 ---- public void TestSchedulerFactoryType_ValidType() { + TestSchedulerFactory.Mockery.ReplayAll(); factory.SchedulerFactoryType = typeof(StdSchedulerFactory); } + [TearDown] + public void TearDown() + { + TestSchedulerFactory.Mockery.VerifyAll(); + if (mockery != null) + { + mockery.VerifyAll(); + } + } + } Index: AdaptableJobFactoryTest.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests/Scheduling/Quartz/AdaptableJobFactoryTest.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AdaptableJobFactoryTest.cs 12 Sep 2007 18:39:33 -0000 1.2 --- AdaptableJobFactoryTest.cs 14 Sep 2007 12:56:10 -0000 1.3 *************** *** 24,94 **** using Spring.Scheduling.Quartz; ! namespace Spring { ! /// <summary> ! /// Tests for <see cref="AdaptableJobFactory" />. ! /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] ! public class AdaptableJobFactoryTest ! { ! private AdaptableJobFactory jobFactory; ! [SetUp] ! public void SetUp() ! { ! jobFactory = new AdaptableJobFactory(); ! } ! [Test] ! public void TestNewJob_IncompatibleJob() ! { ! try ! { ! // this actually fails already in Quartz level TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof(object)); ! jobFactory.NewJob(bundle); ! Assert.Fail("Created job which was not an IJob"); ! } ! catch (ArgumentException) ! { ! // ok ! } ! catch (SchedulerException) ! { ! // ok ! } ! catch (Exception) ! { ! Assert.Fail("Got exception that was not instance of SchedulerException or ArgumentException"); ! } ! } ! [Test] ! public void TestNewJob_ThreadStartJob() ! { // TODO ThreadStart is not the way to go ! } ! ! [Test] ! public void TestNewJob_NormalIJob() ! { ! TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof(NoOpJob)); ! IJob job = jobFactory.NewJob(bundle); ! Assert.IsNotNull(job, "Returned job was null"); ! } - } ! internal class NoOpThreadStartJob : NoOpJob ! { ! public void Execute() ! { ! Execute(null); ! } ! } ! } --- 24,93 ---- using Spring.Scheduling.Quartz; ! namespace Spring.Scheduling.Quartz { ! /// <summary> ! /// Tests for <see cref="AdaptableJobFactory" />. ! /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] ! public class AdaptableJobFactoryTest ! { ! private AdaptableJobFactory jobFactory; ! [SetUp] ! public void SetUp() ! { ! jobFactory = new AdaptableJobFactory(); ! } ! [Test] ! public void TestNewJob_IncompatibleJob() ! { ! try ! { ! // this actually fails already in Quartz level TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof(object)); ! jobFactory.NewJob(bundle); ! Assert.Fail("Created job which was not an IJob"); ! } ! catch (ArgumentException) ! { ! // ok ! } ! catch (SchedulerException) ! { ! // ok ! } ! catch (Exception) ! { ! Assert.Fail("Got exception that was not instance of SchedulerException or ArgumentException"); ! } ! } ! [Test] ! public void TestNewJob_ThreadStartJob() ! { // TODO ThreadStart is not the way to go ! } + [Test] + public void TestNewJob_NormalIJob() + { + TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof(NoOpJob)); + IJob job = jobFactory.NewJob(bundle); + Assert.IsNotNull(job, "Returned job was null"); + } ! } ! internal class NoOpThreadStartJob : NoOpJob ! { ! public void Execute() ! { ! Execute(null); ! } ! } ! } \ No newline at end of file Index: JobDetailObjectTest.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests/Scheduling/Quartz/JobDetailObjectTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JobDetailObjectTest.cs 12 Sep 2007 18:39:33 -0000 1.1 --- JobDetailObjectTest.cs 14 Sep 2007 12:56:10 -0000 1.2 *************** *** 89,92 **** --- 89,93 ---- const string objectName = "springJobDetailObject"; jobDetail.ObjectName = objectName; + jobDetail.Group = null; jobDetail.AfterPropertiesSet(); Assert.AreEqual(SchedulerConstants.DEFAULT_GROUP, jobDetail.Group, "Groups differ"); |
From: Marko L. <la...@us...> - 2007-09-14 12:55:45
|
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23009/Spring.Scheduling.Quartz.Example Added Files: App.config ExampleJob.cs Program.cs Spring.Scheduling.Quartz.Example.2003.csproj Spring.Scheduling.Quartz.Example.2005.csproj spring-objects.xml Log Message: Some fixes to tests, added small Quartz Integration example --- NEW FILE: Spring.Scheduling.Quartz.Example.2005.csproj --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Program.cs --- using System; using Spring.Context.Support; namespace Spring.Scheduling.Quartz.Example { class Program { static void Main() { try { XmlApplicationContext ctx = new XmlApplicationContext("spring-objects.xml"); Console.WriteLine("Spring configuration succeeded."); } catch (Exception ex) { Console.WriteLine(ex); } Console.ReadLine(); } } } --- NEW FILE: spring-objects.xml --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Spring.Scheduling.Quartz.Example.2003.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.6030" SchemaVersion = "2.0" ProjectGuid = "{0C0D8C65-90DE-4914-9940-4C684C54971B}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "Spring.Scheduling.Quartz.Example" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Exe" PreBuildEvent = "" PostBuildEvent = "cmd /c copy $(ProjectDir)spring-objects.xml $(OutDir)
cmd /c copy $(ProjectDir)App.config $(OutDir)Spring.Scheduling.Quartz.Example.exe.config" RootNamespace = "Spring" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "Spring.Scheduling.Quartz.Example.xml" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "..\..\..\..\build\VS.NET.2003\Spring.Scheduling.Quartz.Example\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "..\..\..\..\build\VS.NET.2003\Spring.Scheduling.Quartz.Example\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "Spring.Core" AssemblyName = "Spring.Core" HintPath = "..\..\..\..\lib\net\1.1\Spring.Core.dll" /> <Reference Name = "Common.Logging" AssemblyName = "Common.Logging" HintPath = "..\..\..\..\lib\net\1.1\Common.Logging.dll" /> <Reference Name = "Quartz" AssemblyName = "Quartz" HintPath = "..\..\..\..\lib\net\1.1\Quartz.dll" /> <Reference Name = "Nullables" AssemblyName = "Nullables" HintPath = "..\..\..\..\lib\net\1.1\Nullables.dll" /> <Reference Name = "Spring.Scheduling.Quartz.2003" Project = "{0C0D8C65-90DE-4914-9940-4C684C54971B}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> </References> </Build> <Files> <Include> <File RelPath = "App.config" BuildAction = "Content" /> <File RelPath = "ExampleJob.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "Program.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "spring-objects.xml" BuildAction = "Content" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: ExampleJob.cs --- using System; using Quartz; using Spring.Scheduling.Quartz; namespace Spring.Scheduling.Quartz.Example { /// <summary> /// Example job. /// </summary> public class ExampleJob : QuartzJobObject { private int timeout; /// <summary> /// Simple property that can be injected. /// </summary> public int Timeout { set { timeout = value; } } /// <summary> /// Execute. /// </summary> /// <param name="context"></param> protected override void ExecuteInternal(JobExecutionContext context) { Console.WriteLine("{0}: ExecuteInternal called, timeout: {1}", DateTime.Now, timeout); } /// <summary> /// Custom job execution method. /// </summary> public void DoIt() { Console.WriteLine("{0}: DoIt called, timeout: {1}", DateTime.Now, timeout); } } } --- NEW FILE: App.config --- <?xml version="1.0"?> <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Common.Logging" publicKeyToken="AF08829B84F0328E" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.1.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration> |
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/examples/Spring/Spring.Scheduling.Quartz.Example In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23009 Modified Files: Spring.Scheduling.Quartz.Example.2003.sln Spring.Scheduling.Quartz.Example.2005.sln Log Message: Some fixes to tests, added small Quartz Integration example Index: Spring.Scheduling.Quartz.Example.2003.sln =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example.2003.sln,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Spring.Scheduling.Quartz.Example.2003.sln 10 Sep 2007 21:33:04 -0000 1.1 --- Spring.Scheduling.Quartz.Example.2003.sln 14 Sep 2007 12:55:41 -0000 1.2 *************** *** 4,7 **** --- 4,11 ---- EndProjectSection EndProject + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Scheduling.Quartz.Example.2003", "Spring.Scheduling.Quartz.Example\Spring.Scheduling.Quartz.Example.2003.csproj", "{0C0D8C65-90DE-4914-9940-4C684C54971B}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + EndProject Global GlobalSection(SolutionConfiguration) = preSolution *************** *** 9,12 **** --- 13,18 ---- Release = Release EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {0C0D8C65-90DE-4914-9940-4C684C54971B}.Debug.ActiveCfg = Debug|.NET *************** *** 14,17 **** --- 20,27 ---- {0C0D8C65-90DE-4914-9940-4C684C54971B}.Release.ActiveCfg = Release|.NET {0C0D8C65-90DE-4914-9940-4C684C54971B}.Release.Build.0 = Release|.NET + {0C0D8C65-90DE-4914-9940-4C684C54971B}.Debug.ActiveCfg = Debug|.NET + {0C0D8C65-90DE-4914-9940-4C684C54971B}.Debug.Build.0 = Debug|.NET + {0C0D8C65-90DE-4914-9940-4C684C54971B}.Release.ActiveCfg = Release|.NET + {0C0D8C65-90DE-4914-9940-4C684C54971B}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution Index: Spring.Scheduling.Quartz.Example.2005.sln =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example.2005.sln,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Spring.Scheduling.Quartz.Example.2005.sln 10 Sep 2007 21:33:04 -0000 1.1 --- Spring.Scheduling.Quartz.Example.2005.sln 14 Sep 2007 12:55:41 -0000 1.2 *************** *** 3,6 **** --- 3,16 ---- # Visual Studio 2005 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Scheduling.Quartz.2005", "..\..\..\src\Spring\Spring.Scheduling.Quartz\Spring.Scheduling.Quartz.2005.csproj", "{E823D54C-CE82-4868-929F-5F95A999F61E}" + ProjectSection(WebsiteProperties) = preProject + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.Debug = "False" + EndProjectSection + EndProject + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Scheduling.Quartz.Example.2005", "Spring.Scheduling.Quartz.Example\Spring.Scheduling.Quartz.Example.2005.csproj", "{0C0D8C65-90DE-4914-9940-4C684C54971B}" + ProjectSection(WebsiteProperties) = preProject + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.Debug = "False" + EndProjectSection EndProject Global *************** *** 14,17 **** --- 24,31 ---- {E823D54C-CE82-4868-929F-5F95A999F61E}.Release|Any CPU.ActiveCfg = Release|Any CPU {E823D54C-CE82-4868-929F-5F95A999F61E}.Release|Any CPU.Build.0 = Release|Any CPU + {0C0D8C65-90DE-4914-9940-4C684C54971B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0C0D8C65-90DE-4914-9940-4C684C54971B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0C0D8C65-90DE-4914-9940-4C684C54971B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0C0D8C65-90DE-4914-9940-4C684C54971B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution |
From: Marko L. <la...@us...> - 2007-09-14 12:54:16
|
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv22570/Spring.Scheduling.Quartz.Example Log Message: Directory /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example added to the repository |
From: Marko L. <la...@us...> - 2007-09-12 18:40:55
|
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19671/Scheduling/Quartz Modified Files: CronTriggerObject.cs JobDetailObject.cs MethodInvokingJob.cs MethodInvokingJobDetailFactoryObject.cs SchedulerFactoryObject.cs SimpleTriggerObject.cs SpringObjectJobFactory.cs Log Message: Documentation fixes, updates to properly override JobDetail properties Index: JobDetailObject.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/JobDetailObject.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JobDetailObject.cs 10 Sep 2007 21:34:10 -0000 1.1 --- JobDetailObject.cs 12 Sep 2007 18:40:46 -0000 1.2 *************** *** 37,41 **** public class JobDetailObject : JobDetail, IObjectNameAware, IApplicationContextAware, IInitializingObject { ! private Type actualJobClass; private string objectName; private IApplicationContext applicationContext; --- 37,41 ---- public class JobDetailObject : JobDetail, IObjectNameAware, IApplicationContextAware, IInitializingObject { ! private Type actualJobType; private string objectName; private IApplicationContext applicationContext; *************** *** 47,53 **** /// </summary> /// <seealso cref="SchedulerFactoryObject.JobFactory" /> ! public virtual Type JobClass { ! get { return (actualJobClass != null ? actualJobClass : JobType); } set --- 47,53 ---- /// </summary> /// <seealso cref="SchedulerFactoryObject.JobFactory" /> ! public override Type JobType { ! get { return (actualJobType != null ? actualJobType : base.JobType); } set *************** *** 55,64 **** if (value != null && !typeof (IJob).IsAssignableFrom(value)) { ! JobType = typeof (DelegatingJob); ! actualJobClass = value; } else { ! JobType = value; } } --- 55,64 ---- if (value != null && !typeof (IJob).IsAssignableFrom(value)) { ! base.JobType = typeof (DelegatingJob); ! actualJobType = value; } else { ! base.JobType = value; } } *************** *** 80,104 **** public virtual IDictionary JobDataAsMap { - set { JobDataMap.PutAll(value); } - } - - /// <summary> - /// Set a list of JobListener names for this job, referring to - /// non-global JobListeners registered with the Scheduler. - /// </summary> - /// <remarks> - /// A JobListener name always refers to the name returned - /// by the JobListener implementation. - /// </remarks> - /// <seealso cref="SchedulerFactoryObject.JobListeners" /> - /// <seealso cref="IJobListener.Name" /> - public virtual string[] JobListenerNamesAsSetProperty - { set { ! for (int i = 0; i < value.Length; i++) ! { ! AddJobListener(value[i]); ! } } } --- 80,90 ---- public virtual IDictionary JobDataAsMap { set { ! if (value == null) ! { ! throw new ArgumentException("Value cannot be null", "value"); ! } ! JobDataMap.PutAll(value); } } *************** *** 221,225 **** if (applicationContext == null) { ! throw new SystemException("JobDetailObject needs to be set up in an IApplicationContext " + "to be able to handle an 'applicationContextJobDataKey'"); } --- 207,211 ---- if (applicationContext == null) { ! throw new ArgumentException("JobDetailObject needs to be set up in an IApplicationContext " + "to be able to handle an 'applicationContextJobDataKey'"); } Index: CronTriggerObject.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/CronTriggerObject.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CronTriggerObject.cs 11 Sep 2007 09:33:50 -0000 1.2 --- CronTriggerObject.cs 12 Sep 2007 18:40:46 -0000 1.3 *************** *** 55,59 **** private JobDetail jobDetail; private string objectName; ! private readonly Constants constants = new Constants(typeof(CronTrigger)); --- 55,59 ---- private JobDetail jobDetail; private string objectName; ! private readonly Constants constants = new Constants(typeof(MisfirePolicy.CronTrigger), typeof(MisfirePolicy)); *************** *** 178,199 **** internal class Constants { ! private readonly Type type; ! public Constants(Type reflectedType) { ! type = reflectedType; } public int AsNumber(string field) { ! FieldInfo fi = type.GetField(field, BindingFlags.Static); ! if (fi != null) ! { ! return Convert.ToInt32(fi.GetValue(null)); ! } ! else { ! throw new Exception(string.Format("Unknown field '{0}'", field)); } } } --- 178,201 ---- internal class Constants { ! private readonly Type[] types; ! public Constants(params Type[] reflectedTypes) { ! types = reflectedTypes; } public int AsNumber(string field) { ! foreach (Type type in types) { ! FieldInfo fi = type.GetField(field); ! if (fi != null) ! { ! return Convert.ToInt32(fi.GetValue(null)); ! } } + + // not found + throw new Exception(string.Format("Unknown field '{0}'", field)); } } Index: SpringObjectJobFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/SpringObjectJobFactory.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SpringObjectJobFactory.cs 10 Sep 2007 21:34:10 -0000 1.1 --- SpringObjectJobFactory.cs 12 Sep 2007 18:40:46 -0000 1.2 *************** *** 86,90 **** { string propName = ignoredUnknownProperties[i]; ! if (pvs.Contains(propName) && !ow.GetPropertyInfo(propName).CanWrite) { pvs.Remove(propName); --- 86,90 ---- { string propName = ignoredUnknownProperties[i]; ! if (pvs.Contains(propName)) { pvs.Remove(propName); Index: SchedulerFactoryObject.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/SchedulerFactoryObject.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SchedulerFactoryObject.cs 11 Sep 2007 09:33:50 -0000 1.2 --- SchedulerFactoryObject.cs 12 Sep 2007 18:40:46 -0000 1.3 *************** *** 73,76 **** --- 73,77 ---- /// </remarks> /// <author>Juergen Hoeller</author> + /// <author>Marko Lahma (.NET)</author> /// <seealso cref="IScheduler" /> /// <seealso cref="ISchedulerFactory" /> *************** *** 88,92 **** /// Property name for thread count in thread pool. /// </summary> ! public const string PROP_THREAD_COUNT = "org.quartz.threadPool.threadCount"; /// <summary> --- 89,93 ---- /// Property name for thread count in thread pool. /// </summary> ! public const string PROP_THREAD_COUNT = "quartz.threadPool.threadCount"; /// <summary> *************** *** 108,112 **** private bool overwriteExistingJobs = false; private NameValueCollection quartzProperties; ! private IScheduler scheduler; private IDictionary schedulerContextMap; private Type schedulerFactoryType; --- 109,113 ---- private bool overwriteExistingJobs = false; private NameValueCollection quartzProperties; ! private IScheduler scheduler; private IDictionary schedulerContextMap; private Type schedulerFactoryType; *************** *** 148,152 **** if (value == null || !typeof (ISchedulerFactory).IsAssignableFrom(value)) { ! throw new ArgumentException("schedulerFactoryType must implement [org.quartz.SchedulerFactory]"); } schedulerFactoryType = value; --- 149,153 ---- if (value == null || !typeof (ISchedulerFactory).IsAssignableFrom(value)) { ! throw new ArgumentException("schedulerFactoryType must implement [Quartz.ISchedulerFactory]"); } schedulerFactoryType = value; *************** *** 301,305 **** public virtual string JobSchedulingDataLocation { ! set { jobSchedulingDataLocations = new String[] {value}; } } --- 302,306 ---- public virtual string JobSchedulingDataLocation { ! set { jobSchedulingDataLocations = new string[] {value}; } } *************** *** 1044,1069 **** private class AnonymousClassThread : QuartzThread { ! private SchedulerFactoryObject encInstance; public AnonymousClassThread(SchedulerFactoryObject enclosingInstance) { ! InitBlock(enclosingInstance); ! } ! ! public SchedulerFactoryObject Enclosing_Instance ! { ! get { return encInstance; } ! } ! ! private void InitBlock(SchedulerFactoryObject enclosingInstance) ! { ! encInstance = enclosingInstance; } public override void Run() { try { ! Thread.Sleep(new TimeSpan(10000*Enclosing_Instance.startupDelay*1000)); } catch (ThreadInterruptedException) --- 1045,1061 ---- private class AnonymousClassThread : QuartzThread { ! private readonly SchedulerFactoryObject schedulerFactoryObject; public AnonymousClassThread(SchedulerFactoryObject enclosingInstance) { ! schedulerFactoryObject = enclosingInstance; } + public override void Run() { try { ! Thread.Sleep(schedulerFactoryObject.startupDelay*1000); } catch (ThreadInterruptedException) *************** *** 1071,1083 **** // simply proceed } ! if (Enclosing_Instance.logger.IsInfoEnabled) { ! Enclosing_Instance.logger.Info("Starting Quartz Scheduler now, after delay of " + ! Enclosing_Instance.startupDelay + " seconds"); } try { ! Enclosing_Instance.scheduler.Start(); } catch (SchedulerException ex) --- 1063,1075 ---- // simply proceed } ! if (schedulerFactoryObject.logger.IsInfoEnabled) { ! schedulerFactoryObject.logger.Info("Starting Quartz Scheduler now, after delay of " + ! schedulerFactoryObject.startupDelay + " seconds"); } try { ! schedulerFactoryObject.scheduler.Start(); } catch (SchedulerException ex) Index: MethodInvokingJob.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/MethodInvokingJob.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MethodInvokingJob.cs 10 Sep 2007 21:34:10 -0000 1.1 --- MethodInvokingJob.cs 12 Sep 2007 18:40:46 -0000 1.2 *************** *** 43,46 **** --- 43,50 ---- set { + if (value == null) + { + throw new ArgumentException("Method invoker cannot be null", "value"); + } methodInvoker = value; errorMessage = *************** *** 57,60 **** --- 61,68 ---- protected override void ExecuteInternal(JobExecutionContext context) { + if (methodInvoker == null) + { + throw new JobExecutionException("Could not execute job when method invoker is null"); + } try { *************** *** 75,79 **** logger.Warn(errorMessage, ex); throw new JobExecutionException(errorMessage, ex); - } } --- 83,86 ---- Index: MethodInvokingJobDetailFactoryObject.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/MethodInvokingJobDetailFactoryObject.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MethodInvokingJobDetailFactoryObject.cs 11 Sep 2007 09:33:50 -0000 1.2 --- MethodInvokingJobDetailFactoryObject.cs 12 Sep 2007 18:40:46 -0000 1.3 *************** *** 145,149 **** /// </returns> /// <remarks> ! /// <note type="caution"> /// If this method is being called in the context of an enclosing IoC container and /// returns <see langword="null"/>, the IoC container will consider this factory --- 145,149 ---- /// </returns> /// <remarks> ! /// <note type="caution"> /// If this method is being called in the context of an enclosing IoC container and /// returns <see langword="null"/>, the IoC container will consider this factory *************** *** 212,219 **** // Consider the concurrent flag to choose between stateful and stateless job. ! Type jobClass = (concurrent ? typeof (MethodInvokingJob) : typeof (StatefulMethodInvokingJob)); // Build JobDetail instance. ! jobDetail = new JobDetail(jobDetailName, group, jobClass); jobDetail.JobDataMap.Put("methodInvoker", this); jobDetail.Volatile = true; --- 212,219 ---- // Consider the concurrent flag to choose between stateful and stateless job. ! Type jobType = (concurrent ? typeof (MethodInvokingJob) : typeof (StatefulMethodInvokingJob)); // Build JobDetail instance. ! jobDetail = new JobDetail(jobDetailName, group, jobType); jobDetail.JobDataMap.Put("methodInvoker", this); jobDetail.Volatile = true; Index: SimpleTriggerObject.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/SimpleTriggerObject.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SimpleTriggerObject.cs 11 Sep 2007 09:33:50 -0000 1.2 --- SimpleTriggerObject.cs 12 Sep 2007 18:40:46 -0000 1.3 *************** *** 55,59 **** private JobDetail jobDetail; private string objectName; ! private readonly Constants constants = new Constants(typeof(SimpleTrigger)); /// <summary> --- 55,59 ---- private JobDetail jobDetail; private string objectName; ! private readonly Constants constants = new Constants(typeof(MisfirePolicy.SimpleTrigger), typeof(MisfirePolicy)); /// <summary> *************** *** 98,122 **** /// <summary> - /// Set a list of TriggerListener names for this job, referring to - /// non-global TriggerListeners registered with the Scheduler. - /// <p> - /// A TriggerListener name always refers to the name returned - /// by the TriggerListener implementation. - /// </p> - /// </summary> - /// <seealso cref="SchedulerFactoryObject.TriggerListeners" /> - /// <seealso cref="ITriggerListener.Name" /> - public virtual string[] SetTriggerListenerNames - { - set - { - for (int i = 0; i < value.Length; i++) - { - AddTriggerListener(value[i]); - } - } - } - - /// <summary> /// Set the delay before starting the job for the first time. /// The given number of milliseconds will be added to the current --- 98,101 ---- |
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests/Scheduling/Quartz In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19120/Scheduling/Quartz Modified Files: AdaptableJobFactoryTest.cs Added Files: CronTriggerObjectTest.cs JobDetailObjectTest.cs MethodInvokingJobDetailFactoryObjectTest.cs MethodInvokingJobTest.cs SchedulerFactoryObjectTest.cs SimpleTriggerObjectTest.cs SpringObjectJobFactoryTest.cs TestUtil.cs TriggerObjectTest.cs Log Message: Added tests, more to be done --- NEW FILE: SpringObjectJobFactoryTest.cs --- /* * Copyright 2002-2005 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. */ using System.Collections; using NUnit.Framework; using Quartz; using Quartz.Job; using Quartz.Spi; namespace Spring.Scheduling.Quartz { /// <summary> /// /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] public class SpringObjectJobFactoryTest { private SpringObjectJobFactory factory; [SetUp] public void SetUp() { factory = new SpringObjectJobFactory(); } [Test] public void TestCreateJobInstance_SimpleDefaults() { Trigger trigger = new SimpleTrigger(); TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof (NoOpJob), trigger); IJob job = factory.NewJob(bundle); Assert.IsNotNull(job, "Created job was null"); } [Test] public void TestCreateJobInstance_SchedulerContextGiven() { IDictionary items = new Hashtable(); items["foo"] = "bar"; items["number"] = 123; factory.SchedulerContext = new SchedulerContext(items); Trigger trigger = new SimpleTrigger(); TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof(InjectableJob), trigger); InjectableJob job = (InjectableJob) factory.NewJob(bundle); Assert.IsNotNull(job, "Created job was null"); Assert.AreEqual("bar", job.Foo, "string injection failed"); Assert.AreEqual(123, job.Number, "integer injection failed"); } [Test] public void TestCreateJobInstance_IgnoredProperties() { factory.IgnoredUnknownProperties = new string[] {"foo", "baz"}; Trigger trigger = new SimpleTrigger(); trigger.JobDataMap["foo"] = "should not be injected"; trigger.JobDataMap["number"] = 123; TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof(InjectableJob), trigger); InjectableJob job = (InjectableJob)factory.NewJob(bundle); Assert.IsNotNull(job, "Created job was null"); Assert.AreEqual(123, job.Number, "integer injection failed"); Assert.IsNull(job.Foo, "foo was injected when it was not supposed to "); } } public class InjectableJob : NoOpJob { private int number; private string foo; public int Number { get { return number; } set { number = value; } } public string Foo { get { return foo; } set { foo = value; } } } } --- NEW FILE: TestUtil.cs --- /* * Copyright 2002-2005 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. */ using System; using Quartz; using Quartz.Spi; namespace Spring.Scheduling.Quartz { /// <summary> /// Quartz.NET integration testing helpers. /// </summary> /// <author>Marko Lahma (.NET)</author> public class TestUtil { /// <summary> /// Creates the minimal fired bundle with job detail that has /// given job type. /// </summary> /// <param name="jobType">Type of the job.</param> /// <returns>Minimal TriggerFiredBundle</returns> public static TriggerFiredBundle CreateMinimalFiredBundleWithTypedJobDetail(Type jobType) { return CreateMinimalFiredBundleWithTypedJobDetail(jobType, null); } /// <summary> /// Creates the minimal fired bundle with job detail that has /// given job type. /// </summary> /// <param name="jobType">Type of the job.</param> /// <param name="trigger">The trigger.</param> /// <returns>Minimal TriggerFiredBundle</returns> public static TriggerFiredBundle CreateMinimalFiredBundleWithTypedJobDetail(Type jobType, Trigger trigger) { JobDetail jd = new JobDetail("jobName", "jobGroup", jobType); TriggerFiredBundle bundle = new TriggerFiredBundle(jd, trigger, null, false, null, null, null, null); return bundle; } } } --- NEW FILE: MethodInvokingJobTest.cs --- /* * Copyright 2002-2005 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. */ using System; using System.Threading; using NUnit.Framework; using Quartz; using Quartz.Job; using Quartz.Spi; using Rhino.Mocks; using Spring.Objects.Support; namespace Spring.Scheduling.Quartz { /// <summary> /// /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] public class MethodInvokingJobTest { private MethodInvokingJob methodInvokingJob; [SetUp] public void SetUp() { methodInvokingJob = new MethodInvokingJob(); } [Test] [ExpectedException(ExceptionType = typeof(ArgumentException))] public void TestMethodInvoker_SetWithNull() { methodInvokingJob.MethodInvoker = null; } [Test] [ExpectedException(ExceptionType = typeof(JobExecutionException))] public void TestMethodInvocation_NullMethodInvokder() { methodInvokingJob.Execute(CreateMinimalJobExecutionContext()); } [Test] public void TestMethodInvoker_MethodSetCorrectly() { InvocationCountingJob job = new InvocationCountingJob(); MethodInvoker mi = new MethodInvoker(); mi.TargetObject = job; mi.TargetMethod = "Invoke"; mi.Prepare(); methodInvokingJob.MethodInvoker = mi; methodInvokingJob.Execute(CreateMinimalJobExecutionContext()); Assert.AreEqual(1, job.CounterValue, "Job was not invoked once"); } [Test] public void TestMethodInvoker_MethodSetCorrectlyThrowsException() { InvocationCountingJob job = new InvocationCountingJob(); MethodInvoker mi = new MethodInvoker(); mi.TargetObject = job; mi.TargetMethod = "InvokeAndThrowException"; mi.Prepare(); methodInvokingJob.MethodInvoker = mi; try { methodInvokingJob.Execute(CreateMinimalJobExecutionContext()); Assert.Fail("Successful invoke when method threw exception"); } catch (JobExecutionException) { // ok } Assert.AreEqual(1, job.CounterValue, "Job was not invoked once"); } private static JobExecutionContext CreateMinimalJobExecutionContext() { MockRepository repo = new MockRepository(); IScheduler sched = (IScheduler) repo.DynamicMock(typeof (IScheduler)); JobExecutionContext ctx = new JobExecutionContext(sched, ConstructMinimalTriggerFiredBundle(), null); return ctx; } private static TriggerFiredBundle ConstructMinimalTriggerFiredBundle() { JobDetail jd = new JobDetail("jobName", "jobGroup", typeof(NoOpJob)); SimpleTrigger trigger = new SimpleTrigger("triggerName", "triggerGroup"); TriggerFiredBundle retValue = new TriggerFiredBundle(jd, trigger, null, false, null, null, null, null); return retValue; } } /// <summary> /// Test class for method invoker. /// </summary> public class InvocationCountingJob { private int counter; public void Invoke() { Interlocked.Increment(ref counter); } public void InvokeAndThrowException() { Interlocked.Increment(ref counter); throw new Exception(); } public int CounterValue { get { return counter; } } } } --- NEW FILE: CronTriggerObjectTest.cs --- /* * Copyright 2002-2005 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. */ using System; using NUnit.Framework; using Quartz; using Quartz.Job; namespace Spring.Scheduling.Quartz { /// <summary> /// Tests for <see cref="CronTriggerObject" />. /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] public class CronTriggerObjectTest : TriggerObjectTest { private CronTriggerObject cronTrigger; [SetUp] public void SetUp() { cronTrigger = new CronTriggerObject(); cronTrigger.ObjectName = TRIGGER_NAME; Trigger = cronTrigger; } /// <summary> /// Tests all possible misfire instructions for cron trigger /// from strings to int. /// </summary> [Test] public void TestMisfireInstructionNames() { string[] names = new string[] { "DoNothing", "FireOnceNow", "SmartPolicy" }; foreach (string name in names) { cronTrigger.MisfireInstructionName = name; } } [Test] public override void TestAfterPropertiesSet_Defaults() { cronTrigger.AfterPropertiesSet(); base.TestAfterPropertiesSet_Defaults(); AssertDateTimesEqualityWithAllowedDelta(DateTime.UtcNow, cronTrigger.StartTimeUtc, 1000); Assert.AreEqual(TimeZone.CurrentTimeZone, cronTrigger.TimeZone, "trigger time zone mismatch"); } [Test] public override void TestAfterPropertiesSet_ValuesGiven() { TimeZone TZ = TimeZone.CurrentTimeZone; cronTrigger.TimeZone = TZ; cronTrigger.AfterPropertiesSet(); base.TestAfterPropertiesSet_ValuesGiven(); Assert.AreSame(TZ, cronTrigger.TimeZone, "trigger time zone mismatch"); } [Test] public override void TestAfterPropertiesSet_JobDetailGiven() { const string jobName = "jobName"; const string jobGroup = "jobGroup"; JobDetail jd = new JobDetail(jobName, jobGroup, typeof (NoOpJob)); cronTrigger.JobDetail = jd; cronTrigger.AfterPropertiesSet(); base.TestAfterPropertiesSet_JobDetailGiven(); Assert.AreSame(jd, cronTrigger.JobDetail, "job details weren't same"); } } } --- NEW FILE: SchedulerFactoryObjectTest.cs --- /* * Copyright 2002-2005 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. */ using System; using System.Collections; using System.Threading; using NUnit.Framework; using Quartz; using Quartz.Impl; using Rhino.Mocks; namespace Spring.Scheduling.Quartz { /// <summary> /// /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] public class SchedulerFactoryObjectTest { private SchedulerFactoryObject factory; [SetUp] public void SetUp() { factory = new SchedulerFactoryObject(); } [Test] public void TestAfterPropertiesSet_Defaults() { factory.AfterPropertiesSet(); } [Test] public void TestAfterPropertiesSet_NullJobFactory() { factory.JobFactory = null; factory.AfterPropertiesSet(); } [Test] public void TestAfterPropertiesSet_NoAutoStartup() { // set expectations TestSchedulerFactory.Mockery.BackToRecordAll(); TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); TestSchedulerFactory.Mockery.ReplayAll(); factory.SchedulerFactoryType = typeof(TestSchedulerFactory); factory.AutoStartup = false; factory.AfterPropertiesSet(); TestSchedulerFactory.Mockery.VerifyAll(); } [Test] public void TestAfterPropertiesSet_AutoStartup() { TestSchedulerFactory.Mockery.BackToRecordAll(); // set expectations TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); TestSchedulerFactory.MockScheduler.Start(); TestSchedulerFactory.Mockery.ReplayAll(); factory.SchedulerFactoryType = typeof (TestSchedulerFactory); factory.AutoStartup = true; factory.AfterPropertiesSet(); TestSchedulerFactory.Mockery.VerifyAll(); } [Test] public void TestAfterPropertiesSet_AutoStartup_WithDelay() { // set expectations TestSchedulerFactory.Mockery.BackToRecordAll(); TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); Expect.Call(TestSchedulerFactory.MockScheduler.SchedulerName).Return("schedName"); TestSchedulerFactory.MockScheduler.Start(); TestSchedulerFactory.Mockery.ReplayAll(); factory.SchedulerFactoryType = typeof(TestSchedulerFactory); factory.AutoStartup = true; factory.StartupDelay = 5; factory.AfterPropertiesSet(); Thread.Sleep(TimeSpan.FromSeconds(6)); TestSchedulerFactory.Mockery.VerifyAll(); } [Test] public void TestStart() { // set expectations TestSchedulerFactory.Mockery.BackToRecordAll(); TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); TestSchedulerFactory.MockScheduler.Start(); TestSchedulerFactory.Mockery.ReplayAll(); factory.SchedulerFactoryType = typeof(TestSchedulerFactory); factory.AutoStartup = false; factory.AfterPropertiesSet(); factory.Start(); TestSchedulerFactory.Mockery.VerifyAll(); } [Test] public void TestStop() { // set expectations TestSchedulerFactory.Mockery.BackToRecordAll(); TestSchedulerFactory.MockScheduler.JobFactory = null; LastCall.IgnoreArguments(); TestSchedulerFactory.MockScheduler.Standby(); TestSchedulerFactory.Mockery.ReplayAll(); factory.SchedulerFactoryType = typeof(TestSchedulerFactory); factory.AutoStartup = false; factory.AfterPropertiesSet(); factory.Stop(); TestSchedulerFactory.Mockery.VerifyAll(); } [Test] public void TestGetObject() { factory.AfterPropertiesSet(); IScheduler sched = (IScheduler) factory.GetObject(); Assert.IsNotNull(sched, "scheduler was null"); } [Test] [ExpectedException(ExceptionType = typeof(ArgumentException))] public void TestSchedulerFactoryType_InvalidType() { factory.SchedulerFactoryType = typeof (SchedulerFactoryObjectTest); } [Test] public void TestSchedulerFactoryType_ValidType() { factory.SchedulerFactoryType = typeof(StdSchedulerFactory); } } public class TestSchedulerFactory : ISchedulerFactory { private static readonly MockRepository mockery = new MockRepository(); private static readonly IScheduler mockScheduler; static TestSchedulerFactory() { mockScheduler = (IScheduler) mockery.CreateMock(typeof (IScheduler)); } public static MockRepository Mockery { get { return mockery; } } public static IScheduler MockScheduler { get { return mockScheduler; } } public IScheduler GetScheduler() { return mockScheduler; } public IScheduler GetScheduler(string schedName) { return mockScheduler; } public ICollection AllSchedulers { get { return new ArrayList(); } } } } --- NEW FILE: TriggerObjectTest.cs --- /* * Copyright 2002-2005 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. */ using System; using NUnit.Framework; using Quartz; namespace Spring.Scheduling.Quartz { /// <summary> /// Base class for testing triggers. Contains common functionality. /// </summary> [TestFixture] public abstract class TriggerObjectTest { private Trigger trigger; protected const string TRIGGER_NAME = "trigger"; protected Trigger Trigger { set { trigger = value; } } [Test] public virtual void TestAfterPropertiesSet_Defaults() { Assert.AreEqual(TRIGGER_NAME, trigger.Name, "trigger name mismatch"); Assert.AreEqual(SchedulerConstants.DEFAULT_GROUP, trigger.Group, "trigger group name mismatch"); AssertDateTimesEqualityWithAllowedDelta(DateTime.UtcNow, trigger.StartTimeUtc, 1000); Assert.IsNull(trigger.JobName, "trigger job name not null"); Assert.AreEqual(SchedulerConstants.DEFAULT_GROUP, trigger.JobGroup, "trigger job group was not default"); } [Test] public virtual void TestAfterPropertiesSet_ValuesGiven() { const string NAME = "newName"; const string GROUP = "newGroup"; DateTime START_TIME = new DateTime(10000000); trigger.Name = NAME; trigger.Group = GROUP; trigger.StartTimeUtc = START_TIME; Assert.AreEqual(NAME, trigger.Name, "trigger name mismatch"); Assert.AreEqual(GROUP, trigger.Group, "trigger group name mismatch"); AssertDateTimesEqualityWithAllowedDelta(START_TIME, trigger.StartTimeUtc, 1000); } [Test] public virtual void TestAfterPropertiesSet_JobDetailGiven() { const string jobName = "jobName"; const string jobGroup = "jobGroup"; Assert.AreEqual(jobName, trigger.JobName, "trigger job name was not from job detail"); Assert.AreEqual(jobGroup, trigger.JobGroup, "trigger job group was not from job detail"); } [Test] public virtual void TestTriggerListenerNames_Valis() { string[] LISTENER_NAMES = new string[] {"Foo", "Bar", "Baz"}; trigger.TriggerListenerNames = LISTENER_NAMES; CollectionAssert.AreEqual(LISTENER_NAMES, trigger.TriggerListenerNames, "Trigger listeners were not equal"); } protected static void AssertDateTimesEqualityWithAllowedDelta(DateTime d1, DateTime d2, int allowedDeltaInMilliseconds) { int diffInMillis = (int) Math.Abs((d1 - d2).TotalMilliseconds); Assert.LessOrEqual(diffInMillis, allowedDeltaInMilliseconds, "too much difference in times"); } } } --- NEW FILE: MethodInvokingJobDetailFactoryObjectTest.cs --- /* * Copyright 2002-2005 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. */ using NUnit.Framework; using Quartz; namespace Spring.Scheduling.Quartz { /// <summary> /// /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] public class MethodInvokingJobDetailFactoryObjectTest { private const string FACTORY_NAME = "springObjectFactory"; private MethodInvokingJobDetailFactoryObject factory; [SetUp] public void SetUp() { factory = new MethodInvokingJobDetailFactoryObject(); factory.ObjectName = FACTORY_NAME; factory.TargetMethod = "Invoke"; factory.TargetObject = new InvocationCountingJob(); } [Test] public void TestGetObject_MinimalDefaults() { factory.AfterPropertiesSet(); JobDetail jd = (JobDetail) factory.GetObject(); Assert.IsNotNull(jd, "job detail was null"); Assert.AreEqual(FACTORY_NAME, jd.Name, "job name did not default to factory name"); Assert.AreEqual(jd.JobType, typeof(MethodInvokingJob), "factory did not create method invoking job"); Assert.IsTrue(jd.Durable, "job was not durable"); Assert.IsTrue(jd.Volatile, "job was not volatile"); } [Test] public void TestGetObject_ConcurrentJob() { factory.Concurrent = false; factory.AfterPropertiesSet(); JobDetail jd = (JobDetail)factory.GetObject(); Assert.IsNotNull(jd, "job detail was null"); Assert.AreEqual(jd.JobType, typeof(StatefulMethodInvokingJob), "factory did not create stateful method invoking job"); } [Test] public void TestGetObject_TriggerListenersSet() { string[] LISTENER_NAMES = new string[] {"Foo", "Bar"}; factory.JobListenerNames = LISTENER_NAMES; factory.AfterPropertiesSet(); JobDetail jd = (JobDetail)factory.GetObject(); CollectionAssert.AreEquivalent(LISTENER_NAMES, jd.JobListenerNames); } } } --- NEW FILE: SimpleTriggerObjectTest.cs --- /* * Copyright 2002-2005 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. */ using System; using NUnit.Framework; using Quartz; using Quartz.Job; namespace Spring.Scheduling.Quartz { /// <summary> /// Tests for <see cref="SimpleTriggerObject" />. /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] public class SimpleTriggerObjectTest : TriggerObjectTest { private SimpleTriggerObject simpleTrigger; [SetUp] public void SetUp() { simpleTrigger = new SimpleTriggerObject(); simpleTrigger.ObjectName = TRIGGER_NAME; Trigger = simpleTrigger; } /// <summary> /// Tests all possible misfire instructions for cron trigger /// from strings to int. /// </summary> [Test] public void TestMisfireInstructionNames() { string[] names = new string[] { "FireNow", "RescheduleNextWithExistingCount", "RescheduleNextWithRemainingCount", "RescheduleNowWithExistingRepeatCount", "RescheduleNowWithRemainingRepeatCount", "SmartPolicy" }; foreach (string name in names) { simpleTrigger.MisfireInstructionName = name; } } [Test] public override void TestAfterPropertiesSet_Defaults() { simpleTrigger.AfterPropertiesSet(); base.TestAfterPropertiesSet_Defaults(); } [Test] public override void TestAfterPropertiesSet_ValuesGiven() { simpleTrigger.StartDelay = 100; simpleTrigger.AfterPropertiesSet(); base.TestAfterPropertiesSet_ValuesGiven(); } [Test] public void TestAfterPropertiesSet_StartDelayGiven() { const int START_DELAY = 100000; simpleTrigger.StartDelay = START_DELAY; DateTime startTime = DateTime.UtcNow; simpleTrigger.AfterPropertiesSet(); AssertDateTimesEqualityWithAllowedDelta(startTime.AddMilliseconds(START_DELAY), simpleTrigger.StartTimeUtc, 1000); } [Test] public override void TestAfterPropertiesSet_JobDetailGiven() { const string jobName = "jobName"; const string jobGroup = "jobGroup"; JobDetail jd = new JobDetail(jobName, jobGroup, typeof(NoOpJob)); simpleTrigger.JobDetail = jd; simpleTrigger.AfterPropertiesSet(); base.TestAfterPropertiesSet_JobDetailGiven(); Assert.AreSame(jd, simpleTrigger.JobDetail, "job details weren't same"); } } } Index: AdaptableJobFactoryTest.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests/Scheduling/Quartz/AdaptableJobFactoryTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AdaptableJobFactoryTest.cs 11 Sep 2007 09:47:52 -0000 1.1 --- AdaptableJobFactoryTest.cs 12 Sep 2007 18:39:33 -0000 1.2 *************** *** 29,33 **** /// Tests for <see cref="AdaptableJobFactory" />. /// </summary> ! [TestFixture] public class AdaptableJobFactoryTest { --- 29,34 ---- /// Tests for <see cref="AdaptableJobFactory" />. /// </summary> ! /// <author>Marko Lahma (.NET)</author> ! [TestFixture] public class AdaptableJobFactoryTest { *************** *** 46,50 **** { // this actually fails already in Quartz level ! TriggerFiredBundle bundle = CreateMinimalFiredBundleWithTypedJobDetail(typeof(object)); jobFactory.NewJob(bundle); Assert.Fail("Created job which was not an IJob"); --- 47,51 ---- { // this actually fails already in Quartz level ! TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof(object)); jobFactory.NewJob(bundle); Assert.Fail("Created job which was not an IJob"); *************** *** 73,77 **** public void TestNewJob_NormalIJob() { ! TriggerFiredBundle bundle = CreateMinimalFiredBundleWithTypedJobDetail(typeof(NoOpJob)); IJob job = jobFactory.NewJob(bundle); Assert.IsNotNull(job, "Returned job was null"); --- 74,78 ---- public void TestNewJob_NormalIJob() { ! TriggerFiredBundle bundle = TestUtil.CreateMinimalFiredBundleWithTypedJobDetail(typeof(NoOpJob)); IJob job = jobFactory.NewJob(bundle); Assert.IsNotNull(job, "Returned job was null"); *************** *** 79,94 **** ! /// <summary> ! /// Creates the minimal fired bundle with job detail that has ! /// given job type. ! /// </summary> ! /// <param name="jobType">Type of the job.</param> ! /// <returns>Minimal TriggerFiredBundle</returns> ! private static TriggerFiredBundle CreateMinimalFiredBundleWithTypedJobDetail(Type jobType) ! { ! JobDetail jd = new JobDetail("jobName", "jobGroup", jobType); ! TriggerFiredBundle bundle = new TriggerFiredBundle(jd, null, null, false, null, null, null, null); ! return bundle; ! } } --- 80,84 ---- ! } --- NEW FILE: JobDetailObjectTest.cs --- /* * Copyright 2002-2005 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. */ using System; using System.Collections; using NUnit.Framework; using Quartz; using Quartz.Job; using Spring.Context.Support; namespace Spring.Scheduling.Quartz { /// <summary> /// Tests for <see cref="JobDetailObject" />. /// </summary> /// <author>Marko Lahma (.NET)</author> [TestFixture] public class JobDetailObjectTest { private JobDetailObject jobDetail; [SetUp] public void SetUp() { jobDetail = new JobDetailObject(); } [Test] [ExpectedException(ExceptionType = typeof(ArgumentException))] public void TestJobType_Null() { jobDetail.JobType = null; } [Test] public void TestJobType_NonIJob() { jobDetail.JobType = typeof(object); Assert.AreEqual(typeof(object), jobDetail.JobType, "JobDetail did not create same type as expected"); } [Test] public void TestJobType_IJob() { Type CORRECT_IJOB = typeof (NoOpJob); jobDetail.JobType = CORRECT_IJOB; Assert.AreEqual(jobDetail.JobType, CORRECT_IJOB, "JobDetail did not register correct job type"); } [Test] [ExpectedException(ExceptionType = typeof(ArgumentException))] public void TestJobDataAsMap_Null() { jobDetail.JobDataAsMap = null; } [Test] public void TestJobDataAsMap_ProperValues() { IDictionary values = new Hashtable(); values["baz"] = "foo"; values["foo"] = 123; values["bar"] = null; jobDetail.JobDataAsMap = values; Assert.AreEqual(values.Count, jobDetail.JobDataMap.Count, "Data of inequal size"); CollectionAssert.AreEqual(values.Keys, jobDetail.JobDataMap.Keys, "JobDataMap values not equal"); } [Test] public void TestAfterPropertiesSet_Defaults() { const string objectName = "springJobDetailObject"; jobDetail.ObjectName = objectName; jobDetail.AfterPropertiesSet(); Assert.AreEqual(SchedulerConstants.DEFAULT_GROUP, jobDetail.Group, "Groups differ"); Assert.AreEqual(objectName, jobDetail.Name, "Names differ"); } [Test] public void TestAfterPropertiesSet_CustomNameAndGroup() { const string objectName = "springJobDetailObject"; const string jobDetailName = "jobDetailName"; const string jobDetailGroup = "jobDetailGroup"; jobDetail.ObjectName = objectName; jobDetail.Name = jobDetailName; jobDetail.Group = jobDetailGroup; jobDetail.AfterPropertiesSet(); Assert.AreEqual(jobDetailGroup, jobDetail.Group, "Groups differ"); Assert.AreEqual(jobDetailName, jobDetail.Name, "Names differ"); } [Test] public void TestAfterPropertiesSet_ApplicationContextJobDataKeySetWithApplicationContext() { const string objectName = "springJobDetailObject"; jobDetail.ObjectName = objectName; jobDetail.ApplicationContext = new XmlApplicationContext(); jobDetail.ApplicationContextJobDataKey = "applicationContextJobDataKey"; jobDetail.AfterPropertiesSet(); } [Test] [ExpectedException(ExceptionType = typeof(ArgumentException))] public void TestAfterPropertiesSet_ApplicationContextJobDataKeySetWithoutApplicationContext() { const string objectName = "springJobDetailObject"; jobDetail.ObjectName = objectName; jobDetail.ApplicationContextJobDataKey = "applicationContextJobDataKey"; jobDetail.AfterPropertiesSet(); } } } |
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19120 Modified Files: Spring.Scheduling.Quartz.Tests.2003.csproj Spring.Scheduling.Quartz.Tests.2005.csproj Log Message: Added tests, more to be done Index: Spring.Scheduling.Quartz.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests/Spring.Scheduling.Quartz.Tests.2005.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Spring.Scheduling.Quartz.Tests.2005.csproj 11 Sep 2007 09:34:02 -0000 1.2 --- Spring.Scheduling.Quartz.Tests.2005.csproj 12 Sep 2007 18:39:34 -0000 1.3 *************** *** 37,41 **** --- 37,51 ---- <HintPath>..\..\..\lib\net\2.0\Quartz.dll</HintPath> </Reference> + <Reference Include="Rhino.Mocks, Version=2.9.6.40350, Culture=neutral, PublicKeyToken=0b3305902db7183f"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\lib\net\1.1\Rhino.Mocks.dll</HintPath> + </Reference> + <Reference Include="Spring.Core, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\lib\net\2.0\Spring.Core.dll</HintPath> + </Reference> <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> *************** *** 47,50 **** --- 57,69 ---- <ItemGroup> <Compile Include="Scheduling\Quartz\AdaptableJobFactoryTest.cs" /> + <Compile Include="Scheduling\Quartz\SchedulerFactoryObjectTest.cs" /> + <Compile Include="Scheduling\Quartz\SpringObjectJobFactoryTest.cs" /> + <Compile Include="Scheduling\Quartz\TestUtil.cs" /> + <Compile Include="Scheduling\Quartz\TriggerObjectTest.cs" /> + <Compile Include="Scheduling\Quartz\SimpleTriggerObjectTest.cs" /> + <Compile Include="Scheduling\Quartz\CronTriggerObjectTest.cs" /> + <Compile Include="Scheduling\Quartz\JobDetailObjectTest.cs" /> + <Compile Include="Scheduling\Quartz\MethodInvokingJobDetailFactoryObjectTest.cs" /> + <Compile Include="Scheduling\Quartz\MethodInvokingJobTest.cs" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> Index: Spring.Scheduling.Quartz.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/test/Spring/Spring.Scheduling.Quartz.Tests/Spring.Scheduling.Quartz.Tests.2003.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Spring.Scheduling.Quartz.Tests.2003.csproj 11 Sep 2007 09:34:02 -0000 1.2 --- Spring.Scheduling.Quartz.Tests.2003.csproj 12 Sep 2007 18:39:34 -0000 1.3 *************** *** 105,108 **** --- 105,113 ---- HintPath = "..\..\..\lib\net\1.1\Nullables.dll" /> + <Reference + Name = "Rhino.Mocks" + AssemblyName = "Rhino.Mocks" + HintPath = "..\..\..\lib\net\1.1\Rhino.Mocks.dll" + /> </References> </Build> *************** *** 114,117 **** --- 119,167 ---- BuildAction = "Compile" /> + <File + RelPath = "Scheduling\Quartz\CronTriggerObjectTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Scheduling\Quartz\JobDetailObjectTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Scheduling\Quartz\MethodInvokingJobDetailFactoryObjectTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Scheduling\Quartz\MethodInvokingJobTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Scheduling\Quartz\SchedulerFactoryObjectTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Scheduling\Quartz\SimpleTriggerObjectTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Scheduling\Quartz\SpringObjectJobFactoryTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Scheduling\Quartz\TestUtil.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Scheduling\Quartz\TriggerObjectTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> </Include> </Files> |
From: Marko L. <la...@us...> - 2007-09-12 18:39:01
|
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/2.0 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19063/2.0 Modified Files: Quartz.dll Quartz.xml Log Message: Updated to version with virtualized JobDetail Index: Quartz.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/2.0/Quartz.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Quartz.xml 11 Sep 2007 09:33:25 -0000 1.2 --- Quartz.xml 12 Sep 2007 18:38:56 -0000 1.3 *************** *** 14212,14218 **** the default settings of all the other properties. <p> ! Note that the {@link #setName(String)},{@link #setGroup(String)}and ! {@link #setJobClass(Class)}methods must be called before the job can be ! placed into a {@link Scheduler} </p> </summary> --- 14212,14218 ---- the default settings of all the other properties. <p> ! Note that the <see cref="P:Quartz.JobDetail.Name"/>,<see cref="P:Quartz.JobDetail.Group"/> and ! <see cref="P:Quartz.JobDetail.JobType"/> properties must be set before the job can be ! placed into a <see cref="T:Quartz.IScheduler"/>. </p> </summary> *************** *** 14256,14267 **** </member> <member name="M:Quartz.JobDetail.RemoveJobListener(System.String)"> ! <summary> <p> Remove the specified name of a <see cref="T:Quartz.IJobListener"/> from the <see cref="T:Quartz.IJob"/>'s list of listeners. - </p> - </summary> ! <returns> true if the given name was found in the list, and removed ! </returns> </member> <member name="M:Quartz.JobDetail.ToString"> --- 14256,14264 ---- </member> <member name="M:Quartz.JobDetail.RemoveJobListener(System.String)"> ! <summary> Remove the specified name of a <see cref="T:Quartz.IJobListener"/> from the <see cref="T:Quartz.IJob"/>'s list of listeners. </summary> ! <returns>true if the given name was found in the list, and removed</returns> </member> <member name="M:Quartz.JobDetail.ToString"> *************** *** 14324,14328 **** <summary> Get or sets the group of this <see cref="T:Quartz.IJob"/>. ! If <see langword="null"/>, Scheduler.DEFAULT_GROUP will be used. </summary> <exception cref="T:System.ArgumentException"> --- 14321,14325 ---- <summary> Get or sets the group of this <see cref="T:Quartz.IJob"/>. ! If <see langword="null"/>, <see cref="F:Quartz.SchedulerConstants.DEFAULT_GROUP"/> will be used. </summary> <exception cref="T:System.ArgumentException"> *************** *** 14409,14415 **** <member name="P:Quartz.JobDetail.JobListenerNames"> <summary> ! Returns an array of <see cref="T:System.String"/> s containing the names of all <see cref="T:Quartz.IJobListener"/> s assigned to the <see cref="T:Quartz.IJob"/>, ! in the order in which they should be notified. </summary> </member> --- 14406,14413 ---- <member name="P:Quartz.JobDetail.JobListenerNames"> <summary> ! Gets or sets an array of <see cref="T:System.String"/> s containing the names of all <see cref="T:Quartz.IJobListener"/> s assigned to the <see cref="T:Quartz.IJob"/>, ! in the order in which they should be notified. Setting the array ! clears any listener names that were in the list. </summary> </member> Index: Quartz.dll =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/2.0/Quartz.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvs8D9JgM and /tmp/cvsW3Cgt4 differ |
From: Marko L. <la...@us...> - 2007-09-12 18:39:00
|
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/1.1 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19063/1.1 Modified Files: Quartz.dll Quartz.xml Log Message: Updated to version with virtualized JobDetail Index: Quartz.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/1.1/Quartz.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Quartz.xml 11 Sep 2007 09:33:25 -0000 1.2 --- Quartz.xml 12 Sep 2007 18:38:56 -0000 1.3 *************** *** 14212,14218 **** the default settings of all the other properties. <p> ! Note that the {@link #setName(String)},{@link #setGroup(String)}and ! {@link #setJobClass(Class)}methods must be called before the job can be ! placed into a {@link Scheduler} </p> </summary> --- 14212,14218 ---- the default settings of all the other properties. <p> ! Note that the <see cref="P:Quartz.JobDetail.Name"/>,<see cref="P:Quartz.JobDetail.Group"/> and ! <see cref="P:Quartz.JobDetail.JobType"/> properties must be set before the job can be ! placed into a <see cref="T:Quartz.IScheduler"/>. </p> </summary> *************** *** 14256,14267 **** </member> <member name="M:Quartz.JobDetail.RemoveJobListener(System.String)"> ! <summary> <p> Remove the specified name of a <see cref="T:Quartz.IJobListener"/> from the <see cref="T:Quartz.IJob"/>'s list of listeners. - </p> - </summary> ! <returns> true if the given name was found in the list, and removed ! </returns> </member> <member name="M:Quartz.JobDetail.ToString"> --- 14256,14264 ---- </member> <member name="M:Quartz.JobDetail.RemoveJobListener(System.String)"> ! <summary> Remove the specified name of a <see cref="T:Quartz.IJobListener"/> from the <see cref="T:Quartz.IJob"/>'s list of listeners. </summary> ! <returns>true if the given name was found in the list, and removed</returns> </member> <member name="M:Quartz.JobDetail.ToString"> *************** *** 14324,14328 **** <summary> Get or sets the group of this <see cref="T:Quartz.IJob"/>. ! If <see langword="null"/>, Scheduler.DEFAULT_GROUP will be used. </summary> <exception cref="T:System.ArgumentException"> --- 14321,14325 ---- <summary> Get or sets the group of this <see cref="T:Quartz.IJob"/>. ! If <see langword="null"/>, <see cref="F:Quartz.SchedulerConstants.DEFAULT_GROUP"/> will be used. </summary> <exception cref="T:System.ArgumentException"> *************** *** 14409,14415 **** <member name="P:Quartz.JobDetail.JobListenerNames"> <summary> ! Returns an array of <see cref="T:System.String"/> s containing the names of all <see cref="T:Quartz.IJobListener"/> s assigned to the <see cref="T:Quartz.IJob"/>, ! in the order in which they should be notified. </summary> </member> --- 14406,14413 ---- <member name="P:Quartz.JobDetail.JobListenerNames"> <summary> ! Gets or sets an array of <see cref="T:System.String"/> s containing the names of all <see cref="T:Quartz.IJobListener"/> s assigned to the <see cref="T:Quartz.IJob"/>, ! in the order in which they should be notified. Setting the array ! clears any listener names that were in the list. </summary> </member> Index: Quartz.dll =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/1.1/Quartz.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvs3RuakL and /tmp/cvszjMpy3 differ |
From: Bruno B. <bb...@us...> - 2007-09-12 17:27:13
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Testing.NUnit.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20519/test/Spring/Spring.Testing.NUnit.Tests Modified Files: Spring.Testing.NUnit.Tests.2005.csproj Log Message: Fix/update of VS2005 csprojs/sln. Index: Spring.Testing.NUnit.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Testing.NUnit.Tests/Spring.Testing.NUnit.Tests.2005.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Spring.Testing.NUnit.Tests.2005.csproj 25 Aug 2007 14:26:35 -0000 1.2 --- Spring.Testing.NUnit.Tests.2005.csproj 12 Sep 2007 17:26:57 -0000 1.3 *************** *** 1,5 **** <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> ! <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>8.0.50727</ProductVersion> --- 1,5 ---- <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> ! <Configuration Condition=" '$(Configuration)' == '' ">Debug-2.0</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>8.0.50727</ProductVersion> *************** *** 13,30 **** </StartupObject> </PropertyGroup> ! <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> ! <OutputPath>..\..\..\build\VS.Net.2005\Spring.Testing.NUnit.Tests\Debug\</OutputPath> <DefineConstants>TRACE;DEBUG;NET_2_0</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> ! <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> ! <OutputPath>..\..\..\build\VS.Net.2005\Spring.Data.Tests\Release\</OutputPath> ! <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> --- 13,30 ---- </StartupObject> </PropertyGroup> ! <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug-2.0|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> ! <OutputPath>..\..\..\build\VS.Net.2005\Spring.Testing.NUnit.Tests\Debug-2.0\</OutputPath> <DefineConstants>TRACE;DEBUG;NET_2_0</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> ! <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release-2.0|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> ! <OutputPath>..\..\..\build\VS.Net.2005\Spring.Testing.NUnit.Tests\Release-2.0\</OutputPath> ! <DefineConstants>TRACE;NET_2_0</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> |
From: Bruno B. <bb...@us...> - 2007-09-12 17:27:07
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20519/test/Spring/Spring.Web.Tests Modified Files: Spring.Web.Tests.2005.csproj Log Message: Fix/update of VS2005 csprojs/sln. 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.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Spring.Web.Tests.2005.csproj 25 Aug 2007 14:26:36 -0000 1.19 --- Spring.Web.Tests.2005.csproj 12 Sep 2007 17:26:57 -0000 1.20 *************** *** 5,9 **** <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{C67E47AA-1ACD-41B4-A465-4D336A2319CA}</ProjectGuid> ! <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ApplicationIcon> --- 5,9 ---- <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{C67E47AA-1ACD-41B4-A465-4D336A2319CA}</ProjectGuid> ! <Configuration Condition=" '$(Configuration)' == '' ">Debug-2.0</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ApplicationIcon> *************** *** 23,33 **** <StartupObject> </StartupObject> - <FileUpgradeFlags> - </FileUpgradeFlags> - <UpgradeBackupLocation> - </UpgradeBackupLocation> </PropertyGroup> ! <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> ! <OutputPath>..\..\..\build\VS.Net.2005\Spring.Web.Tests\Debug\</OutputPath> <AllowUnsafeBlocks>false</AllowUnsafeBlocks> <BaseAddress>285212672</BaseAddress> --- 23,29 ---- <StartupObject> </StartupObject> </PropertyGroup> ! <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug-2.0|AnyCPU' "> ! <OutputPath>..\..\..\build\VS.Net.2005\Spring.Web.Tests\Debug-2.0\</OutputPath> <AllowUnsafeBlocks>false</AllowUnsafeBlocks> <BaseAddress>285212672</BaseAddress> *************** *** 51,56 **** <UseVSHostingProcess>true</UseVSHostingProcess> </PropertyGroup> ! <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> ! <OutputPath>..\..\..\build\VS.Net\Spring.Web.Tests\Release\</OutputPath> <AllowUnsafeBlocks>false</AllowUnsafeBlocks> <BaseAddress>285212672</BaseAddress> --- 47,52 ---- <UseVSHostingProcess>true</UseVSHostingProcess> </PropertyGroup> ! <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release-2.0|AnyCPU' "> ! <OutputPath>..\..\..\build\VS.Net.2005\Spring.Web.Tests\Release-2.0\</OutputPath> <AllowUnsafeBlocks>false</AllowUnsafeBlocks> <BaseAddress>285212672</BaseAddress> *************** *** 58,62 **** <ConfigurationOverrideFile> </ConfigurationOverrideFile> ! <DefineConstants>TRACE</DefineConstants> <DocumentationFile> </DocumentationFile> --- 54,58 ---- <ConfigurationOverrideFile> </ConfigurationOverrideFile> ! <DefineConstants>TRACE;NET_2_0</DefineConstants> <DocumentationFile> </DocumentationFile> |