Code example for ArrayDeque

Methods: iterator

0
import com.espertech.esper.support.event.EventFactoryHelper; 
import junit.framework.TestCase; 
 
import java.util.ArrayDeque; 
import java.util.Iterator; 
import java.util.Map; 
 
public class TestTimeWindowIterator extends TestCase
{ 
    private Map<String, EventBean> events;
 
    public void setUp() 
    { 
        events = EventFactoryHelper.makeEventMap(new String[] {"a", "b", "c", "d", "e", "f", "g"});
    } 
 
    public void testEmpty() 
    { 
        ArrayDeque<TimeWindowPair> testWindow = new ArrayDeque<TimeWindowPair>();
        Iterator<EventBean> it = new TimeWindowIterator(testWindow);
        EPAssertionUtil.assertEqualsExactOrder(null, it);
    } 
 
    public void testOneElement()