From 33de2c3222abee3db605d51dbe5ee83e04d03b09 Mon Sep 17 00:00:00 2001 From: "anastasia.birillo" Date: Wed, 3 Jan 2024 17:11:19 +0100 Subject: [PATCH] Fix tests --- .../accessingPsiElementesTheory/task-info.yaml | 4 ++-- .../accessingPsiElementesTheory/task-remote-info.yaml | 1 + .../accessingPsiElementsAddAnnotationsPlugin/task-info.yaml | 4 ++-- .../task-remote-info.yaml | 1 + .../accessingPsiElementsAddAnnotationsPlugin/test/Tests.kt | 4 +--- .../accessingPsiElementsClassCounterPlugin/task-info.yaml | 4 ++-- .../task-remote-info.yaml | 1 + .../accessingPsiElementsClassCounterPlugin/test/Tests.kt | 2 +- .../accessingPsiElementsRenamePlugin/task-info.yaml | 4 ++-- .../accessingPsiElementsRenamePlugin/task-remote-info.yaml | 1 + .../accessingPsiElementsRenamePlugin/test/Tests.kt | 2 +- .../accessingPsiElementsSortMethodsPlugin/task-info.yaml | 4 ++-- .../task-remote-info.yaml | 1 + .../accessingPsiElementsSortMethodsPlugin/test/Tests.kt | 2 +- courseSection/accessingPsiElements/lesson-remote-info.yaml | 1 + courseSection/psi/IntroToPsi/task-remote-info.yaml | 1 + courseSection/psi/TryPsiViewer/task-remote-info.yaml | 1 + courseSection/psi/lesson-remote-info.yaml | 1 + 18 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 courseSection/accessingPsiElements/accessingPsiElementesTheory/task-remote-info.yaml create mode 100644 courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/task-remote-info.yaml create mode 100644 courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/task-remote-info.yaml create mode 100644 courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/task-remote-info.yaml create mode 100644 courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/task-remote-info.yaml create mode 100644 courseSection/accessingPsiElements/lesson-remote-info.yaml create mode 100644 courseSection/psi/IntroToPsi/task-remote-info.yaml create mode 100644 courseSection/psi/TryPsiViewer/task-remote-info.yaml create mode 100644 courseSection/psi/lesson-remote-info.yaml diff --git a/courseSection/accessingPsiElements/accessingPsiElementesTheory/task-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementesTheory/task-info.yaml index 869ad60..9b75d73 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementesTheory/task-info.yaml +++ b/courseSection/accessingPsiElements/accessingPsiElementesTheory/task-info.yaml @@ -1,10 +1,10 @@ type: theory custom_name: How to Access PSI Elements files: - - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/AnnotationBuilder.kt - visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/ElementsCounter.kt visible: true + - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/AnnotationBuilder.kt + visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/FunctionNameChanger.kt visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/PsiElementsSorter.kt diff --git a/courseSection/accessingPsiElements/accessingPsiElementesTheory/task-remote-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementesTheory/task-remote-info.yaml new file mode 100644 index 0000000..acb72f8 --- /dev/null +++ b/courseSection/accessingPsiElements/accessingPsiElementesTheory/task-remote-info.yaml @@ -0,0 +1 @@ +id: 1812862733 diff --git a/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/task-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/task-info.yaml index befaa2c..874c6cb 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/task-info.yaml +++ b/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/task-info.yaml @@ -1,10 +1,10 @@ type: edu custom_name: Psi Manipulation Advanced files: - - name: test/Tests.kt - visible: false - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/AnnotationBuilder.kt visible: true + - name: test/Tests.kt + visible: false - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/ElementsCounter.kt visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/FunctionNameChanger.kt diff --git a/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/task-remote-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/task-remote-info.yaml new file mode 100644 index 0000000..b8ffa98 --- /dev/null +++ b/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/task-remote-info.yaml @@ -0,0 +1 @@ +id: 1489045741 diff --git a/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/test/Tests.kt b/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/test/Tests.kt index 3322ecb..3e2e3a1 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/test/Tests.kt +++ b/courseSection/accessingPsiElements/accessingPsiElementsAddAnnotationsPlugin/test/Tests.kt @@ -3,9 +3,7 @@ import com.intellij.psi.PsiClass import com.intellij.psi.PsiMethod import com.intellij.psi.util.PsiTreeUtil import com.intellij.testFramework.fixtures.BasePlatformTestCase -import jetbrains.academy.plugindev.course.access.addAnnotations -import org.junit.Assert -import org.junit.Test +import jetbrains.academy.plugin.course.dev.access.addAnnotations class Test : BasePlatformTestCase() { diff --git a/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/task-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/task-info.yaml index 98c7190..b2e7865 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/task-info.yaml +++ b/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/task-info.yaml @@ -1,12 +1,12 @@ type: edu custom_name: Count number of classes files: + - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/ElementsCounter.kt + visible: true - name: test/Tests.kt visible: false - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/AnnotationBuilder.kt visible: true - - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/ElementsCounter.kt - visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/FunctionNameChanger.kt visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/PsiElementsSorter.kt diff --git a/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/task-remote-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/task-remote-info.yaml new file mode 100644 index 0000000..6a85410 --- /dev/null +++ b/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/task-remote-info.yaml @@ -0,0 +1 @@ +id: 1156823699 diff --git a/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/test/Tests.kt b/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/test/Tests.kt index db2eb61..2425147 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/test/Tests.kt +++ b/courseSection/accessingPsiElements/accessingPsiElementsClassCounterPlugin/test/Tests.kt @@ -1,5 +1,5 @@ import com.intellij.testFramework.fixtures.BasePlatformTestCase -import jetbrains.academy.plugindev.course.access.countKtClasses +import jetbrains.academy.plugin.course.dev.access.countKtClasses class Test : BasePlatformTestCase() { diff --git a/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/task-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/task-info.yaml index 659813a..e9c17ec 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/task-info.yaml +++ b/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/task-info.yaml @@ -1,13 +1,13 @@ type: edu custom_name: Rename function using PSI files: + - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/FunctionNameChanger.kt + visible: true - name: test/Tests.kt visible: false - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/AnnotationBuilder.kt visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/ElementsCounter.kt visible: true - - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/FunctionNameChanger.kt - visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/PsiElementsSorter.kt visible: true diff --git a/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/task-remote-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/task-remote-info.yaml new file mode 100644 index 0000000..1baa041 --- /dev/null +++ b/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/task-remote-info.yaml @@ -0,0 +1 @@ +id: 459924064 diff --git a/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/test/Tests.kt b/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/test/Tests.kt index a0b5ee0..13f5ab2 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/test/Tests.kt +++ b/courseSection/accessingPsiElements/accessingPsiElementsRenamePlugin/test/Tests.kt @@ -1,6 +1,6 @@ import com.intellij.psi.util.PsiTreeUtil import com.intellij.testFramework.fixtures.BasePlatformTestCase -import jetbrains.academy.plugindev.course.access.editFunctionName +import jetbrains.academy.plugin.course.dev.access.editFunctionName import org.jetbrains.kotlin.psi.KtNamedFunction class Test : BasePlatformTestCase() { diff --git a/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/task-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/task-info.yaml index d182ef0..592aef8 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/task-info.yaml +++ b/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/task-info.yaml @@ -1,6 +1,8 @@ type: edu custom_name: Psi Manipulation Basics files: + - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/PsiElementsSorter.kt + visible: true - name: test/Tests.kt visible: false - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/AnnotationBuilder.kt @@ -9,5 +11,3 @@ files: visible: true - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/FunctionNameChanger.kt visible: true - - name: src/main/kotlin/jetbrains/academy/plugin/course/dev/access/PsiElementsSorter.kt - visible: true diff --git a/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/task-remote-info.yaml b/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/task-remote-info.yaml new file mode 100644 index 0000000..69cf48b --- /dev/null +++ b/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/task-remote-info.yaml @@ -0,0 +1 @@ +id: 1156303106 diff --git a/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/test/Tests.kt b/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/test/Tests.kt index 0636006..98ed42a 100644 --- a/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/test/Tests.kt +++ b/courseSection/accessingPsiElements/accessingPsiElementsSortMethodsPlugin/test/Tests.kt @@ -1,6 +1,6 @@ import com.intellij.psi.util.PsiTreeUtil import com.intellij.testFramework.fixtures.BasePlatformTestCase -import jetbrains.academy.plugindev.course.access.sortMethods +import jetbrains.academy.plugin.course.dev.access.sortMethods import org.jetbrains.kotlin.psi.KtClass import org.jetbrains.kotlin.psi.KtNamedFunction diff --git a/courseSection/accessingPsiElements/lesson-remote-info.yaml b/courseSection/accessingPsiElements/lesson-remote-info.yaml new file mode 100644 index 0000000..2b7f2c0 --- /dev/null +++ b/courseSection/accessingPsiElements/lesson-remote-info.yaml @@ -0,0 +1 @@ +id: 29300292 diff --git a/courseSection/psi/IntroToPsi/task-remote-info.yaml b/courseSection/psi/IntroToPsi/task-remote-info.yaml new file mode 100644 index 0000000..eb8146a --- /dev/null +++ b/courseSection/psi/IntroToPsi/task-remote-info.yaml @@ -0,0 +1 @@ +id: 1568585082 diff --git a/courseSection/psi/TryPsiViewer/task-remote-info.yaml b/courseSection/psi/TryPsiViewer/task-remote-info.yaml new file mode 100644 index 0000000..0fe6d76 --- /dev/null +++ b/courseSection/psi/TryPsiViewer/task-remote-info.yaml @@ -0,0 +1 @@ +id: 166381032 diff --git a/courseSection/psi/lesson-remote-info.yaml b/courseSection/psi/lesson-remote-info.yaml new file mode 100644 index 0000000..b911386 --- /dev/null +++ b/courseSection/psi/lesson-remote-info.yaml @@ -0,0 +1 @@ +id: 1861629290