Package co.stateful.mock
Mock of SDK.
This packages gives you an ability to use Sttc in
unit tests, without mocking frameworks. Just make an instance
of MkSttc class and work with it as if it was a normal
adapter of stateful.co:
public class FooTest {
@Test
public void worksWithCounter() {
Sttc sttc = new MkSttc();
new Foo(sttc.counters().get("my-counter")).doIt();
}
}- Since:
- 0.1
-
Class Summary Class Description MkSttc Mock.