Index: vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator/DataVoorToeleveringGenerator/GenereerData/Test.cls.xml =================================================================== diff -u -r74508 -r74689 --- vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator/DataVoorToeleveringGenerator/GenereerData/Test.cls.xml (.../Test.cls.xml) (revision 74508) +++ vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator/DataVoorToeleveringGenerator/GenereerData/Test.cls.xml (.../Test.cls.xml) (revision 74689) @@ -47,6 +47,7 @@ #dim BatchMock As vhTest.Mock.APPS.Halux.common.Batch = ##class(vhTest.Mock.APPS.Halux.common.Batch).%New() Do BatchMock.VerwachtMethodCall("GeefID").ExactAantalKeer(1).DanReturn(..#BatchId) Do BatchMock.VerwachtMethodCall("GeefLijn").ExactAantalKeer(1).DanReturn(LijnNummer) + Do BatchMock.VerwachtMethodCall("GeefProductieGroep").DanReturn("") #dim ToeleveringMock As vhTest.Mock.DOM.AKP.Toelevering = ..GeefToeleveringMock(..#ToeleveringId, ..#AantalLades, ..#Horolog, 1) @@ -109,7 +110,10 @@ Do $$$AssertEquals(TekstVelden.TypeKarton,"VH") } - Do $$$AssertEquals(GebruikersVelden.NumeriekeVelden ,"") + If ($$$AssertTrue($IsObject(GebruikersVelden.NumeriekeVelden))) { + #dim NumeriekeVelden As APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.dto.BatchNaarObjectiveNumeriekeVelden = GebruikersVelden.NumeriekeVelden + Do $$$AssertEquals(NumeriekeVelden.BerekendeVolumeEenheden, 0) + } If ($$$AssertTrue($IsObject(GebruikersVelden.Vlag))) { #dim VlagVelden As APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.dto.BatchNaarObjectiveVlagVelden = GebruikersVelden.Vlag @@ -140,7 +144,8 @@ #dim BatchMock As vhTest.Mock.APPS.Halux.common.Batch = ##class(vhTest.Mock.APPS.Halux.common.Batch).%New() Do BatchMock.VerwachtMethodCall("GeefID").ExactAantalKeer(1).DanReturn(..#BatchId) - Do BatchMock.VerwachtMethodCall("GeefLijn").ExactAantalKeer(1).DanReturn(LijnNummer) + Do BatchMock.VerwachtMethodCall("GeefLijn").ExactAantalKeer(1).DanReturn(LijnNummer) + Do BatchMock.VerwachtMethodCall("GeefProductieGroep").DanReturn("") #dim ToeleveringMock As vhTest.Mock.DOM.AKP.Toelevering = ..GeefToeleveringMock(..#ToeleveringId, ..#AantalLades, ..#Horolog, 1) @@ -267,6 +272,7 @@ #dim BatchMock As vhTest.Mock.APPS.Halux.common.Batch = ##class(vhTest.Mock.APPS.Halux.common.Batch).%New() Do BatchMock.VerwachtMethodCall("GeefID").ExactAantalKeer(1).DanReturn(..#BatchId) Do BatchMock.VerwachtMethodCall("GeefLijn").ExactAantalKeer(1).DanReturn(LijnNummer) + Do BatchMock.VerwachtMethodCall("GeefProductieGroep").DanReturn("") #dim ToeleveringMock As vhTest.Mock.DOM.AKP.Toelevering = ..GeefToeleveringMock(..#ToeleveringId, ..#AantalLades, ..#Horolog, 1, OorspronKeeting) @@ -337,6 +343,7 @@ #dim BatchMock As vhTest.Mock.APPS.Halux.common.Batch = ##class(vhTest.Mock.APPS.Halux.common.Batch).%New() Do BatchMock.VerwachtMethodCall("GeefID").ExactAantalKeer(1).DanReturn(..#BatchId) Do BatchMock.VerwachtMethodCall("GeefLijn").ExactAantalKeer(1).DanReturn(LijnNummer) + Do BatchMock.VerwachtMethodCall("GeefProductieGroep").DanReturn("") #dim ToeleveringMock As vhTest.Mock.DOM.AKP.Toelevering = ..GeefToeleveringMock(..#ToeleveringId, ..#AantalLades, ..#Horolog, 1, OorspronKeeting)