1 7 package com.inversoft.verge.mvc.test; 8 9 10 import com.inversoft.util.typeconverter.TypeConversionException; 11 import com.inversoft.verge.mvc.MVCException; 12 import com.inversoft.verge.mvc.MVCRequest; 13 import com.inversoft.verge.mvc.validator.ValidatorParser; 14 import com.inversoft.verge.util.WebBeanProperty; 15 16 17 26 public class TestValidatorParser implements ValidatorParser { 27 28 public long called; 29 30 32 public long getCalled() { 33 return called; 34 } 35 36 38 public void setCalled(long called) { 39 this.called = called; 40 } 41 42 43 public void preExecute(MVCRequest mvcRequest) throws MVCException { 44 } 45 46 public void execute(MVCRequest mvcRequest) throws MVCException { 47 called = System.currentTimeMillis(); 48 49 try { 50 Thread.sleep(10); 51 } catch (Exception e) { 52 assert false : "FATAL ERROR: " + e.toString(); 53 } 54 } 55 56 public void executeHandle(MVCRequest mvcRequest, TypeConversionException tce, 57 Object model, WebBeanProperty wbp) 58 throws MVCException { 59 } 60 } | Popular Tags |