|
|
|
@ -33,6 +33,7 @@ import org.mitre.oauth2.service.SystemScopeService;
|
|
|
|
|
import org.mitre.openid.connect.model.WhitelistedSite;
|
|
|
|
|
import org.mitre.openid.connect.service.ApprovedSiteService;
|
|
|
|
|
import org.mitre.openid.connect.service.BlacklistedSiteService;
|
|
|
|
|
import org.mitre.openid.connect.service.StatsService;
|
|
|
|
|
import org.mitre.openid.connect.service.WhitelistedSiteService;
|
|
|
|
|
import org.mockito.InjectMocks;
|
|
|
|
|
import org.mockito.Matchers;
|
|
|
|
@ -68,12 +69,15 @@ public class TestDefaultOAuth2ClientDetailsEntityService {
|
|
|
|
|
@Mock
|
|
|
|
|
private SystemScopeService scopeService;
|
|
|
|
|
|
|
|
|
|
@Mock
|
|
|
|
|
private StatsService statsService;
|
|
|
|
|
|
|
|
|
|
@InjectMocks
|
|
|
|
|
private DefaultOAuth2ClientDetailsEntityService service;
|
|
|
|
|
|
|
|
|
|
@Before
|
|
|
|
|
public void prepare() {
|
|
|
|
|
Mockito.reset(clientRepository, tokenRepository, approvedSiteService, whitelistedSiteService, blacklistedSiteService, scopeService);
|
|
|
|
|
Mockito.reset(clientRepository, tokenRepository, approvedSiteService, whitelistedSiteService, blacklistedSiteService, scopeService, statsService);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|