1 7 package com.inversoft.verge.mvc.test; 8 9 10 import com.inversoft.verge.mvc.MVCException; 11 import com.inversoft.verge.mvc.MVCRequest; 12 import com.inversoft.verge.mvc.controller.ControllerParser; 13 14 15 18 public class TestControllerParser implements ControllerParser { 19 20 public long called; 21 22 24 public long getCalled() { 25 return called; 26 } 27 28 30 public void setCalled(long called) { 31 this.called = called; 32 } 33 34 public void preExecute(MVCRequest mvcRequest) throws MVCException { 35 } 36 37 public void execute(MVCRequest mvcRequest) throws MVCException { 38 called = System.currentTimeMillis(); 39 40 try { 41 Thread.sleep(10); 42 } catch (Exception e) { 43 assert false : "FATAL ERROR: " + e.toString(); 44 } 45 } 46 } 47 | Popular Tags |