Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nbirillo committed Jan 3, 2024
1 parent f1e1c04 commit 33de2c3
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 1812862733
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 1489045741
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 1156823699
Original file line number Diff line number Diff line change
@@ -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() {

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 459924064
Original file line number Diff line number Diff line change
@@ -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() {

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 1156303106
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions courseSection/accessingPsiElements/lesson-remote-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 29300292
1 change: 1 addition & 0 deletions courseSection/psi/IntroToPsi/task-remote-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 1568585082
1 change: 1 addition & 0 deletions courseSection/psi/TryPsiViewer/task-remote-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 166381032
1 change: 1 addition & 0 deletions courseSection/psi/lesson-remote-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: 1861629290

0 comments on commit 33de2c3

Please sign in to comment.