ksch-workflows / backend

Spring Boot application which provides a REST API for web, desktop, and mobile clients
https://api.experimental-software.com
Apache License 2.0
0 stars 2 forks source link

build(deps): bump org.instancio:instancio-junit from 4.5.1 to 4.6.0 #136

Closed dependabot[bot] closed 5 months ago

dependabot[bot] commented 5 months ago

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 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)
sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud