use of org.springframework.security.oauth2.provider.ClientDetails in project ORCID-Source by ORCID.
the class ClientDetailsManagerTest method testLoadClientByClientId.
@Test
@Rollback
@Transactional
public void testLoadClientByClientId() throws Exception {
List<ClientDetailsEntity> all = clientDetailsManager.getAll();
assertEquals(9, all.size());
for (ClientDetailsEntity clientDetailsEntity : all) {
ClientDetails clientDetails = clientDetailsManager.loadClientByClientId(clientDetailsEntity.getId());
assertNotNull(clientDetails);
if (!"APP-5555555555555555".equals(clientDetailsEntity.getId()) && !"APP-5555555555555556".equals(clientDetailsEntity.getId()) && !"APP-6666666666666666".equals(clientDetailsEntity.getId())) {
checkClientDetails(clientDetails);
}
}
}
Aggregations