pavlospt
01/22/2019, 3:19 PMfactory
to return a Long
for example. I am trying to mock this in tests, but I am not sure what the proper syntax is:
Previously:
declare {
module("module_name") {
factory(name = "factory_name", override = true) {
longValue
}
}
}
Now I see that I need to use declareMock
, on which I am not sure how to stub the returned value.