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.7.0 to 4.8.0 #3201

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 14, 2024

Bumps org.instancio:instancio-junit from 4.7.0 to 4.8.0.

Release notes

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

4.8.0

What's Changed

Breaking changes to experimental APIs

  • Renamed the Cartesian product creation method from list() to create()
Instancio.ofCartesianProduct(Class)
    .create(); // instead of list()

New Features

  • New top-level API withUnique(TargetSelector) for generating unique values for a given selector
List<Customer> customers = Instancio.ofList(Customer.class)
    .size(100)
    .withUnique(field(Customer::getId))
    .create();
  • New top-level as(Function) API for applying a Function to the result This is syntactic sugar that can be used, for example, to convert the result to JSON.

Sample usage:

String json = Instancio.of(Person.class).as(json());
// where json() is a user-defined function
static <T> Function<T, String> json() {
return result -> new ObjectMapper()
.writerWithDefaultPrettyPrinter()
.writeValueAsString(result);
}

  • New setting Keys.STRING_CASE for specifying the case of generated strings (upper, lower, mixed):
Comment comment = Instancio.of(Comment.class)
    .withSetting(Keys.STRING_CASE, StringCase.MIXED)
    .create();

or globally using instancio.properties:

</tr></table> 

... (truncated)

Commits
  • 3739196 [maven-release-plugin] prepare release instancio-parent-4.8.0
  • 60d010c Deprecate the experimental instancio-quickcheck module
  • 77b9c26 New top-level as(Function) API (#1048)
  • 028a1a9 Bump org.apache.maven.plugins:maven-checkstyle-plugin
  • 27529c7 Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.3 to 3.7.0
  • 5aee115 Bump org.sonarsource.scanner.maven:sonar-maven-plugin
  • 503010c New setting Keys.STRING_CASE (#1051)
  • 115ecaf Additional assign() tests
  • 8dac66c Improvements to handling sealed abstract types
  • e89e793 Bump com.google.guava:guava from 33.2.0-jre to 33.2.1-jre
  • 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)

Bumps [org.instancio:instancio-junit](https://github.com/instancio/instancio) from 4.7.0 to 4.8.0.
- [Release notes](https://github.com/instancio/instancio/releases)
- [Commits](instancio/instancio@instancio-parent-4.7.0...instancio-parent-4.8.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>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 14, 2024
@Sheikah45 Sheikah45 merged commit 3deeb92 into develop Jun 14, 2024
3 checks passed
@Sheikah45 Sheikah45 deleted the dependabot/gradle/org.instancio-instancio-junit-4.8.0 branch June 14, 2024 20:58
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.

None yet

1 participant