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));
8081828384858687888990
Environment e = new EnvironmentImpl(); Location l = mockLocation(); replay(); e.push(Location.class, l); assertSame(l, e.peekRequired(Location.class)); verify(); }
96979899100101102103104105106
Location l = mockLocation(); Component c = mockComponent(); replay(); e.push(Location.class, l); e.push(Component.class, c); try { e.peekRequired(List.class);
979899100101102103104105106107
Component c = mockComponent(); replay(); e.push(Location.class, l); e.push(Component.class, c); try { e.peekRequired(List.class); unreachable();
121122123124125126127128129130131
Environment e = new EnvironmentImpl(); Location l = mockLocation(); replay(); e.push(Location.class, l); e.pop(Location.class); try { e.peekRequired(Location.class);
174175176177178179180181182183184
{ return null; } }; expect(env.push(eq(BeanEditContext.class), contextEq())).andReturn(ctxt); expect(env.push(eq(BeanValidationContext.class), isA(BeanValidationContext.class))) .andReturn(null); replay();
176177178179180181182183184185186
} }; expect(env.push(eq(BeanEditContext.class), contextEq())).andReturn(ctxt); expect(env.push(eq(BeanValidationContext.class), isA(BeanValidationContext.class))) .andReturn(null); replay(); BeanEditor component = new BeanEditor();
210211212213214215216217218219220
train_getOverrideMessages(overrides, messages); expect(model.newInstance()).andReturn(data); expect(env.push(eq(BeanValidationContext.class), isA(BeanValidationContext.class))).andReturn(beanValidationContext); expect(model.getBeanType()).andReturn(RegistrationData.class); BeanEditContext ctxt = new BeanEditContext() {
227228229230231232233234235236237
{ return null; } }; expect(env.push(eq(BeanEditContext.class), contextEq())).andReturn(ctxt); replay(); BeanEditor component = new BeanEditor(); component.inject(resources, overrides, source, env);
167168169170171172173174175176177
{ return null; } }; expect(env.push(EasyMock.eq(BeanEditContext.class), contextEq())).andReturn(ctxt); replay(); BeanEditor component = new BeanEditor(); component.inject(resources, overrides, source, env);