1 5 package org.exoplatform.test.web.unit; 6 7 import org.exoplatform.test.web.ExoWebClient; 8 import com.meterware.httpunit.*; 9 15 public class CurrentResponseUnit extends WebUnit { 16 17 public CurrentResponseUnit(String name, String description) { 18 super(name, description) ; 19 } 20 21 public WebResponse execute(WebResponse previousResponse, WebTable block, 22 ExoWebClient client) throws Exception { 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 getActionDescription() { 31 return "This web unit do not thing, just return the previouse response"; 32 } 33 } | Popular Tags |