P
Peter Judge
Guest
What date is the version you're working with? The assertions have moved into another namespace (OpenEdge.Core) in more recent bits. -- peter From: mihai.pintea [mailto:bounce-mihaipintea@community.progress.com] Sent: Friday, 28 March, 2014 10:02 To: TU.OE.Development@community.progress.com Subject: RE: Registration for the OpenEdge 11.4 Early Access Program is now open! RE: Registration for the OpenEdge 11.4 Early Access Program is now open! Reply by mihai.pintea I have installed the Alpha version of 11.4. I want to see how ABLUnit is work by trying to run the next example: MyClass: USING Progress.Lang.*. CLASS MyClass: METHOD PUBLIC CHARACTER M1( ): DEFINE VARIABLE result AS CHARACTER NO-UNDO. result = "M1". RETURN result. END METHOD. METHOD PUBLIC INTEGER M2( ): DEFINE VARIABLE result AS INTEGER NO-UNDO. result = 10. RETURN result. END METHOD. END CLASS. MyTestClass: USING Progress.Lang.*. ROUTINE-LEVEL ON ERROR UNDO, THROW. USING ABLUnit.Assertions.Assert. CLASS MyTestClass: @Test. METHOD PUBLIC VOID TestM1( ): DEFINE VARIABLE obj AS MyClass NO-UNDO. DEFINE VARIABLE returned AS CHARACTER NO-UNDO. obj = new MyClass(). returned = obj:M1(). Assert:AssertEquals(returned,"M1"). END METHOD. @Test. METHOD PUBLIC VOID TestM2( ): DEFINE VARIABLE obj AS MyClass NO-UNDO. DEFINE VARIABLE i AS INTEGER NO-UNDO. obj = new MyClass(). i = obj:M2(). Assert:AssertEquals(i,0). END METHOD. END CLASS. I had created an ABLUnit project. But here 'USING ABLUnit.Assertions.Assert.' i get the next error: Multiple markers at this line - ** C:\work\test2\tests\MyTestClass.cls Could not understand line 15. (196) - Could not find class or interface ABLUnit.Assertions.Assert. (12886). Could anyone help me to solve this problem? Stop receiving emails on this subject. Flag this post as spam/abuse.
Continue reading...
Continue reading...