Removed trailing whitespace

This commit is contained in:
Jonas Bonér 2010-05-21 20:08:49 +02:00
parent 7894d15298
commit ef452881f0
134 changed files with 939 additions and 940 deletions

View file

@ -32,7 +32,7 @@ object BasicAuthenticatorSpec {
class BasicAuthenticatorSpec extends junit.framework.TestCase
with Suite with MockitoSugar with MustMatchers {
import BasicAuthenticatorSpec._
val authenticator = actorOf[BasicAuthenticator]
authenticator.start
@ -57,13 +57,13 @@ class BasicAuthenticatorSpec extends junit.framework.TestCase
val result: AnyRef = (authenticator !! (Authenticate(req, List("chef")), 10000)).get
result must be(OK)
// the authenticator must have set a security context
// the authenticator must have set a security context
verify(req).setSecurityContext(any[SecurityContext])
}
@Test def testUnauthorized = {
val req = mock[ContainerRequest]
// fake a basic auth header -> this will authenticate the user
when(req.getHeaderValue("Authorization")).thenReturn("Basic " + new String(Base64.encode("foo:bar")))
when(req.isUserInRole("chef")).thenReturn(false) // this will deny access