mauriciotogneri / green-coffee

Green Coffee
MIT License
231 stars 21 forks source link

Is it possible to pass a objects into the steps like ActivityTestRule or WireMockRule? #12

Closed chris-gunawardena closed 7 years ago

chris-gunawardena commented 7 years ago

We have steps that require different mocks and at the moment not sure how to access @Rule objects declared in the main test file. Same goes for context, is there away to access this from the steps definitions?

chris-gunawardena commented 7 years ago

Just figured it out. I'm passing it as an param to the constructor of the steps class.

mauriciotogneri commented 7 years ago

I'm glad that you are finding the library helpful. Don't hesitate to tell me if you find any issue or you want a specific functionality.