Code example for Activity

0
 
    private Spinner spinner;
 
    @Before 
    public void beforeTests() { 
        spinner = new Spinner(new Activity());
    } 
 
    @Test 
    public void testPrompt() { 
        spinner.setPrompt("foo");
 
        assertThat(spinner.getPrompt().toString()).isEqualTo("foo");
    } 
}