@Test public void shouldSuccessfullyAuthIfRequestContainsActivitiUserAndPassword() { when(authentication.getName()).thenReturn("activiti_username"); when(authentication.getCredentials()).thenReturn("activiti_password"); assertEquals( ActivitiRestAuthProviderFixtures.getActivitiAuthInfo(), provider.authenticate(authentication)); }
@Test public void shouldSuccessfullyAuthIfRequestContainsGeneralUserAndPassword() { assertEquals( ActivitiRestAuthProviderFixtures.getGeneralAuthInfo(), provider.authenticate(authentication)); }