Search in sources :

Example 1 with EventAdapter

use of cl.smartcities.isci.transportinspector.adapters.dialogAdapters.EventAdapter in project androidApp by InspectorIncognito.

the class EventAdapterTest method setUp.

@Before
public void setUp() throws Exception {
    ArrayList<Event> events = new ArrayList<>();
    title = "507";
    // code = "GGWP00";
    code = "550e8400-e29b-41d4-a716-446655440000";
    event1 = new Event("1", "evento 1", "10:54", 0, 0);
    event2 = new Event("2", "evento 2", "00:00", 5, 0);
    event3 = new Event("3", "evento 3", "13:32", 0, 3);
    event4 = new Event("4", "evento 4", "07:23", 15, 3);
    events.add(event1);
    events.add(event2);
    events.add(event3);
    events.add(event4);
    mAdapter = spy(new EventAdapter(rule.getActivity(), code, new EventAdapter.EventClickedListener() {

        @Override
        public void positiveClick(Event event, EventAdapter.ResultListener innerListener) {
        }

        @Override
        public void negativeClick(Event event, EventAdapter.ResultListener innerListener) {
        }
    }, events, "Bus", false));
}
Also used : ArrayList(java.util.ArrayList) Event(cl.smartcities.isci.transportinspector.backend.Event) EventAdapter(cl.smartcities.isci.transportinspector.adapters.dialogAdapters.EventAdapter) Before(org.junit.Before)

Aggregations

EventAdapter (cl.smartcities.isci.transportinspector.adapters.dialogAdapters.EventAdapter)1 Event (cl.smartcities.isci.transportinspector.backend.Event)1 ArrayList (java.util.ArrayList)1 Before (org.junit.Before)1