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

customizeProperty의 TypedPropertySelector 사용하지 못하는 버그 #1097

Open
sunwon12 opened this issue Nov 20, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@sunwon12
Copy link

Describe the bug

Describe your issue here.

Your environment

  • 1.1.3 of Fixture Monkey
  • 17 of Java/Kotlin

Steps to reproduce

customizeProperty에서 TypedPropertySelector을 써야 하는데 TypedPropertySelector을 쓸 수가 없네요.
customizeProperty를 써서 필드값을 설정하는 건 권장되지 않는 방식인가요?

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

@API(
    since = "0.4.0",
    status = Status.MAINTAINED
)
public interface ArbitraryBuilder<T> {
    ...
   ...
    @API(
        since = "1.0.9",
        status = Status.MAINTAINED
    )
    <U> ArbitraryBuilder<T> customizeProperty(TypedPropertySelector<U> var1, Function<CombinableArbitrary<? extends U>, CombinableArbitrary<? extends U>> var2);
}
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.navercorp.fixturemonkey.api.expression;

import com.navercorp.fixturemonkey.api.property.PropertySelector;
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;

@API(
    since = "1.0.9",
    status = Status.EXPERIMENTAL
)
public interface TypedPropertySelector<T> extends PropertySelector {
}

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

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

@sunwon12 님 안녕하세요.

사용할 수 없다는 게 혹시 어떤 이야기이신 걸까요??
제가 이해하기로는 TypedPropertySelector의 구현체를 못 찾는 걸로 이해했는데 맞을까요?

TypedPropertySelector를 사용할 수 있는 방법에는 두 정적 메소드 typedRoot()typedString(String) 이 있습니다.
setExp와 동일한 사용 방법은 다음 버전에서 제공할 예정입니다.

감사합니다.

@sunwon12
Copy link
Author

답변 감사합니다!!

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