@Test public void shouldInvokeCallbackWhenFolderAlreadyExists() throws Exception { wizard.complete(completeCallback); verify(vfsServiceClient).getItemByPath(eq(PROJECT_NAME), callbackCaptorForItem.capture()); AsyncRequestCallback<Item> callback = callbackCaptorForItem.getValue(); GwtReflectionUtils.callOnSuccess(callback, mock(Item.class)); verify(completeCallback).onFailure(any(Throwable.class)); }
@Override public void complete(@Nonnull CompleteCallback callback) { checkFolderExistenceAndImport(callback); }
ImportWizard extends AbstractWizard<ImportProject> { @Override public void complete(@Nonnull CompleteCallback callback) { checkFolderExistenceAndImport(callback); } }
ImportWizard extends AbstractWizard<ImportProject> { @Override public void complete(@Nonnull CompleteCallback callback) { checkFolderExistenceAndImport(callback); } @Inject  ImportWizard(@Assisted ImportProject dataObject,
                        ProjectServiceClient projectServiceClient,
                        VfsServiceClient vfsServiceClient,
                        DtoUnmarshallerFactory dtoUnmarshallerFactory,
                        DtoFactory dtoFactory,
                        EventBus eventBus,
                        CoreLocalizationConstant localizationConstant,
                        ImportProjectNotificationSubscriber importProjectNotificationSubscriber); }
ImportWizard extends AbstractWizard<ImportProject> { @Override public void complete(@Nonnull CompleteCallback callback) { checkFolderExistenceAndImport(callback); } @Inject  ImportWizard(@Assisted ImportProject dataObject,
                        ProjectServiceClient projectServiceClient,
                        VfsServiceClient vfsServiceClient,
                        DtoUnmarshallerFactory dtoUnmarshallerFactory,
                        DtoFactory dtoFactory,
                        EventBus eventBus,
                        CoreLocalizationConstant localizationConstant,
                        ImportProjectNotificationSubscriber importProjectNotificationSubscriber); @Override void complete(@Nonnull CompleteCallback callback); }
ImportWizard extends AbstractWizard<ImportProject> { @Override public void complete(@Nonnull CompleteCallback callback) { checkFolderExistenceAndImport(callback); } @Inject  ImportWizard(@Assisted ImportProject dataObject,
                        ProjectServiceClient projectServiceClient,
                        VfsServiceClient vfsServiceClient,
                        DtoUnmarshallerFactory dtoUnmarshallerFactory,
                        DtoFactory dtoFactory,
                        EventBus eventBus,
                        CoreLocalizationConstant localizationConstant,
                        ImportProjectNotificationSubscriber importProjectNotificationSubscriber); @Override void complete(@Nonnull CompleteCallback callback);  }