Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a suggestion for minSize operator enhancement #598

Open
ByungjunYou opened this issue Mar 14, 2023 · 0 comments
Open

a suggestion for minSize operator enhancement #598

ByungjunYou opened this issue Mar 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ByungjunYou
Copy link
Contributor

Describe the feature you request

When setting a collection with fixture monkey operator minSize, then I expect it to be NOT null.

For example, it would be nice to have tearchers which is always NOT null in the below circumstance. The rational behind this is that if the size of a collection is greater than 0, the collection should not be null.

fun school(fixture: FixtureMonkey): ArbitraryBuilder<School> = 
  fixture.giveMeBuilder(School::class.java)
    .minSize("teachers", 1)
data class School() {
  val teachers: List<Teacher>
}

If the feature request is approved, would you be willing to submit a PR?

Yes

@ByungjunYou ByungjunYou added the enhancement New feature or request label Mar 14, 2023
@ByungjunYou ByungjunYou changed the title minSize operator a suggestion for minSize operator enhancement Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant