Merge branch 'master' into pr-2656
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
<parent>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd</artifactId>
|
||||
<version>6.26.0-SNAPSHOT</version>
|
||||
<version>6.27.0-SNAPSHOT</version>
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
|
||||
@ -28,6 +28,10 @@
|
||||
<testResource>
|
||||
<directory>../pmd-scala-common/src/test/resources</directory>
|
||||
</testResource>
|
||||
<!-- Adding kotlin files to test resources, so that checkstyle verifies the license header -->
|
||||
<testResource>
|
||||
<directory>../pmd-scala-common/src/test/kotlin</directory>
|
||||
</testResource>
|
||||
</testResources>
|
||||
|
||||
<pluginManagement>
|
||||
@ -140,13 +144,8 @@
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.kotlintest</groupId>
|
||||
<artifactId>kotlintest-assertions</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.kotlintest</groupId>
|
||||
<artifactId>kotlintest-core</artifactId>
|
||||
<groupId>io.kotest</groupId>
|
||||
<artifactId>kotest-assertions-core-jvm</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -156,7 +155,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-test</artifactId>
|
||||
<artifactId>kotlin-test-junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -4,15 +4,15 @@
|
||||
|
||||
package net.sourceforge.pmd.lang.scala.ast
|
||||
|
||||
import io.kotlintest.should
|
||||
import io.kotlintest.specs.AbstractFunSpec
|
||||
import io.kotest.core.spec.style.FunSpec
|
||||
import io.kotest.matchers.should
|
||||
import net.sourceforge.pmd.lang.LanguageRegistry
|
||||
import net.sourceforge.pmd.lang.ast.Node
|
||||
import net.sourceforge.pmd.lang.ast.test.matchNode
|
||||
import net.sourceforge.pmd.lang.ast.test.shouldBe
|
||||
import java.io.StringReader
|
||||
|
||||
class ScalaTreeTests : AbstractFunSpec({
|
||||
class ScalaTreeTests : FunSpec({
|
||||
|
||||
|
||||
test("Test line/column numbers") {
|
||||
|
Reference in New Issue
Block a user