[progress Communities] [progress Openedge Abl] Forum Post: How To Use...

Status
Not open for further replies.
J

Johan Vergeer

Guest
Hi guys, I would like to use the HasErrorStatus() method of OpenEdge.Core.Assertion.AssertError library. At this moment I haven't been able to figure out how to use it and the documentation doesn't really make things much clearer. https://documentation.progress.com/output/oehttpclient/oe117/index.html?OpenEdge.Core.Assertion.package.html The way I have used it: @test. METHOD PUBLIC VOID testtoString( ): // Test if an error is thrown if the lenght is smaller then the precision DecimalUtils:toString(10, 6, 5, FALSE, 2). AssertError:HasErrorStatus(). RETURN. CATCH CommonError AS Progress.Lang.Error : END CATCH. END METHOD. What I would expect is that the assertion fails if there is no Error thrown, but that doesn't work. I hope someone can help me out here.

Continue reading...
 
Status
Not open for further replies.
Top