Search in sources :

Example 11 with EventCommand

use of org.robobinding.widget.EventCommand in project RoboBinding by RoboBinding.

the class OnItemSelectedAttributeTest method setUp.

@Before
public void setUp() {
    attribute = new OnItemSelectedAttribute();
    eventCommand = new EventCommand();
    adapter = new MockArrayAdapter(RuntimeEnvironment.application);
    view.setAdapter(adapter);
    indexToSelect = RandomValues.anyIndex(adapter.getCount());
}
Also used : EventCommand(org.robobinding.widget.EventCommand) Before(org.junit.Before)

Example 12 with EventCommand

use of org.robobinding.widget.EventCommand in project RoboBinding by RoboBinding.

the class OnCheckedChangeAttributeTest method setUp.

@Before
public void setUp() {
    attribute = new OnCheckedChangeAttribute();
    eventCommand = new EventCommand();
}
Also used : EventCommand(org.robobinding.widget.EventCommand) Before(org.junit.Before)

Example 13 with EventCommand

use of org.robobinding.widget.EventCommand in project RoboBinding by RoboBinding.

the class OnScrollStateChangedAttributeTest method setUp.

@Before
public void setUp() {
    attribute = new OnScrollStateChangedAttribute();
    eventCommand = new EventCommand();
}
Also used : EventCommand(org.robobinding.widget.EventCommand) Before(org.junit.Before)

Example 14 with EventCommand

use of org.robobinding.widget.EventCommand in project RoboBinding by RoboBinding.

the class OnClickAttributeTest method setUp.

@Before
public void setUp() {
    attribute = new OnClickAttribute();
    eventCommand = new EventCommand();
}
Also used : EventCommand(org.robobinding.widget.EventCommand) Before(org.junit.Before)

Example 15 with EventCommand

use of org.robobinding.widget.EventCommand in project RoboBinding by RoboBinding.

the class OnFocusAttributeTest method setUp.

@Before
public void setUp() {
    attribute = new OnFocusAttribute();
    eventCommand = new EventCommand();
}
Also used : EventCommand(org.robobinding.widget.EventCommand) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)17 EventCommand (org.robobinding.widget.EventCommand)17 SwipeRefreshLayout (android.support.v4.widget.SwipeRefreshLayout)1 EditText (android.widget.EditText)1 ListAdapter (android.widget.ListAdapter)1 SingleChoiceAdapter (org.robobinding.widget.abslistview.SingleChoiceAdapter)1