New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule examples doesn't work in Kotlin #219

FireZenk opened this Issue Jun 12, 2018 · 1 comment


None yet
3 participants

FireZenk commented Jun 12, 2018

As specified, the way to define rules in our tests is:

public BaristaRule<MyActivity> baristaRule = BaristaRule.create(MyActivity.class);

But translated to Kotlin, we'll get:

var baristaRule = BaristaRule.create(

This will throw an exception like: The @Rule 'baristaRule' must be public

The way to correctly define the Rule in Kotlin is:

var baristaRule = BaristaRule.create(

So, maybe will be good to add this divergence somewhere


This comment has been minimized.


rocboronat commented Jun 16, 2018

#221 is a proposal to fix this issue 🎉 🍌

@rocboronat rocboronat added the wip label Jun 16, 2018

@Sloy Sloy closed this Jun 28, 2018

@rocboronat rocboronat removed the wip label Jun 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment