Example usage for org.apache.http.impl.auth NTLMScheme NTLMScheme

List of usage examples for org.apache.http.impl.auth NTLMScheme NTLMScheme

Introduction

In this page you can find the example usage for org.apache.http.impl.auth NTLMScheme NTLMScheme.

Prototype

public NTLMScheme() 

Source Link

Usage

From source file:de.undercouch.gradle.tasks.download.AuthenticationTest.java

/**
 * Make sure the plugin rejects an invalid authentication scheme if
 * username and password are set/*from  ww w  . java 2 s.  c  o m*/
 * @throws Exception if anything goes wrong
 */
@Test(expected = TaskExecutionException.class)
public void invalidAuthSchemeWithUserAndPass() throws Exception {
    Download t = makeProjectAndTask();
    t.src(makeSrc(AUTHENTICATE));
    File dst = folder.newFile();
    t.dest(dst);
    t.username(USERNAME);
    t.password(PASSWORD);
    t.authScheme(new NTLMScheme());
    t.execute();
}