Search in sources :

Example 6 with EventCommand

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

the class OnTimeChangedAttributeTest method setUp.

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

Example 7 with EventCommand

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

the class OnFocusLostAttributeTest method setUp.

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

Example 8 with EventCommand

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

the class OnLongClickAttributeTest method setUp.

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

Example 9 with EventCommand

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

the class OnRefreshAttributeTest method setUp.

@Before
public void setUp() throws Exception {
    view = new SwipeRefreshLayout(RuntimeEnvironment.application);
    attribute = new OnRefreshAttribute();
    eventCommand = new EventCommand();
}
Also used : EventCommand(org.robobinding.widget.EventCommand) SwipeRefreshLayout(android.support.v4.widget.SwipeRefreshLayout) Before(org.junit.Before)

Example 10 with EventCommand

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

the class OnItemClickAttributeTest method setUp.

@Before
public void setUp() {
    attribute = new OnItemClickAttribute();
    eventCommand = new EventCommand();
    ListAdapter arrayAdapter = new SingleChoiceAdapter(RuntimeEnvironment.application);
    view.setAdapter(arrayAdapter);
    indexToClick = RandomValues.anyIndex(arrayAdapter.getCount());
}
Also used : SingleChoiceAdapter(org.robobinding.widget.abslistview.SingleChoiceAdapter) EventCommand(org.robobinding.widget.EventCommand) ListAdapter(android.widget.ListAdapter) 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