Skip to content

Deprecated API usages in the plugin should be replaced with stable API calls #693

Description

@Vassiliy-Kudryashov

Description

There is a list of deprecated API usages and some internal API calls (https://plugins.jetbrains.com/plugin/19445-unittestbot/versions):

  1. Internal method Module.getModuleFile() is invoked in ModuleUtilsKt.addDedicatedTestRoot(Module, List) FIXED

Update: because of for backward compatibility requirement (we need it for AndroidStudio) following API usages should be migrated later. All suggested fixes for following ussies are actual for API 2020.3+ but the plugin should be compatible with 2020.2 as well:

  1. Deprecated method NotificationGroup.createNotification(...) is invoked in UrlNotifier.notify(String, Project, Module)
  2. Deprecated method Row.setCellMode(boolean, boolean, boolean) is invoked in UiUtilsKt.labeled$1.invoke(Row)
  3. Deprecated method RefactoringUtil.createPackageDirectoryInSourceRoot(...) is invoked in GenerateTestsDialogWindow.createSelectedPackage$.inlined.runWriteAction$1.compute()
  4. Deprecated method Project.getBaseDir() is invoked in TestFolderComboWithBrowseButton.formatUrl(...)
  5. Deprecated method Messages.showYesNoDialog(...) is invoked in GenerateTestsDialogWindow.createKotlinJvmTargetNotificationDialog()
  6. Deprecated class ComboboxWithBrowseButton is referenced in TestFolderComboWithBrowseButton
  7. Deprecated constructor NotificationGroup.(...) is invoked in Notifier.getNotificationGroup()
  8. Deprecated interface DialogWrapper.DoNotAskOption is referenced in GenerateTestsDialogWindow.createKotlinJvmTargetNotificationDialog()
  9. Configuration file 'withAndroid.xml' for optional dependency 'org.jetbrains.android' is invalid: Invalid plugin descriptor 'withAndroid.xml': Unable to read plugin descriptor~~

We should get rid of these warnings and use stable/recommended API where it's possible (or write own methods with similar functionality if need)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions