use of com.google.cloud.tools.managedcloudsdk.install.SdkInstaller in project google-cloud-intellij by GoogleCloudPlatform.
the class ManagedCloudSdkServiceTest method failed_install_showsErrorNotification.
@Test
public void failed_install_showsErrorNotification() throws Exception {
emulateMockSdkInstallationProcess(MOCK_SDK_PATH);
SdkInstaller mockInstaller = mockManagedCloudSdk.newInstaller();
IOException ioException = new IOException("IO Error");
when(mockInstaller.install(any(), any())).thenThrow(ioException);
sdkService.install();
verify(mockUiPresenter).notifyManagedSdkJobFailure(ManagedSdkJobType.INSTALL, ioException.toString());
}
use of com.google.cloud.tools.managedcloudsdk.install.SdkInstaller in project google-cloud-intellij by GoogleCloudPlatform.
the class ManagedCloudSdkServiceTest method failed_install_removesProgressIndicator.
@Test
public void failed_install_removesProgressIndicator() throws Exception {
emulateMockSdkInstallationProcess(MOCK_SDK_PATH);
SdkInstaller mockInstaller = mockManagedCloudSdk.newInstaller();
IOException ioException = new IOException("IO Error");
when(mockInstaller.install(any(), any())).thenThrow(ioException);
sdkService.install();
verify(mockProgressListener, atLeastOnce()).done();
}
Aggregations