Skip to content

Mock a paragraph and provide fake results

Dave Nicolette edited this page Feb 4, 2021 · 4 revisions

Home -> User Guide -> Common Test Case Patterns ->

Assumption: Paragraph ACCOUNT-RECONCILIATION performs paragraph MONTH-END-YEAR-END to determine whether it is time for month-end or year-end reconciliation, or none.

       TESTSUITE 'Mock a paragraph and provide fake results' 

       TESTCASE 'Check year-end logic for account reconciliation' 
           MOCK PARAGRAPH MONTH-END-YEAR-END
               SET MONTH-END TO FALSE
               SET YEAR-END TO TRUE
           END-MOCK
           PERFORM ACCOUNT-RECONCILIATION
           EXPECT year-end expectations
           EXPECT ...
           EXPECT ...

       TESTCASE 'Check month-end logic for account reconciliation' 
           MOCK PARAGRAPH MONTH-END-YEAR-END
               SET MONTH-END TO TRUE
               SET YEAR-END TO FALSE
           END-MOCK
           PERFORM ACCOUNT-RECONCILIATION
           EXPECT month-end expectations
           EXPECT ...
           EXPECT ...

       TESTCASE 'Check regular day for account reconciliation' 
           MOCK PARAGRAPH MONTH-END-YEAR-END
               SET MONTH-END TO FALSE
               SET YEAR-END TO FALSE
           END-MOCK
           PERFORM ACCOUNT-RECONCILIATION
           EXPECT regular day expectations
           EXPECT ...
           EXPECT ...
Clone this wiki locally