Skip to content

Conversation

@IlyaMuravjov
Copy link
Collaborator

@IlyaMuravjov IlyaMuravjov commented Jul 25, 2023

Description

Use introduced defaultFuzzedValue() instead of nullFuzzedValue() in FieldValueProvider to avoid using null as default for primitive types.

How to test

Manual tests

In OrderService class in spring-boot-tetsing project replace public Order getOrderById(Long id) with public Order getOrderById(long id) and generate integration tests.

There should be no IllegalArgumentException exceptions about null being passed to primitive accepting method in engine process logs.

Self-check list

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.
@IlyaMuravjov IlyaMuravjov added comp-fuzzing Issue is related to the fuzzing lang-java Issue is related to Java support ctg-bug-fix PR is fixing a bug labels Jul 25, 2023
@IlyaMuravjov IlyaMuravjov requested a review from Markoutte July 25, 2023 15:25
@IlyaMuravjov IlyaMuravjov marked this pull request as ready for review July 25, 2023 19:53
@IlyaMuravjov IlyaMuravjov merged commit 9f47eed into main Jul 26, 2023
@IlyaMuravjov IlyaMuravjov deleted the ilya_m/default_fuzzed_value branch July 26, 2023 13:29
@alisevych alisevych added this to the Spring Phase 4 milestone Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-fuzzing Issue is related to the fuzzing ctg-bug-fix PR is fixing a bug lang-java Issue is related to Java support

4 participants