Example usage for org.apache.commons.httpclient ConnectMethod ConnectMethod

List of usage examples for org.apache.commons.httpclient ConnectMethod ConnectMethod

Introduction

In this page you can find the example usage for org.apache.commons.httpclient ConnectMethod ConnectMethod.

Prototype

public ConnectMethod() 

Source Link

Usage

From source file:com.intuit.tank.http.BaseRequestHandlerTest.java

/**
 * Run the void setHeaders(HttpMethod,HashMap<String,String>) method test.
 *
 * @throws Exception//from  www .  j a v a2 s . co  m
 *
 * @generatedBy CodePro at 12/16/14 3:57 PM
 */
@Test
public void testSetHeaders_1() throws Exception {
    HttpMethod method = new ConnectMethod();
    HashMap<String, String> headerInformation = new HashMap();

    BaseRequestHandler.setHeaders(method, headerInformation);

    // An unexpected exception was thrown in user code while executing this test:
    //    java.lang.ExceptionInInitializerError
}

From source file:com.intuit.tank.http.BaseRequestHandlerTest.java

/**
 * Run the void setHeaders(HttpMethod,HashMap<String,String>) method test.
 *
 * @throws Exception/*from  ww  w.j  a  v a2 s.  co m*/
 *
 * @generatedBy CodePro at 12/16/14 3:57 PM
 */
@Test
public void testSetHeaders_2() throws Exception {
    HttpMethod method = new ConnectMethod();
    HashMap<String, String> headerInformation = new HashMap();

    BaseRequestHandler.setHeaders(method, headerInformation);

    // An unexpected exception was thrown in user code while executing this test:
    //    java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.ConnectMethod
}