Index: vhUnitTest/APPS/Halux/Planning/TestPlanningService.cls.xml =================================================================== diff -u -r915 -r946 --- vhUnitTest/APPS/Halux/Planning/TestPlanningService.cls.xml (.../TestPlanningService.cls.xml) (revision 915) +++ vhUnitTest/APPS/Halux/Planning/TestPlanningService.cls.xml (.../TestPlanningService.cls.xml) (revision 946) @@ -1,11 +1,11 @@ - + do ##class(vhUnitTest.Manager).RunTest("/debug/display=all","APPS.Halux.Planning.TestPlanningService") 1 vhUnitTest.TestCase -62145,30393.86532 +62168,39788.499721 0 @@ -21,10 +21,29 @@ Set ^KTO(6332,296195,101)="\629192\1\\\47.68\#\\47.68\47.68\\L\1\\100\47.68\KTRPL\\\\E\EUR\\\11/06\\118153\101\\\\\\\\" Set ^KTO(6332,296195,102)="\629192\1\\\47.68\#\\47.68\47.68\\L\1\\100\47.68\KTRPL\\\\E\EUR\\\11/06\\118153\102\\\\\\\\" + Set ^KTO1(298209) ="6332\" + + Set ^KTO(6332,298209,0)=102 + Set ^KTO(6332,298209,1)="\18.03.11\KOMM. TESTKLANT VAN HOECK\\\6332\123441\1000\\\\\\\\\\EUR\62172,43200\\\2\\\\" + Set ^KTO(6332,298209,4)=2 + Set ^KTO(6332,298209,101)="\614077\1\\\21.14\#\\21.14\21.14\\L\1\\100\21.14\KTRPL\\\\E\EUR\\\11/12\\123441\101\\\\\\\\" + Quit $$$OK ]]> + +%Status + + + 0 @@ -78,7 +97,7 @@ Do $$$AssertEquals($Piece(Gepland," "),$zdt(62135,3),"Het item is gepland op de nieuwe datum") Set Bestaat = "" - &SQL(SELECT ID INTO :Bestaat FROM APPS_Halux_Planning_impl.ExplicietePlanning WHERE ToeleveringsNummer = 296196) + &SQL(SELECT ID INTO :Bestaat FROM APPS_Halux_Planning_impl.ExplicietePlanning WHERE ToeleveringsNummer = 133333) Set Bestaat = $Get(Bestaat,0) > 0 Do $$$AssertFalse(Bestaat, "De data voor de expliciete planning is niet bewaard") @@ -160,6 +179,40 @@ Do ##class(APPS.Halux.Planning.impl.EventCatcher).ToeleveringDeletedEventListener(ToeleveringDeletedEvent) ]]> + + + 0,"Een batch werd aangemaakt") + Do $$$AssertTrue(Resultaat.IsGeslaagd,"De batch werd gemaakt") + Do $$$AssertEquals(Resultaat.Errors.Count(),0,"Er zijn geen problemen") + + Do ##class(APPS.Halux.common.BatchService).%New().VerwijderBatch(Resultaat.BatchID) +]]> + + + + + - +