mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[maven] IDEA-357057 rename assertAutoReloadIsInitialized to assertAutoReloadIsEnabled
GitOrigin-RevId: 5dcd63a69359a5ca5dcb8fe981b231b9fa419184
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5c9feb90e9
commit
190370ccb7
@@ -421,12 +421,12 @@ abstract class MavenImportingTestCase : MavenTestCase() {
|
||||
isAutoReloadEnabled = true
|
||||
}
|
||||
|
||||
private fun assertAutoReloadIsInitialized() {
|
||||
assertTrue("Auto-reload is disabled for tests by default", isAutoReloadEnabled)
|
||||
private fun assertAutoReloadIsEnabled() {
|
||||
assertTrue("Auto-reload is disabled in this test", isAutoReloadEnabled)
|
||||
}
|
||||
|
||||
protected suspend fun assertHasPendingProjectForReload() {
|
||||
assertAutoReloadIsInitialized()
|
||||
assertAutoReloadIsEnabled()
|
||||
assertWithinTimeout(10) {
|
||||
assertTrue("Expected notification about pending projects for auto-reload", myNotificationAware!!.isNotificationVisible())
|
||||
}
|
||||
@@ -434,14 +434,14 @@ abstract class MavenImportingTestCase : MavenTestCase() {
|
||||
}
|
||||
|
||||
protected fun assertNoPendingProjectForReload() {
|
||||
assertAutoReloadIsInitialized()
|
||||
assertAutoReloadIsEnabled()
|
||||
assertFalse(myNotificationAware!!.isNotificationVisible())
|
||||
assertEmpty(myNotificationAware!!.getProjectsWithNotification())
|
||||
}
|
||||
|
||||
@RequiresBackgroundThread
|
||||
protected suspend fun scheduleProjectImportAndWait() {
|
||||
assertAutoReloadIsInitialized()
|
||||
assertAutoReloadIsEnabled()
|
||||
|
||||
// otherwise all imports will be skipped
|
||||
assertHasPendingProjectForReload()
|
||||
@@ -456,7 +456,7 @@ abstract class MavenImportingTestCase : MavenTestCase() {
|
||||
}
|
||||
|
||||
protected suspend fun scheduleProjectImportAndWaitAsync() {
|
||||
assertAutoReloadIsInitialized()
|
||||
assertAutoReloadIsEnabled()
|
||||
|
||||
// otherwise all imports will be skipped
|
||||
assertHasPendingProjectForReload()
|
||||
|
||||
Reference in New Issue
Block a user