[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: ABLUnit: How to create test suite to perform interface test on multiple classes

  • Thread starter Thread starter benBuckley
  • Start date Start date
Status
Not open for further replies.
B

benBuckley

Guest
You can have one method/class that contains all test logic and takes the interface as input, and then test cases that call that method, passing in the different implementations. If both pass, then both work. METHOD PRIVATE VOID InterfaceTest (INPUT poProperty AS IPropertyCollection): BLAH BLAH. END METHOD. METHOD PUBLIC VOID TempTableTest (): THIS-OBJECT:InterfaceTest(NEW TempTablePropertyCollection()). END METHOD. METHOD PUBLIC VOID JsonTest(): THIS-OBJECT:InterfaceTest(NEW JsonPropertyCollection()). END METHOD.

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