@@ -49,18 +49,20 @@ def test_case_1_single_java_rule_changed
49
49
# checkstyle: 195 violations
50
50
# spring-framework: 280 violations
51
51
# openjdk11: 29 violations
52
- # -> total = 504
53
- assert_equal ( 195 + 280 + 29 , @summary [ :violations ] [ :removed ] , 'found removed violations' )
52
+ # java-regression-tests: 1 violation
53
+ # -> total = 505
54
+ assert_equal ( 195 + 280 + 29 + 1 , @summary [ :violations ] [ :removed ] , 'found removed violations' )
54
55
55
56
# errors might have been caused in the baseline for other rules (only visible in the stacktrace)
56
57
# hence they might appear as removed
57
58
58
59
# project "apex-link" has 2 errors removed, since we only executed java rules
59
- # project "checkstyle" has 10 errors removed and 1 changed
60
- # project "openjdk-11" has 0 error removed or changed
61
- # project "spring-framework" has 1 error removed
60
+ # project "checkstyle" has 0 errors removed and 1 changed
61
+ # project "openjdk-11" has 0 errors removed or changed
62
+ # project "spring-framework" has 0 errors removed or changed
63
+ # project "java-regression-tests" has 0 errors removed or changed
62
64
# each project has 1 config error removed (LoosePackageCoupling dysfunctional): in total 7 config errors removed
63
- assert_equal ( 13 , @summary [ :errors ] [ :removed ] , 'found removed errors' )
65
+ assert_equal ( 2 , @summary [ :errors ] [ :removed ] , 'found removed errors' )
64
66
# The stack overflow exception might vary in the beginning/end of the stack frames shown
65
67
# This stack overflow error is from checkstyle's InputIndentationLongConcatenatedString.java
66
68
# instead of assert_equal(0, @summary[:errors][:changed], 'found changed errors')
@@ -73,7 +75,7 @@ def test_case_1_single_java_rule_changed
73
75
74
76
assert_equal ( "This changeset changes 0 violations,\n " \
75
77
"introduces 0 new violations, 0 new errors and 0 new configuration errors,\n " \
76
- 'removes 504 violations, 13 errors and 7 configuration errors.' ,
78
+ 'removes 505 violations, 2 errors and 7 configuration errors.' ,
77
79
create_summary_message )
78
80
79
81
assert_file_equals ( "#{ PATCHES_PATH } /expected_patch_config_1.xml" , 'target/reports/diff/patch_config.xml' )
@@ -99,11 +101,11 @@ def test_case_2_single_xpath_rule_changed
99
101
# hence they might appear as removed
100
102
101
103
# project "apex-link" has 2 errors removed, since we only executed java rules
102
- # project "checkstyle" has 5 errors removed and 1 errors changed
103
- # project "openjdk-11" has 0 error removed or changed
104
- # project "spring-framework" has 1 error removed
104
+ # project "checkstyle" has 0 errors removed and 1 errors changed
105
+ # project "openjdk-11" has 0 errors removed or changed
106
+ # project "spring-framework" has 0 errors removed or changed
105
107
# each project has 1 config error removed (LoosePackageCoupling dysfunctional): in total 7 config errors removed
106
- assert_equal ( 8 , @summary [ :errors ] [ :removed ] , 'found removed errors' )
108
+ assert_equal ( 2 , @summary [ :errors ] [ :removed ] , 'found removed errors' )
107
109
# The stack overflow exception might vary in the beginning/end of the stack frames shown
108
110
# This stack overflow error is from checkstyle's InputIndentationLongConcatenatedString.java
109
111
# instead of assert_equal(0, @summary[:errors][:changed], 'found changed errors')
@@ -116,7 +118,7 @@ def test_case_2_single_xpath_rule_changed
116
118
117
119
assert_equal ( "This changeset changes 0 violations,\n " \
118
120
"introduces 0 new violations, 0 new errors and 0 new configuration errors,\n " \
119
- 'removes 22 violations, 8 errors and 7 configuration errors.' ,
121
+ 'removes 22 violations, 2 errors and 7 configuration errors.' ,
120
122
create_summary_message )
121
123
122
124
assert_file_equals ( "#{ PATCHES_PATH } /expected_patch_config_2.xml" , 'target/reports/diff/patch_config.xml' )
0 commit comments