Examples of listEvents()


Examples of org.candlepin.resource.EventResource.listEvents()

    @Test
    public void listevents() {
        when(ec.listAll()).thenReturn(null);
        EventResource er = new EventResource(ec, null,
            injector.getInstance(EventAdapter.class));
        assertNull(er.listEvents());

        List<Event> events = new ArrayList<Event>();
        events.add(getEvent());
        when(ec.listAll()).thenReturn(events);
        assertEquals(events, er.listEvents());
View Full Code Here

Examples of org.candlepin.resource.EventResource.listEvents()

        assertNull(er.listEvents());

        List<Event> events = new ArrayList<Event>();
        events.add(getEvent());
        when(ec.listAll()).thenReturn(events);
        assertEquals(events, er.listEvents());
    }

    protected Event getEvent() {
        Event e = new Event();
        e.setTarget(Event.Target.CONSUMER);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.