Index: vhUnitTest/APPS/Halux/Planning/Pitching/impl/BatchPitchExportedService/BatchPitchExportHelper/BepaalVolgnummer/Test.cls.xml =================================================================== diff -u -r71747 -r71751 --- vhUnitTest/APPS/Halux/Planning/Pitching/impl/BatchPitchExportedService/BatchPitchExportHelper/BepaalVolgnummer/Test.cls.xml (.../Test.cls.xml) (revision 71747) +++ vhUnitTest/APPS/Halux/Planning/Pitching/impl/BatchPitchExportedService/BatchPitchExportHelper/BepaalVolgnummer/Test.cls.xml (.../Test.cls.xml) (revision 71751) @@ -141,7 +141,6 @@ Do $$$AssertEquals(Volgnummer, VerwachtVolgnummer) - ;Do VorigeBatchMock.Verifieer() Do BatchPitchedRepositoryMock.Verifieer() Do BatchPitchExportedRepositoryMock.Verifieer() ]]> @@ -278,6 +277,67 @@ ]]> + + + + + + + + BatchId:%String,LijnNr:%Integer 1 Index: APPS/Halux/Planning/Pitching/impl/BatchPitchExportedService/BatchPitchExportedHelper.cls.xml =================================================================== diff -u -r71738 -r71751 --- APPS/Halux/Planning/Pitching/impl/BatchPitchExportedService/BatchPitchExportedHelper.cls.xml (.../BatchPitchExportedHelper.cls.xml) (revision 71738) +++ APPS/Halux/Planning/Pitching/impl/BatchPitchExportedService/BatchPitchExportedHelper.cls.xml (.../BatchPitchExportedHelper.cls.xml) (revision 71751) @@ -37,6 +37,7 @@ %Integer APPS.Halux.Planning.Pitching.dto.BatchPitched 1 ) { - // Error gooien + Set Exception = ##class(TECH.Exceptions.DataCorruptException).%New("Meerdere geptichte batches gevonden voor pitchorde '" _ PitchOrde _ "' en Lijnnummer '" _ LijnNummer _ "'.") + do ##class(TECH.ExceptionHandler).Throw(Exception) } Quit GepitchteBatch @@ -209,7 +211,8 @@ If (BatchPitchExportedLijst.Size = 1) { Set BatchPitchExported = BatchPitchExportedLijst.GetAt(1) } ElseIf (BatchPitchExportedLijst.Size > 1 ) { - // Error gooien + Set Exception = ##class(TECH.Exceptions.DataCorruptException).%New("Meerdere ge-exporteerde batches gevonden voor batchid '" _ BatchId _ "'.") + do ##class(TECH.ExceptionHandler).Throw(Exception) } Quit BatchPitchExported