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

BigDemical에 대한 값 생성 오류 #1042

Open
sunwon12 opened this issue Sep 3, 2024 · 1 comment
Open

BigDemical에 대한 값 생성 오류 #1042

sunwon12 opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sunwon12
Copy link

sunwon12 commented Sep 3, 2024

Describe the bug

Describe your issue here.
오류:
image

설정:
image
image
image

보시다시피 fixtureMonkey에 대한 특별한 설정을 주지 않았습니다. 그런데 BigDemical이 값을 잘못 생성할 때도 있습니다.

Your environment

  • version of Fixture Monkey
  • version of Java/Kotlin

Steps to reproduce

Tell us how to reproduce this issue.
Or provide us an example repository to check the bug
It would be very helpful if you could tell us the seed of the given test, which is provided in fixture-monkey-junit-jupiter module

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

@sunwon12 sunwon12 added the bug Something isn't working label Sep 3, 2024
@seongahjo
Copy link
Contributor

@sunwon12
안녕하세요.

주신 에러메세지를 봤을 때는 BigDecimal 생성에 문제가 있는 게 아니라 데이터베이스에서 정해놓은 크기보다 더 큰 값이 생성되고 있어 문제가 되고 있는 것으로 보입니다.

아래와 같이 SimplevalueJqwikPlugin()을 추가하시는 걸 권장드립니다.

  FixtureMonkey.builder()
      .plugin(new SimpleValueJqwikPlugin())
      .build()

혹은 다음 옵션을 사용해서 BigDecimal 생성 범위를 제한하시는 방법도 있습니다. 참조 문서

감사합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants