protected final void train_getCount(EventContext context, int count) {
   expect(context.getCount()).andReturn(count).atLeastOnce();
 }
示例#2
0
 /** we add a param in url (true/false) to activate or not thekawwa2Grid's inplace parameter */
 @OnEvent(EventConstants.ACTIVATE)
 public void init(EventContext context) {
   if (context.getCount() > 0 && context.get(boolean.class, 0)) {
     inplace = true;
   }
 }
 protected final <T> void train_get(EventContext context, Class<T> type, int index, T value) {
   expect(context.get(type, index)).andReturn(value);
 }