> +/**
> + * Unit tests for the {@link AuthenticationFilter} class.
> + * 
> + * @author Sergi Castro
> + * @author Ignasi Barrera
> + */
> +@Test(groups = "unit", testName = "AuthenticationFilterTest")
> +public class AuthenticationFilterTest {
> +
> +   @Test(expectedExceptions = NullPointerException.class, 
> expectedExceptionsMessageRegExp = "credential supplier cannot be null")
> +   public void testFilterWithoutCredentials() {
> +      new AuthenticationFilter(null);
> +   }
> +
> +   public void testFilterWithCredentials() {
> +      HttpRequest request = 
> HttpRequest.builder().method("GET").endpoint("htto://localhost/foo").build();

"http"?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9166780

Reply via email to