public class OAuth2AppInstallationServiceImplTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static GUID |
APP_ID |
private AppInstallationOAuth2Repository |
appInstallationRepository |
private javax.inject.Provider<AppInstallationOAuth2Repository> |
appInstallationRepositoryProvider |
private OAuth2ClientEntity |
oauth2ClientEntity |
private OAuth2Service |
oauth2Service |
private OfficialApp |
officialApp |
private static java.util.Set<java.lang.String> |
SCOPES |
private static GUID |
SHOP_GUID |
private OAuth2AppInstallationServiceImpl |
SUT |
Constructor and Description |
---|
OAuth2AppInstallationServiceImplTest() |
private static final java.util.Set<java.lang.String> SCOPES
private static final GUID APP_ID
private static final GUID SHOP_GUID
private OAuth2AppInstallationServiceImpl SUT
@Mock private javax.inject.Provider<AppInstallationOAuth2Repository> appInstallationRepositoryProvider
@Mock private AppInstallationOAuth2Repository appInstallationRepository
@Mock private OAuth2Service oauth2Service
private OfficialApp officialApp
private OAuth2ClientEntity oauth2ClientEntity
public OAuth2AppInstallationServiceImplTest()
public void setup()
public void should_transition_state_to_NOT_INSTALLED()
public void should_prepare_pending_installation_for_initial_installation()
public void should_not_prepare_pending_installation_for_missing_installation_without_oauth2_client()
public void should_prepare_pending_installation_for_existing_installation_with_state_PENDING()
public void should_prepare_pending_installation_for_existing_installation_with_state_NOT_INSTALLED()
public void should_finalize_pending_installation()
public void should_not_install_twice()
public void should_not_finalize_pending_installation_for_missing_installation()
public void should_not_finalize_pending_installation_for_existing_installation_with_state_INSTALLED()
public void should_not_finalize_pending_installation_for_existing_installation_with_state_NOT_INSTALLED()
public void should_not_finalize_pending_installation_if_authorization_code_mismatches()
public void should_do_nothing_on_uninstall_for_missing_installation()
public void should_uninstall_for_existing_installation_with_state_INSTALLED()
public void should_uninstall_for_existing_installation_with_state_PENDING()
public void should_not_find_previous_oauth2_installation_when_there_is_none()
public void should_find_previous_oauth2_installation_when_there_is_one()