-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using the expression with size(... into ..., ...), the error message appears:
No matching results for given container expression.
This issue does not occur in version 1.1.14 of Fixture Monkey, but it does occur in 1.1.15.
Your environment
- version of Fixture Monkey: 1.1.15 (works fine in 1.1.14)
- version of Java: 21
- version of Kotlin: 2.1.21
Steps to reproduce
FIXTURE.giveMeKotlinBuilder<SampleParentDto>()
.size(SampleParentDto::sections, 2)
.size(SampleParentDto::sections[0] into SampleParentDto.Section::items, 3)
.size(SampleParentDto::sections[1] into SampleParentDto.Section::items, 1)
.sample()Running the above code with Fixture Monkey 1.1.15 throws the error.
Expected behaviour
The builder should correctly apply the size(... into ..., ...) constraints and generate an object without errors, just as it does in version 1.1.14.
Actual behaviour
In version 1.1.15, the code fails with:
No matching results for given container expression.
Chanwon-Seo
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working