Skip to content

Commit

Permalink
EDU-6774: Rename resetStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
aokiga committed Apr 5, 2024
1 parent 1a09157 commit b00e710
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class CCFrameworkLessonManager(
}

@TestOnly
fun resetStorage() {
fun recreateStorageIfNeeded() {
if (storage.isDisposed) {
storage = createStorage(project)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class FrameworkLessonManagerImpl(private val project: Project) : FrameworkLesson
}

@TestOnly
fun resetStorage() {
fun recreateStorageIfNeeded() {
if (storage.isDisposed) {
storage = createStorage(project)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ abstract class EduTestCase : BasePlatformTestCase() {
connection.disconnect()
}
})
(FrameworkLessonManager.getInstance(project) as FrameworkLessonManagerImpl).resetStorage()
CCFrameworkLessonManager.getInstance(project).resetStorage()
(FrameworkLessonManager.getInstance(project) as FrameworkLessonManagerImpl).recreateStorageIfNeeded()
CCFrameworkLessonManager.getInstance(project).recreateStorageIfNeeded()
createCourse()
project.putUserData(CourseProjectGenerator.EDU_PROJECT_CREATED, true)
}
Expand Down

0 comments on commit b00e710

Please sign in to comment.