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

SimpleValueJqwikPlugin을 통한 JavaType에 대한 값 제한 #1142

Open
newkayak12 opened this issue Jan 12, 2025 · 1 comment
Open

SimpleValueJqwikPlugin을 통한 JavaType에 대한 값 제한 #1142

newkayak12 opened this issue Jan 12, 2025 · 1 comment
Labels
bug Something isn't working question Further information is requested
Milestone

Comments

@newkayak12
Copy link

newkayak12 commented Jan 12, 2025

fixtureMonkey, SimpleValueJqwikPlugin의 동작이 예상과 다름

Tell us what kind of problem you are having.

            FixtureMonkey fixtureMonkey = FixtureMonkey.builder().defaultNotNull(Boolean.TRUE)
                .plugin(new SimpleValueJqwikPlugin().minNumberValue(1L))
                .objectIntrospector(
                    new FailoverIntrospector(
                        List.of(
                            FieldReflectionArbitraryIntrospector.INSTANCE,
                            ConstructorPropertiesArbitraryIntrospector.INSTANCE
                        ),
                        Boolean.FALSE
                    )
                )
                .build();

와 같이 선언하고 Long longValue = fixtureMonkey.giveMeOne(Long.class)를 던지면 100번 테스트하면 100번 음수만 나오는데 혹시 제가 잘못 이해하고 있는 건가요?

@newkayak12 newkayak12 added the question Further information is requested label Jan 12, 2025
@seongahjo seongahjo added the bug Something isn't working label Jan 16, 2025
@seongahjo seongahjo added this to the 1.1.9 milestone Jan 16, 2025
@seongahjo
Copy link
Contributor

@newkayak12 님 안녕하세요.

올려주신 이슈는 버그로 확인됩니다. 해결한 후 공유드리겠습니다.

이슈를 올려주셔서 감사합니다!

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

No branches or pull requests

2 participants