Skip to content

Commit

Permalink
PROCESS-UNMOCK-CALL should start with UT-
Browse files Browse the repository at this point in the history
  • Loading branch information
Rune Christensen committed Oct 17, 2023
1 parent 4d25f65 commit 55f3a2c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class MockGenerator {
private final String endEvaluateLine = " END-EVALUATE";
private final String continueLine = " CONTINUE";

public final static String performUnMockPara = " PERFORM PROCESS-UNMOCK-CALL";
public final static String performUnMockPara = " PERFORM UT-PROCESS-UNMOCK-CALL";

private final String countMockInitialWSHeader = " 01 %sMOCKS-GENERATED.";
private final String initializeMockCountParagraphHeader = " %sINITIALIZE-MOCK-COUNT.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public List<String> generateBeforeAfterBranchParagraphs(boolean withComments){

public List<String> generateCobolLinesForUnmockedCalls() {
List<String> cobolLines = new ArrayList<>();
cobolLines.add(" PROCESS-UNMOCK-CALL.");
cobolLines.add(" UT-PROCESS-UNMOCK-CALL.");
if(Config.getDisplayUnMockedCalls()) {
String line1 = " Add 1 to %sNUMBER-UNMOCK-CALL";
String line2 = " display \"Call not mocked in testcase \" %1$sTEST-CASE-NAME \" in testsuite \" %1$sTEST-SUITE-NAME";
Expand Down
34 changes: 17 additions & 17 deletions src/test/java/org/openmainframeproject/cobolcheck/ExpanderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
" PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" UT-PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" Add 1 to UT-NUMBER-UNMOCK-CALL " + Constants.NEWLINE +
" display \"Call not mocked in testcase \" UT-TEST-CASE-NAME \" in " + Constants.NEWLINE +
" - \" testsuite \" UT-TEST-SUITE-NAME " + Constants.NEWLINE +
Expand Down Expand Up @@ -348,7 +348,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
" PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" UT-PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" Add 1 to UT-NUMBER-UNMOCK-CALL " + Constants.NEWLINE +
" display \"Call not mocked in testcase \" UT-TEST-CASE-NAME \" in " + Constants.NEWLINE +
" - \" testsuite \" UT-TEST-SUITE-NAME " + Constants.NEWLINE +
Expand All @@ -368,7 +368,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" * ON EXCEPTION " + Constants.NEWLINE +
" * PERFORM 100-WELCOME " + Constants.NEWLINE +
" *END-CALL. " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . ";

Expand All @@ -395,7 +395,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
" PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" UT-PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" Add 1 to UT-NUMBER-UNMOCK-CALL " + Constants.NEWLINE +
" display \"Call not mocked in testcase \" UT-TEST-CASE-NAME \" in " + Constants.NEWLINE +
" - \" testsuite \" UT-TEST-SUITE-NAME " + Constants.NEWLINE +
Expand All @@ -414,7 +414,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" *CALL \"PROGRAM\" USING VALUE-1 " + Constants.NEWLINE +
" * ON EXCEPTION " + Constants.NEWLINE +
" * PERFORM 100-WELCOME. " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . ";

Expand All @@ -441,7 +441,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
" PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" UT-PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" Add 1 to UT-NUMBER-UNMOCK-CALL " + Constants.NEWLINE +
" display \"Call not mocked in testcase \" UT-TEST-CASE-NAME \" in " + Constants.NEWLINE +
" - \" testsuite \" UT-TEST-SUITE-NAME " + Constants.NEWLINE +
Expand All @@ -460,7 +460,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" *CALL \"PROGRAM\" USING VALUE-1 " + Constants.NEWLINE +
" * ON EXCEPTION " + Constants.NEWLINE +
" * DISPLAY \"HELLO WORLD\". " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . ";

Expand All @@ -487,7 +487,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
" PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" UT-PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" Add 1 to UT-NUMBER-UNMOCK-CALL " + Constants.NEWLINE +
" display \"Call not mocked in testcase \" UT-TEST-CASE-NAME \" in " + Constants.NEWLINE +
" - \" testsuite \" UT-TEST-SUITE-NAME " + Constants.NEWLINE +
Expand All @@ -510,7 +510,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" * DISPLAY \"HELLO WORLD\" " + Constants.NEWLINE +
" * END-CALL " + Constants.NEWLINE +
" *END-CALL " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" DISPLAY \"NO COMMENTS\" " + Constants.NEWLINE;

Expand All @@ -537,7 +537,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
" PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" UT-PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" Add 1 to UT-NUMBER-UNMOCK-CALL " + Constants.NEWLINE +
" display \"Call not mocked in testcase \" UT-TEST-CASE-NAME \" in " + Constants.NEWLINE +
" - \" testsuite \" UT-TEST-SUITE-NAME " + Constants.NEWLINE +
Expand All @@ -555,12 +555,12 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" " + Constants.NEWLINE +
" *CALL \"PROGRAM\" USING DATA-1 ON EXCEPTION " + Constants.NEWLINE +
" * DISPLAY \"ERROR\". " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" *CALL \"PROGRAM\" USING DATA-1 ON EXCEPTION " + Constants.NEWLINE +
" * DISPLAY \"ERROR\". " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE;

Expand Down Expand Up @@ -598,7 +598,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
" PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" UT-PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
Expand All @@ -611,7 +611,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" " + Constants.NEWLINE +
" 100-PARA. " + Constants.NEWLINE +
" * CALL 'PROG'. " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE;
private String expected8 =
Expand Down Expand Up @@ -653,7 +653,7 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
" PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" UT-PROCESS-UNMOCK-CALL. " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" " + Constants.NEWLINE +
Expand Down Expand Up @@ -683,12 +683,12 @@ public void it_inserts_code_correctly_when_there_are_some_unmock_calls_and_confi
" ALSO \"para with unmock call\" " + Constants.NEWLINE +
" PERFORM UT-1-1-1-MOCK " + Constants.NEWLINE +
" WHEN OTHER " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" END-EVALUATE " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE +
" * CALL 'PROG2'. " + Constants.NEWLINE +
" PERFORM PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" PERFORM UT-PROCESS-UNMOCK-CALL " + Constants.NEWLINE +
" CONTINUE " + Constants.NEWLINE +
" . " + Constants.NEWLINE;
}
Loading

0 comments on commit 55f3a2c

Please sign in to comment.