111112113114115116117118119120121
Component c = mockComponent(); replay(); e.push(Location.class, l); e.push(Component.class, c); try { e.peekRequired(List.class); unreachable();
167168169170171172173174175176177
{ return null; } }; expect(env.push(EasyMock.eq(BeanEditContext.class), contextEq())).andReturn(ctxt); replay(); BeanEditor component = new BeanEditor(); component.inject(resources, overrides, source,env);
175176177178179180181182183184185
{ return null; } }; expect(env.push(eq(BeanEditContext.class), contextEq())).andReturn(ctxt); replay(); BeanEditor component = new BeanEditor(); component.inject(resources, overrides, source, env);
211212213214215216217218219220221
expect(env.peek(eq(BeanValidationContext.class))).andReturn(beanValidationContext); expect(env.pop(eq(BeanValidationContext.class))).andReturn(beanValidationContext); expect(env.push(eq(BeanValidationContext.class), isA(BeanValidationContext.class))).andReturn(beanValidationContext); expect(model.getBeanType()).andReturn(RegistrationData.class); BeanEditContext ctxt = new BeanEditContext() {
228229230231232233234235236237238
178179180181182183184185186187188
{ return null; } }; expect(env.push(eq(BeanEditContext.class), contextEq())).andReturn(ctxt); expect(env.push(eq(BeanValidationContext.class), isA(BeanValidationContext.class))) .andReturn(beanValidationContext); replay();
179180181182183184185186187188189
return null; } }; expect(env.push(eq(BeanEditContext.class), contextEq())).andReturn(ctxt); expect(env.push(eq(BeanValidationContext.class), isA(BeanValidationContext.class))) .andReturn(beanValidationContext); replay(); BeanEditor component = new BeanEditor();
213214215216217218219220221222223
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() {
230231232233234235236237238239240
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));