S
sanreddy
Guest
Hi mihai, Assert class is moved from ABLUnit.Assertions.Assert package to OpenEdge.core.Assert and assert:assertequals() method signature is changed to assert:equals(). Can you change your code such that they use proper using statement and proper method declarations. Hope this helps, Sanjeev. sent from mobile On Mar 28, 2014 7:31 PM, "mihai.pintea" bounce-mihaipintea@community.progress.com wrote: 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...