Skip to content
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

Checking for emptiness #4

Open
jossshii opened this issue May 31, 2018 · 1 comment
Open

Checking for emptiness #4

jossshii opened this issue May 31, 2018 · 1 comment

Comments

@jossshii
Copy link

Hi, how can I check if the user has selected an option? I want to make this field mandatory on an alert dialog and throw a message if the user has not selected any option.
Thank you

@srodrigo
Copy link
Owner

srodrigo commented Jun 3, 2018

Hi,

It should be possible using HintAdapter#getHintPosition. I think this test matches your use case.

Assert.assertEquals(hintAdapter.getHintPosition(), spinner.getSelectedItemPosition());

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants