|
From: Owen R. <exo...@us...> - 2005-06-25 15:05:07
|
Update of /cvsroot/ccnet/ccnet/project/UnitTests/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29665/project/UnitTests/Core Modified Files: ProjectTest.cs Log Message: CCNET-344 : FilterTrigger can now handle timeranges that span over midnight -- patch contributed by Jens Hembo CCNET-462 : adding MBUnit stylesheets -- contributed by Andrew Stopford fixing namespaces for pvcs tests adding TimeOut.config example config Index: ProjectTest.cs =================================================================== RCS file: /cvsroot/ccnet/ccnet/project/UnitTests/Core/ProjectTest.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ProjectTest.cs 15 Jun 2005 02:20:13 -0000 1.8 --- ProjectTest.cs 25 Jun 2005 15:04:23 -0000 1.9 *************** *** 166,170 **** [Test] ! public void asf() { string xml = @" --- 166,170 ---- [Test] ! public void LoadMinimalProjectXmlWithAnEmptyTriggersBlock() { string xml = @" *************** *** 581,584 **** --- 581,603 ---- VerifyAll(); } + + [Test] + public void TimedoutTaskShouldFailBuildIfPublishExceptionsIsTrue() + { + mockLabeller.ExpectAndReturn("Generate", "1.0", new IsAnything()); + mockStateManager.ExpectAndReturn("LoadState", IntegrationResult.CreateInitialIntegrationResult(ProjectName, @"c:\temp"), ProjectName); // running the first integration (no state file) + mockStateManager.Expect("SaveState", new IsAnything()); + mockTask.ExpectAndThrow("Run", new CruiseControlException(), new IsAnything()); + mockSourceControl.ExpectAndReturn("GetModifications", CreateModifications(), new IsAnything(), new IsAnything()); + mockSourceControl.Expect("GetSource", new IsAnything()); + mockSourceControl.Expect("LabelSourceControl", new IsAnything()); + mockPublisher.Expect("Run", new IsAnything()); + + project.Builder = null; + project.PublishExceptions = true; + project.RunIntegration(BuildCondition.ForceBuild); + + VerifyAll(); + } } } \ No newline at end of file |