@@ -94,19 +94,19 @@ def test_case_2_single_xpath_rule_changed
9494 # hence they might appear as removed
9595
9696 # project "apex-link" has 2 errors, since we only executed java rules, 2 errors are removed
97- assert_equal ( 2 , @summary [ :errors ] [ :removed ] , 'found removed errors' )
98- assert_equal ( 0 , @summary [ :errors ] [ :changed ] , 'found changed errors' )
97+ # project "checkstyle" has 5 errors removed and 16 errors changed
98+ # project "openjdk-11" has 1 error changed
99+ # project "spring-framework" has 1 error removed
100+ assert_equal ( 8 , @summary [ :errors ] [ :removed ] , 'found removed errors' )
101+ assert_equal ( 17 , @summary [ :errors ] [ :changed ] , 'found changed errors' )
99102 assert_equal ( 0 , @summary [ :errors ] [ :new ] , 'found new errors' )
100103 assert_equal ( 0 , @summary [ :configerrors ] [ :changed ] , 'found changed configerrors' )
101104 assert_equal ( 0 , @summary [ :configerrors ] [ :new ] , 'found new configerrors' )
102- # Only the rule AvoidMessageDigestField and all other rules from bestpractices have been executed, so the
103- # configerrors about LoosePackageCoupling are gone, one for each project
104- # we now have 7 projects in total (4 java, 3 apex)
105- assert_equal ( 7 , @summary [ :configerrors ] [ :removed ] , 'found removed configerrors' )
105+ assert_equal ( 0 , @summary [ :configerrors ] [ :removed ] , 'found removed configerrors' )
106106
107107 assert_equal ( "This changeset changes 0 violations,\n " \
108108 "introduces 0 new violations, 0 new errors and 0 new configuration errors,\n " \
109- 'removes 22 violations, 2 errors and 7 configuration errors.' ,
109+ 'removes 22 violations, 8 errors and 0 configuration errors.' ,
110110 create_summary_message )
111111
112112 assert_file_equals ( "#{ PATCHES_PATH } /expected_patch_config_2.xml" , 'target/reports/diff/patch_config.xml' )
0 commit comments