Package fitnesse.http

Examples of fitnesse.http.MockRequest.addHeader()


  }

  @Test
  public void invalidAuthorizationHeaderShouldProduceNullCredentials() throws Exception {
    MockRequest request = new MockRequest();
    request.addHeader("Authorization", "blah");
    NegotiateAuthenticator authenticator = new NegotiateAuthenticator(manager, properties);
    authenticator.negotiateCredentials(request);
    assertNull(request.getAuthorizationUsername());
    assertNull(request.getAuthorizationPassword());
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.