Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
pethers authored and KengoTODA committed Sep 17, 2020
1 parent f296fbb commit feb865b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class FindbugsRulesDefinition implements RulesDefinition {

public static final String REPOSITORY_KEY = "findbugs";
public static final String REPOSITORY_NAME = "FindBugs";
public static final int RULE_COUNT = 442;
public static final int RULE_COUNT = 444;
public static final int DEACTIVED_RULE_COUNT = 6;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void shouldImportCategories() {
RulesProfile profile = importer.importProfile(new InputStreamReader(input), ValidationMessages.create());
List<ActiveRule> results = profile.getActiveRules();

assertThat(results).hasSize(150);
assertThat(results).hasSize(151);
assertThat(profile.getActiveRule(FindbugsRulesDefinition.REPOSITORY_KEY, "BC_IMPOSSIBLE_DOWNCAST")).isNotNull();
}

Expand Down Expand Up @@ -148,7 +148,7 @@ public void testImportingXmlFileWithUnknownCategory() {
RulesProfile profile = importer.importProfile(new InputStreamReader(uncorrectFindbugsXml), messages);
List<ActiveRule> results = profile.getActiveRules();

assertThat(results).hasSize(150);
assertThat(results).hasSize(151);
assertThat(messages.getErrors()).isEmpty();
assertThat(messages.getWarnings()).hasSize(1);
}
Expand Down

0 comments on commit feb865b

Please sign in to comment.