Coder Social home page Coder Social logo

Comments (9)

oleksiyp avatar oleksiyp commented on May 21, 2024 1

Gateway API should be okay if you do it once. Check #23

from mockk.

oleksiyp avatar oleksiyp commented on May 21, 2024

This is to be added. I was thinking about use cases before and it seems for me pretty weird. For plugins/extensions and less "user-facing" things there is direct Gateway API that can be used.

from mockk.

a1flecke avatar a1flecke commented on May 21, 2024

@oleksiyp Thanks.

from mockk.

oleksiyp avatar oleksiyp commented on May 21, 2024

I think I can easily add something alike classMockk, as your case is not extension or plugin. #23 was exactly about JUnit extension

from mockk.

oleksiyp avatar oleksiyp commented on May 21, 2024

@a1flecke please check http://mockk.io/#class-mock and close ticket if it fulfills your request. Vesrion 1.7.8

from mockk.

a1flecke avatar a1flecke commented on May 21, 2024

from mockk.

oleksiyp avatar oleksiyp commented on May 21, 2024

Hm, looks something is going wrong, but I don't understand why you require calling "reset".

It is not "reset the world" actually.

This reset is rather local for "every" and "verify" constructs. It is resetting state machine that controls recording state(i.e. one when calls are recorded for verification/stubbing) vs normal state(when it is just called). It is in public API because useful to be called for example before tests via some testing framework extensions to isolate tests.

Have you checked clearMocks function? Why is it not fitting your needs?

from mockk.

a1flecke avatar a1flecke commented on May 21, 2024

@oleksiyp

Have you checked clearMocks function? Why is it not fitting your needs?

I must have missed this. Switched to using this. Thanks.

from mockk.

oleksiyp avatar oleksiyp commented on May 21, 2024

Seems main issue was fixed

from mockk.

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.