Пример #1
0
 @Test
 public void shouldSuccessfullyAuthIfRequestContainsActivitiUserAndPassword() {
   when(authentication.getName()).thenReturn("activiti_username");
   when(authentication.getCredentials()).thenReturn("activiti_password");
   assertEquals(
       ActivitiRestAuthProviderFixtures.getActivitiAuthInfo(),
       provider.authenticate(authentication));
 }
Пример #2
0
 @Test
 public void shouldSuccessfullyAuthIfRequestContainsGeneralUserAndPassword() {
   assertEquals(
       ActivitiRestAuthProviderFixtures.getGeneralAuthInfo(),
       provider.authenticate(authentication));
 }