KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > test > TestControllerParser


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

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 /**
16  * Test class
17  */

18 public class TestControllerParser implements ControllerParser {
19
20     public long called;
21
22     /**
23      */

24     public long getCalled() {
25         return called;
26     }
27
28     /**
29      */

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 JavaDoc e) {
43             assert false : "FATAL ERROR: " + e.toString();
44         }
45     }
46 }
47
Popular Tags