M
mihai.pintea
Guest
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?
Continue reading...
Continue reading...