Comments (2)
@kdohyeon
Hello. Currently, object
inheriting a sealed class is not supported, as it is a constant that does not need to populate random properties.
There is an alternative way to generate it.
FixtureMonkey.builder()
.plugin(KotlinPlugin())
.pushAssignableTypeObjectPropertyGenerator<SealedClassA> { context ->
InterfaceObjectPropertyGenerator(listOf(SealedClassA.OBJECTA::class.java))
.generate(context)
}
.pushAssignableTypeArbitraryIntrospector<SealedClassA> {
ArbitraryIntrospectorResult(
CombinableArbitrary.from(SealedClassA.OBJECTA),
)
}
.build()
It will be supported in version 1.1.0.
Thank you.
from fixture-monkey.
Oh, thank you for the guide code.
It works well. π
from fixture-monkey.
Related Issues (20)
- When attempting to create an instance of a Kotlin class containing a Java reference type class property, the creation fails HOT 1
- Minor bugs on the newly added translated docs HOT 1
- Class changes when setting value HOT 3
- FieldReflectionArbitraryIntrospector μ¬μ©μ Getter, Setter μμ΄ Fixture μμ± μ§λ¬Έλ립λλ€. HOT 6
- I want fields to be injected with a Kotlin Duration type HOT 2
- Jqwik Usage Survey
- JakartaValidationPluginμ μ¬μ©νλ κ²½μ°μ, μ ν¨νμ§ μμ κ°μΌλ‘ 컀μ€ν°λ§μ΄μ§ ν μ μλμ? HOT 2
- 무쑰건 getX, setXλ‘ μ¬μ©ν΄μΌνλμ? HOT 1
- Call for first Fixture Monkey Meetup participants
- Implement InnerSpec Kotlin DSL HOT 6
- Jpa μ°κ΄κ΄κ³κ° μλ μν°ν°λ₯Ό μμ±νλ €λ©΄ μ΄λ»κ² νλ©΄λ κΉμ? (ν΄κ²°νμ΅λλ€.)
- Version 1.017 is not available on maven central HOT 1
- νκ΅μ΄ λ¬Έμμ μλͺ»λ λ§ν¬κ° μλ κ² κ°μ΅λλ€. HOT 1
- 1.0.17 λ²μ μμ SimpleValueJqwikPlugin μ¬μ©μ Set<Integer> μ μμκ°μ΄ μμ±λμ§ μμ΅λλ€. HOT 1
- setPostCondition stuck in infinite loop HOT 2
- Print seed if test fails in JUnit HOT 4
- μ€λ³΅λ κ°μ΄ νμ©νμ§ μλ νλμ κ³ μ ν κ°μ λ£λ λ°©λ²μ΄ μλμ§ κΆκΈν©λλ€. HOT 4
- kotlin Lambda ν¨μ μ¬μ©ν μ μλλ² HOT 3
- How can I set a 'yyyyMMdd' date value in a String field? HOT 3
- Optional κ°μ set ν λ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fixture-monkey.