void (final int errors, final int warnings, final String expected) { final String message = VcsBundle.message("before.commit.files.contain.code.smells.edit.them.confirm.text", 42, errors, warnings); assertTrue(message.contains(expected)); final String message2 = VcsBundle.message("before.commit.file.contains.code.smells.edit.them.confirm.text", "foo.java", errors, warnings); assertTrue(message2.contains(expected)); }