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

Bump org.instancio:instancio-junit from 4.5.1 to 4.6.0 #3170

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 13, 2024

Bumps org.instancio:instancio-junit from 4.5.1 to 4.6.0.

Release notes

Sourced from org.instancio:instancio-junit's releases.

4.6.0

What's Changed

New Features

New top-level API filter()

Thefilter() method can be used to filter generated values using a predicate. If the predicate evaluates to false for a given value, a new value will be generated. The new value will also be tested against the predicate, and so on.

Example 1: generate a list of even numbers
List<Integer> evenNumbers = Instancio.ofList(Integer.class)
    .filter(allInts(), (Integer i) -> i % 2 == 0)
    .create();
Example 2: generate a list of objects with unique string and numeric values
Set<?> generatedValues = new HashSet<>();
List<Person> persons = Instancio.ofList(Person.class)
.size(100)
.filter(all(allInts(), allLongs(), allStrings()), generatedValues::add)
.create();

Suport for temporal generator spec min() and max()

LocalDate maxDate = LocalDate.now().minusYears(18);
Person adult = Instancio.of(Person.class)
.generate(field(Person::getDateOfBirth), gen -> gen.temporal().localDate().max(maxDate))
.create();
// Sample output:
// Person[dateOfBirth=1984-01-26]


... (truncated)

Commits
  • 939899b [maven-release-plugin] prepare release instancio-parent-4.6.0
  • 6415ed8 Minor refactoring/cleanup
  • 6da48fc Fixed javadoc
  • 83ed056 Bump com.google.guava:guava from 33.1.0-jre to 33.2.0-jre
  • 31a3bd3 New top-level API filter()
  • e4eed8e Bug fix: setModel() with primitive selectors
  • 5276eee Bump com.github.siom79.japicmp:japicmp-maven-plugin
  • e4a140a Bump version.kotlin from 1.9.23 to 1.9.24
  • eab5675 Add logo images
  • a735381 Bump com.github.spotbugs:spotbugs-maven-plugin from 4.8.4.0 to 4.8.5.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 13, 2024
Bumps [org.instancio:instancio-junit](https://github.com/instancio/instancio) from 4.5.1 to 4.6.0.
- [Release notes](https://github.com/instancio/instancio/releases)
- [Commits](instancio/instancio@instancio-parent-4.5.1...instancio-parent-4.6.0)

---
updated-dependencies:
- dependency-name: org.instancio:instancio-junit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@Sheikah45 Sheikah45 force-pushed the dependabot/gradle/org.instancio-instancio-junit-4.6.0 branch from 9d6293d to 42c240d Compare May 18, 2024 01:15
@Sheikah45 Sheikah45 merged commit 9a79342 into develop May 25, 2024
3 checks passed
@Sheikah45 Sheikah45 deleted the dependabot/gradle/org.instancio-instancio-junit-4.6.0 branch May 25, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant