Index: APPS/TBXWeb/impl/AbstractOrderHandler.cls.xml
===================================================================
diff -u -r2 -r10
--- APPS/TBXWeb/impl/AbstractOrderHandler.cls.xml (.../AbstractOrderHandler.cls.xml) (revision 2)
+++ APPS/TBXWeb/impl/AbstractOrderHandler.cls.xml (.../AbstractOrderHandler.cls.xml) (revision 10)
@@ -68,7 +68,7 @@
. Do ..Logger.ErrorMail("PREPROCESSING_FAILED",$$ParseStatus^vhLib.System(stPreProcessing))
; Ordertype order niet van het juiste begin type
- If $$$ISERR(..OrderStartTypeValid()) Do Quit $$$ERROR($$$GeneralError,"WSOrder start type not correct")
+ If $$$ISERR(..OrderStartTypeValid()) Do Quit $$$ERROR($$$errStartTypeIncorrect,"WSOrder start type not correct")
. Do ..Logger.ErrorMail("ORDERSTARTTYPE_INVALID",..WSOrd.%Id()_" : "_..WSOrd.BonType)
If '(..IsValidWebDomain()) Do Quit $$$ERROR($$$GeneralError,"WSOrder has no valid WebDomain for this shop")
Index: vhUnitTest/TestCase.cls.xml
===================================================================
diff -u
--- vhUnitTest/TestCase.cls.xml (revision 0)
+++ vhUnitTest/TestCase.cls.xml (revision 10)
@@ -0,0 +1,234 @@
+
+
+
+
+Adopted from InterSystems's %UnitTest.TestCase by logist (Dimas ltd., Russia)
+Adapted to Van Hoecke's needs by JCL and FMA
+
+Test case class. All test cases are derived from here.
+Every test method should start with prefix "Test".
+%outUnitTest,vhUnitTest,vhLib.Macro
+%outUnitTest,vhUnitTest
+1
+%RegisteredObject
+0
+
+
+
+
+
+vhUnitTest.Manager
+
+
+
+AManager
+%Status
+
+
+
+
+%Status
+
+
+
+
+%Status
+
+
+
+
+aTestName:%String
+%Status
+
+
+
+
+aTestName:%String
+%Status
+
+
+
+
+Var
+%Boolean
+
+
+
+
+aAutoQuoted,aValue1,aValue2,aMessage
+%Boolean
+
+
+
+
+aAutoQuoted,aValue1,aValue2,aMessage
+%Boolean
+
+
+
+
+aAutoQuoted,aValue1,aValue2,aDifference,aMessage
+%Boolean
+(aDifference)
+ Do manager.LogAssert(success,"AssertAlmostEquals",aMessage)
+ Quit success
+]]>
+
+
+
+aAutoQuoted,aValue,aMessage
+%Boolean
+
+
+
+
+aAutoQuoted,aValue,aMessage
+%Boolean
+
+
+
+
+aAutoQuoted,status,aMessage
+%Status
+ "_$g(errorarray(1))
+ Do manager.LogAssert(success,"AssertStatusOK",aMessage)
+ Quit success
+]]>
+
+
+
+aAutoQuoted,status,aMessage
+%Status
+
+
+
+
+aMessage
+%Status
+
+
+
+
+aAutoQuoted,file1,file2,aMessage
+%Boolean
+
+
+
+
+message
+
+
+
+
+1
+argline:%String,type:%String
+1
+%String
+$l(argline) s c=$e(argline,i) d
+ . i c="""" s q='q
+ . i c="(" s p=p+1
+ . i c=")" s p=p-1
+ . i c=",",q=0,p=0 s args($increment(piece))=$e(argline,ptr,i-1),ptr=i+1
+ s args($increment(piece))=$e(argline,ptr,i-1)
+ i type="expr" q $g(args(1))
+ i type="equals" q $g(args(1))_"=="_$g(args(2))
+ q ""
+]]>
+
+
+
Index: vhUnitTest/APPS/TBXWeb/impl/VHEPNOrderHandler.cls.xml
===================================================================
diff -u
--- vhUnitTest/APPS/TBXWeb/impl/VHEPNOrderHandler.cls.xml (revision 0)
+++ vhUnitTest/APPS/TBXWeb/impl/VHEPNOrderHandler.cls.xml (revision 10)
@@ -0,0 +1,54 @@
+
+
+
+1
+vhUnitTest.TestCase
+0
+
+
+
+Oproepen via
+ do ##class(vhUnitTest.Manager).RunTest("/debug/display=all","APPS.TBXWeb.impl.VHEPNOrderHandler")
+
+
+
+
+
+WSOrdID:%String
+
+
+
+
+BonType:%String="OFF"
+1
+%String
+
+
+
+
Index: APPS/TBXWeb.inc.rou
===================================================================
diff -u -r2 -r10
--- APPS/TBXWeb.inc.rou (.../TBXWeb.inc.rou) (revision 2)
+++ APPS/TBXWeb.inc.rou (.../TBXWeb.inc.rou) (revision 10)
@@ -11,4 +11,7 @@
#Include APPS.TBXWeb.EMailAdressen
#Include APPS.TBXWeb.DomeinNamen
-#define Vertaling(%s,%t) ##class(Res.Vertaling).GetVertaling("TBW",%s,"L",%t)
\ No newline at end of file
+#define Vertaling(%s,%t) ##class(Res.Vertaling).GetVertaling("TBW",%s,"L",%t)
+
+
+#define errStartTypeIncorrect 3001
\ No newline at end of file
Index: vhUnitTest/WS/TBX/SFS/OrderServiceInternal.cls.xml
===================================================================
diff -u
--- vhUnitTest/WS/TBX/SFS/OrderServiceInternal.cls.xml (revision 0)
+++ vhUnitTest/WS/TBX/SFS/OrderServiceInternal.cls.xml (revision 10)
@@ -0,0 +1,25 @@
+
+
+
+APPS.TBXWeb
+1
+vhUnitTest.TestCase
+0
+
+
+
+Oproepen via
+ do ##class(vhUnitTest.Manager).RunTest("/debug/display=all","WS.TBX.SFS.OrderServiceInternal")
+
+
+
+
+
Index: vhUnitTest/Report.cls.xml
===================================================================
diff -u
--- vhUnitTest/Report.cls.xml (revision 0)
+++ vhUnitTest/Report.cls.xml (revision 10)
@@ -0,0 +1,286 @@
+
+
+
+1
+%CSP.Page
+0
+
+
+
+
+]]>
+
+
+
+
+Adapted to Van Hoecke's needs by FMA (small change: reversed the order of the test runs in the report: most recent first).
+1
+%Status
+#(..HyperEventHead())#>
+ If namespace="" { Quit ..NoNameSpace() }
+ ElseIf index="" { Quit ..ShowIndices(namespace) }
+ ElseIf suite="" { Quit ..ShowSuites(namespace,index) }
+ ElseIf case="" { Quit ..ShowCases(namespace,index,suite) }
+ ElseIf method="" { Quit ..ShowMethods(namespace,index,suite,case) }
+ Else { Quit ..ShowAsserts(namespace,index,suite,case,method) }
+ &html<