List of usage examples for org.apache.http.impl.auth NTLMScheme NTLMScheme
public NTLMScheme()
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(); }