FAForever / downlords-faf-client

Official client for Forged Alliance Forever
https://faforever.com
MIT License
196 stars 121 forks source link

Bump org.instancio:instancio-junit from 4.7.0 to 4.8.0 #3201

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 3 months ago

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 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)