Giter VIP home page Giter VIP logo

Comments (5)

esfomeado avatar esfomeado commented on June 28, 2024 1

@seongahjo Sorry you are right but I have a new bug on 1.0.10 where in some scenarios that value that is set is different from the one provided. I will try to create a replication.

from fixture-monkey.

esfomeado avatar esfomeado commented on June 28, 2024 1

I was finally able to reproduce the issue. You can check the same reproduction.

https://github.com/esfomeado/fixture-monkey-bug/blob/master/src/test/java/com/example/bug/FixtureMonkeyTest.java#L136

What happens is that Fixture Monkey generates objects again if they are of the same time.

from fixture-monkey.

seongahjo avatar seongahjo commented on June 28, 2024 1

@esfomeado
Thank you for reproducing the issue!
It is fixed in 1.0.11. Please check it out.

from fixture-monkey.

esfomeado avatar esfomeado commented on June 28, 2024 1

Fixed. Thanks

from fixture-monkey.

seongahjo avatar seongahjo commented on June 28, 2024

@esfomeado
Is it work in 1.0.9? I had a same issue in 1.0.9. Is an option missing from the test?
It is set as null because Fixture Monkey does not know the implementation of abstract class Condition.
So, it can not create an implementation of Condition.

There are two solutions.

First solution

Add the interfaceImplements option.
interfaceImplements(Condition.class, List.of(ValueCondition.class))

Second solution

Use setJust.
set("conditions", Values.just(List.of(condition)))

I think you can go one of two ways.

from fixture-monkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.