Ejemplo n.º 1
0
 protected final void train_getCount(EventContext context, int count) {
   expect(context.getCount()).andReturn(count).atLeastOnce();
 }
Ejemplo n.º 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;
   }
 }
Ejemplo n.º 3
0
 protected final <T> void train_get(EventContext context, Class<T> type, int index, T value) {
   expect(context.get(type, index)).andReturn(value);
 }