4950515253545556575859
RenderCommand element1 = mockRenderCommand(); RenderCommand element2 = mockRenderCommand(); getMocksControl().checkOrder(true); queue.push(element2); queue.push(element1); replay(); block.addToBody(element1);
5051525354555657585960
RenderCommand element2 = mockRenderCommand(); getMocksControl().checkOrder(true); queue.push(element2); queue.push(element1); replay(); block.addToBody(element1); block.addToBody(element2);
4445464748495051525354
PageElement element1 = mockPageElement(); PageElement element2 = mockPageElement(); getMocksControl().checkOrder(true); queue.push(element2); queue.push(element1); replay(); block.addToBody(element1);
4546474849505152535455
PageElement element2 = mockPageElement(); getMocksControl().checkOrder(true); queue.push(element2); queue.push(element1); replay(); block.addToBody(element1); block.addToBody(element2);
4849505152535455565758
4344454647484950515253
Runnable r1 = mockRunnable(); Runnable r2 = mockRunnable(); replay(); assertNull(e.push(Runnable.class, r1)); assertSame(r1, e.peek(Runnable.class)); assertSame(r1, e.push(Runnable.class, r2));
4748495051525354555657
assertNull(e.push(Runnable.class, r1)); assertSame(r1, e.peek(Runnable.class)); assertSame(r1, e.push(Runnable.class, r2)); assertSame(r2, e.peek(Runnable.class)); assertSame(r2, e.pop(Runnable.class)); assertSame(r1, e.pop(Runnable.class));
949596979899100101102103104
Environment e = new EnvironmentImpl(); Location l = mockLocation(); replay(); e.push(Location.class, l); assertSame(l, e.peekRequired(Location.class)); verify(); }
110111112113114115116117118119120
Location l = mockLocation(); Component c = mockComponent(); replay(); e.push(Location.class, l); e.push(Component.class, c); try { e.peekRequired(List.class);