Skip to content

Commit

Permalink
feat: CategoryIgnore config incremental update
Browse files Browse the repository at this point in the history
  • Loading branch information
wildeslam committed Jan 17, 2024
1 parent a5c2ffe commit 3431d9c
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import javax.annotation.Resource;
import java.util.List;
import java.util.Set;

/**
* @author wildeslam.
Expand All @@ -27,10 +26,6 @@
@Component
public class ComparisonIgnoreCategoryConfigurableHandler
extends AbstractComparisonConfigurableHandler<ComparisonIgnoreCategoryConfiguration> {

private static final Set<String> CATEGORIES =
MockCategoryType.DEFAULTS.stream().map(MockCategoryType::getName)
.collect(java.util.stream.Collectors.toSet());
@Resource
FSInterfaceRepository fsInterfaceRepository;
@Resource
Expand Down Expand Up @@ -67,9 +62,6 @@ private void checkBeforeModify(ComparisonIgnoreCategoryConfiguration configurati
if (category == null) {
return;
}
if (!CATEGORIES.contains(category.getOperationType())) {
throw new IllegalArgumentException("Invalid category: " + category);
}
if (MockCategoryType.create(category.getOperationType()).isEntryPoint()) {
throw new IllegalArgumentException("Cannot ignore entrypoint category: " + category);
}
Expand Down

0 comments on commit 3431d9c

Please sign in to comment.