Package com.wesabe.grendel.auth

Examples of com.wesabe.grendel.auth.Credentials


  public static class A_Set_Of_Credentials {
    private Credentials creds;
   
    @Before
    public void setup() throws Exception {
      this.creds = new Credentials("woo", "hah");
    }
View Full Code Here


      when(user.getKeySet()).thenReturn(keySet);
     
      this.userDAO = mock(UserDAO.class);
      when(userDAO.findById("woo")).thenReturn(user);
     
      this.creds = new Credentials("woo", "hah");
    }
View Full Code Here

      return "Basic bXJwZWVwZXJzOmhhcHB5";
    }
   
    @Test
    public void itReturnsASetOfCredentials() throws Exception {
      final Credentials creds = provider.getValue(context);
     
      assertThat(creds.getUsername()).isEqualTo("mrpeepers");
      assertThat(creds.getPassword()).isEqualTo("happy");
    }
View Full Code Here

TOP

Related Classes of com.wesabe.grendel.auth.Credentials

Copyright © 2018 www.massapicom. 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.