Skip to content

Commit

Permalink
Test fixtures upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
hmemcpy committed Jul 19, 2024
1 parent d1ad220 commit b939973
Show file tree
Hide file tree
Showing 78 changed files with 3,473 additions and 354 deletions.
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def newProject(projectName: String, base: File): Project =
name := projectName,
scalaVersion := scala213,
version := pluginVersion,
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
libraryDependencies ++= Seq(
"com.novocode" % "junit-interface" % "0.11" % Test,
"org.junit.jupiter" % "junit-jupiter-api" % "5.10.2" % Test
),
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-s", "-a", "+c", "+q"),
intellijPlugins := Seq(
"com.intellij.java".toPlugin,
Expand Down

This file was deleted.

123 changes: 0 additions & 123 deletions src/test/scala/intellij/testfixtures/SynteticInjectorsTestUtils.scala

This file was deleted.

13 changes: 0 additions & 13 deletions src/test/scala/intellij/testfixtures/TestFixtureProvider.scala

This file was deleted.

49 changes: 0 additions & 49 deletions src/test/scala/intellij/testfixtures/Timings.java

This file was deleted.

18 changes: 18 additions & 0 deletions src/test/scala/org/jetbrains/plugins/scala/annotator/Message.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package org.jetbrains.plugins.scala.annotator

import scala.math.Ordered.orderingToOrdered

sealed abstract class Message extends Ordered[Message] {
def element: String
def message: String

override def compare(that: Message): Int =
(this.element, this.message) compare (that.element, that.message)
}

object Message {
case class Info(override val element: String, override val message: String) extends Message
case class Warning(override val element: String, override val message: String) extends Message
case class Error(override val element: String, override val message: String) extends Message
case class Hint(override val element: String, text: String, override val message: String = "", offsetDelta: Int = 0) extends Message
}
Loading

0 comments on commit b939973

Please sign in to comment.