Skip to content

Commit

Permalink
Fix node regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
seongahjo committed Jul 19, 2024
1 parent 81bea80 commit 32b80ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public void clear() {

@Override
public boolean fixed() {
if (combinableArbitraryList.isEmpty()) {
return false;
}

return combinableArbitraryList.stream()
.allMatch(CombinableArbitrary::fixed);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public T combined() {
return arbitrary.getValue()
.filter(VALIDATION_ANNOTATION_FILTERING_COUNT, this.validateFilter(validOnly))
.combined();
} catch (ContainerSizeFilterMissException ex) {
} catch (ContainerSizeFilterMissException | RetryableFilterMissException ex) {
lastException = ex;
objectTree.clear();
} catch (FixedValueFilterMissException | RetryableFilterMissException ex) {
} catch (FixedValueFilterMissException ex) {
lastException = ex;
} finally {
arbitrary.clear();
Expand All @@ -102,10 +102,10 @@ public Object rawValue() {
return arbitrary.getValue()
.filter(VALIDATION_ANNOTATION_FILTERING_COUNT, this.validateFilter(validOnly))
.rawValue();
} catch (ContainerSizeFilterMissException ex) {
} catch (ContainerSizeFilterMissException | RetryableFilterMissException ex) {
lastException = ex;
objectTree.clear();
} catch (FixedValueFilterMissException | RetryableFilterMissException ex) {
} catch (FixedValueFilterMissException ex) {
lastException = ex;
} finally {
arbitrary.clear();
Expand Down

0 comments on commit 32b80ab

Please sign in to comment.