com.bitmechanic.maxq
Class Validator

java.lang.Object
  extended by com.bitmechanic.maxq.Validator

public class Validator
extends java.lang.Object

The class that does variuos validations on the requests and responses. This class is tied to the driver class, com.bitmechanic.maxq.HttpTestCase.

Author:
Hari

Constructor Summary
Validator()
           
 
Method Summary
static void validateRequest(HttpTestCase test, org.apache.commons.httpclient.HttpMethod httpMethod, java.lang.String method, java.lang.String url, java.lang.Object[] params)
          Validate the request based on the previous response.
static void validateResponse(HttpTestCase test, org.apache.commons.httpclient.HttpMethod httpMethod, java.lang.String url, java.lang.Object[] params)
          Validate the response after the method has been executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

public Validator()
Method Detail

validateResponse

public static void validateResponse(HttpTestCase test,
                                    org.apache.commons.httpclient.HttpMethod httpMethod,
                                    java.lang.String url,
                                    java.lang.Object[] params)
Validate the response after the method has been executed. params could be null.


validateRequest

public static void validateRequest(HttpTestCase test,
                                   org.apache.commons.httpclient.HttpMethod httpMethod,
                                   java.lang.String method,
                                   java.lang.String url,
                                   java.lang.Object[] params)
Validate the request based on the previous response. method is either "get" or "post". httpMethod and params could be null.