Index: vhUnitTest/BL/PPS/TBX/TestTipon.cls.xml =================================================================== diff -u -r29059 -r58998 --- vhUnitTest/BL/PPS/TBX/TestTipon.cls.xml (.../TestTipon.cls.xml) (revision 29059) +++ vhUnitTest/BL/PPS/TBX/TestTipon.cls.xml (.../TestTipon.cls.xml) (revision 58998) @@ -16,7 +16,7 @@ Set LabelPrinterMockT = ##class(vhUnitTest.BL.PPS.TBX.LabelPrinterMock).%New() for i=1:1:4 { - Set pxLabel=##class(BL.PPS.TBX.sub.pxLabelV1).%New() + Set pxLabel=##class(LabelMock).%New() Do pxLabel.SetTipon(0) Set pxLabel.VolgNr = i Set pxLabel.BatchID = "123" @@ -62,7 +62,7 @@ #dim i=0 Set pxLabelIterator = ##class(TECH.ListIterator).%New(LabelList) While pxLabelIterator.HasNext() { - #dim pxLabel As BL.PPS.TBX.sub.pxLabelV1 = pxLabelIterator.Next() + #dim pxLabel As vhUnitTest.BL.PPS.TBX.LabelMock = pxLabelIterator.Next() Set i=i+1 Do:MultiProcessorZ.Process(.pxLabel) LabelPrinterMockZ.Add(pxLabel) Set:(i=4) NextLabel = pxLabel @@ -80,7 +80,7 @@ Do $$$AssertEquals(LabelPrinterMockT.Count, 2, "T # labels added to printer") Do $$$AssertEquals(LabelPrinterMockT.LastSeqNr, 3, "T Last label sequence number") // Intermediate tipon indication on the label in "zaaglijst" following a series of tipons - Do $$$AssertEquals(NextLabel.TiponCountBefore, 2, "Z Intermediate tipon count") + Do $$$AssertEquals(NextLabel.GeefTiponCount(), 2, "Z Intermediate tipon count") Quit $$$OK ]]> @@ -102,7 +102,7 @@ Set pxLabelIterator = ##class(TECH.ListIterator).%New(LabelList) While pxLabelIterator.HasNext() { - #dim pxLabel As BL.PPS.TBX.sub.pxLabelV1 = pxLabelIterator.Next() + #dim pxLabel As vhUnitTest.BL.PPS.TBX.LabelMock = pxLabelIterator.Next() Do:TestClassZ.Process(.pxLabel) LabelPrinterMockZ.Add(pxLabel) Do:TestClassT.Process(.pxLabel) LabelPrinterMockT.Add(pxLabel) } @@ -114,9 +114,9 @@ Do $$$AssertEquals(LabelPrinterMockZ.Printed, 1, "Z Printed") Do $$$AssertEquals(LabelPrinterMockZ.Count, 3, "Z # labels added to printer") Do $$$AssertEquals(LabelPrinterMockZ.LastSeqNr, 3, "Z Last label sequence number") - Do $$$AssertEquals(LabelList.GetAt(1).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(2).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(3).TiponCountAfter,1,"Er is 1 tipon achter") + Do $$$AssertEquals(LabelList.GetAt(1).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(2).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(3).GetTiponCountAfter(),1,"Er is 1 tipon achter") // Asserts for tipon list Do $$$AssertEquals(LabelPrinterMockT.Printed, 1, "T Printed") Do $$$AssertEquals(LabelPrinterMockT.Count, 1, "T # labels added to printer") @@ -143,7 +143,7 @@ Set pxLabelIterator = ##class(TECH.ListIterator).%New(LabelList) While pxLabelIterator.HasNext() { - #dim pxLabel As BL.PPS.TBX.sub.pxLabelV1 = pxLabelIterator.Next() + #dim pxLabel As vhUnitTest.BL.PPS.TBX.LabelMock = pxLabelIterator.Next() Do:TestClassZ.Process(.pxLabel) LabelPrinterMockZ.Add(pxLabel) Do:TestClassT.Process(.pxLabel) LabelPrinterMockT.Add(pxLabel) } @@ -155,14 +155,14 @@ Do $$$AssertEquals(LabelPrinterMockZ.Printed, 1, "Z Printed") Do $$$AssertEquals(LabelPrinterMockZ.Count, 3, "Z # labels added to printer") Do $$$AssertEquals(LabelPrinterMockZ.LastSeqNr, 5, "Z Last label sequence number") - Do $$$AssertEquals(LabelList.GetAt(1).TiponCountBefore,0,"Er zijn geen voorgaande tipons") - Do $$$AssertEquals(LabelList.GetAt(3).TiponCountBefore,1,"Er is 1 voorgaande tipon") - Do $$$AssertEquals(LabelList.GetAt(5).TiponCountBefore,1,"Er is 1 voorgaande tipon") - Do $$$AssertEquals(LabelList.GetAt(1).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(2).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(3).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(4).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(5).TiponCountAfter,0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(1).GeefTiponCount(),0,"Er zijn geen voorgaande tipons") + Do $$$AssertEquals(LabelList.GetAt(3).GeefTiponCount(),1,"Er is 1 voorgaande tipon") + Do $$$AssertEquals(LabelList.GetAt(5).GeefTiponCount(),1,"Er is 1 voorgaande tipon") + Do $$$AssertEquals(LabelList.GetAt(1).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(2).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(3).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(4).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(5).GetTiponCountAfter(),0,"Er zijn geen tipons achter") // Asserts for tipon list Do $$$AssertEquals(LabelPrinterMockT.Printed, 1, "T Printed") Do $$$AssertEquals(LabelPrinterMockT.Count, 2, "T # labels added to printer") @@ -190,7 +190,7 @@ Set pxLabelIterator = ##class(TECH.ListIterator).%New(LabelList) While pxLabelIterator.HasNext() { - #dim pxLabel As BL.PPS.TBX.sub.pxLabelV1 = pxLabelIterator.Next() + #dim pxLabel As vhUnitTest.BL.PPS.TBX.LabelMock = pxLabelIterator.Next() Do:TestClassZ.Process(.pxLabel) LabelPrinterMockZ.Add(pxLabel) Do:TestClassT.Process(.pxLabel) LabelPrinterMockT.Add(pxLabel) } @@ -202,16 +202,16 @@ Do $$$AssertEquals(LabelPrinterMockZ.Printed, 1, "Z Printed") Do $$$AssertEquals(LabelPrinterMockZ.Count, 3, "Z # labels added to printer") Do $$$AssertEquals(LabelPrinterMockZ.LastSeqNr, 5, "Z Last label sequence number") - Do $$$AssertEquals(LabelList.GetAt(1).TiponCountBefore,0,"Er zijn geen voorgaande tipons") - Do $$$AssertEquals(LabelList.GetAt(2).TiponCountBefore,0,"Er zijn geen voorgaande tipons") - Do $$$AssertEquals(LabelList.GetAt(3).TiponCountBefore,1,"Er is 1 voorgaande tipon") - Do $$$AssertEquals(LabelList.GetAt(5).TiponCountBefore,1,"Er is 1 voorgaande tipon") - Do $$$AssertEquals(LabelList.GetAt(1).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(2).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(3).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(4).TiponCountAfter,0,"Er zijn geen tipons achter") - Do $$$AssertEquals(LabelList.GetAt(5).TiponCountAfter,1,"Er is 1 tipon achter") - Do $$$AssertEquals(LabelList.GetAt(6).TiponCountAfter,0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(1).GeefTiponCount(),0,"Er zijn geen voorgaande tipons") + Do $$$AssertEquals(LabelList.GetAt(2).GeefTiponCount(),0,"Er zijn geen voorgaande tipons") + Do $$$AssertEquals(LabelList.GetAt(3).GeefTiponCount(),1,"Er is 1 voorgaande tipon") + Do $$$AssertEquals(LabelList.GetAt(5).GeefTiponCount(),1,"Er is 1 voorgaande tipon") + Do $$$AssertEquals(LabelList.GetAt(1).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(2).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(3).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(4).GetTiponCountAfter(),0,"Er zijn geen tipons achter") + Do $$$AssertEquals(LabelList.GetAt(5).GetTiponCountAfter(),1,"Er is 1 tipon achter") + Do $$$AssertEquals(LabelList.GetAt(6).GetTiponCountAfter(),0,"Er zijn geen tipons achter") // Asserts for tipon list Do $$$AssertEquals(LabelPrinterMockT.Printed, 1, "T Printed") Do $$$AssertEquals(LabelPrinterMockT.Count, 3, "T # labels added to printer") @@ -220,7 +220,7 @@ ]]> - + - - - - - - - - - - - - - - - - - - - - - - - - LabelList:%ListOfObjects,LabelProcessor:BL.PPS.TBX.LabelProcessor,LabelPrinter:BL.Sys.LabelPrinter 1 VolgNr:%Integer 1 -BL.PPS.TBX.sub.pxLabelV1 +vhUnitTest.BL.PPS.TBX.LabelMock VolgNr:%Integer 1 -BL.PPS.TBX.sub.pxLabelV1 +vhUnitTest.BL.PPS.TBX.LabelMock - -VolgNr:%Integer -1 -BL.PPS.TBX.sub.pxLabelV1 - - - VolgNr:%Integer 1 @@ -624,23 +345,22 @@ ]]> - + VolgNr:%Integer 1 -BL.PPS.TBX.sub.pxLabelV1 -vhUnitTest.BL.PPS.TBX.LabelMock + -VolgNr:%Integer,BatchID:%String="123",IsTipon:%Boolean=0,IsSpoelbak:%Boolean=0,IsSifon:%Boolean=0 +VolgNr:%Integer,BatchID:%String="123",IsTipon:%Boolean=0,IsSpoelbak:%Boolean=0 1 -BL.PPS.TBX.sub.pxLabelV1 +vhUnitTest.BL.PPS.TBX.LabelMock