KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > test > web > unit > CurrentResponseUnit


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.test.web.unit;
6
7 import org.exoplatform.test.web.ExoWebClient;
8 import com.meterware.httpunit.*;
9 /**
10  * May 21, 2004
11  * @author: Tuan Nguyen
12  * @email: tuan08@users.sourceforge.net
13  * @version: $Id: CurrentResponseUnit.java,v 1.1 2004/10/11 23:36:06 tuan08 Exp $
14  **/

15 public class CurrentResponseUnit extends WebUnit {
16
17   public CurrentResponseUnit(String JavaDoc name, String JavaDoc description) {
18     super(name, description) ;
19   }
20   
21   public WebResponse execute(WebResponse previousResponse, WebTable block,
22                                ExoWebClient client) throws Exception JavaDoc {
23     return previousResponse ;
24   }
25   
26   public void log(long executionTime , int contentLength, boolean error, boolean malformed) {
27     monitor_.log(0, contentLength, error, malformed) ;
28   }
29   
30   public String JavaDoc getActionDescription() {
31     return "This web unit do not thing, just return the previouse response";
32   }
33 }
Popular Tags