Skip to content

Commit 94178f0

Browse files
Merge pull request #143 from SpineEventEngine/tests-to-kotlin
Migrate tests to Kotlin, reorganise `java-tests`
2 parents 53aaa8d + a2232e2 commit 94178f0

File tree

132 files changed

+4051
-5404
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+4051
-5404
lines changed

buildSrc/src/main/kotlin/io/spine/dependency/local/ProtoData.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ object ProtoData {
7373
* The version of ProtoData dependencies.
7474
*/
7575
val version: String
76-
private const val fallbackVersion = "0.65.1"
76+
private const val fallbackVersion = "0.66.0"
7777

7878
/**
7979
* The distinct version of ProtoData used by other build tools.

buildSrc/src/main/kotlin/module.gradle.kts

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@
2626

2727
import io.spine.dependency.build.Dokka
2828
import io.spine.dependency.build.ErrorProne
29-
import io.spine.dependency.test.JUnit
3029
import io.spine.dependency.lib.Jackson
3130
import io.spine.dependency.lib.Protobuf
32-
import io.spine.dependency.test.Truth
3331
import io.spine.dependency.local.CoreJava
3432
import io.spine.dependency.local.Logging
3533
import io.spine.dependency.local.Spine
3634
import io.spine.dependency.local.ToolBase
3735
import io.spine.dependency.local.Validation
36+
import io.spine.dependency.test.JUnit
37+
import io.spine.dependency.test.Kotest
38+
import io.spine.dependency.test.Truth
3839
import io.spine.gradle.javac.configureErrorProne
3940
import io.spine.gradle.javac.configureJavac
4041
import io.spine.gradle.javadoc.JavadocConfig
@@ -99,6 +100,7 @@ fun Module.addDependencies() {
99100
}
100101
JUnit.api.forEach { testImplementation(it) }
101102
Truth.libs.forEach { testImplementation(it) }
103+
testImplementation(Kotest.assertions)
102104
testRuntimeOnly(JUnit.runner)
103105
}
104106
}

dependencies.md

+517-1,613
Large diffs are not rendered by default.

java-runtime/src/main/java/io/spine/validate/ComparableNumber.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
/**
3535
* A number that can be compared to another number.
3636
*
37-
* <p>Note that for values that are outside {@code Long} range, or when a
38-
* precision beyond that of {@code Double} is required, instances of this class
37+
* <p>Note that for values that are outside {@code Long} range, or when
38+
* the precision beyond that of {@code Double} is required, instances of this class
3939
* yield incorrect comparison results.
4040
*/
4141
@Immutable

java-runtime/src/main/java/io/spine/validate/FieldAwareMessage.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
* their values with no reflection {@linkplain Message#getField(Descriptors.FieldDescriptor)
4444
* used by Protobuf}.
4545
*
46-
* <p>This mixin is an experimental part of the framework and may be changed or removed in future.
46+
* <p>This mixin is an experimental part of the framework and may be changed or
47+
* removed in the future.
4748
*/
4849
@GeneratedMixin
4950
@Experimental

java-runtime/src/main/java/io/spine/validate/diags/ViolationText.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ private static void appendPrefix(StringBuilder target, String prefix) {
113113
/**
114114
* Returns a validation error message which may have formatting placeholders.
115115
*
116-
* <p>A custom message is returned if it is present in the option. Otherwise,
117-
* default message is returned.
116+
* <p>A custom message is returned if it is present in the option.
117+
* Otherwise, a default message associated with the option is returned.
118118
*
119119
* @param option
120120
* a validation option used to get the default message

java-runtime/src/test/java/io/spine/validate/ComparableNumberTest.java

-82
This file was deleted.

java-runtime/src/test/java/io/spine/validate/MessageValueTest.java

-91
This file was deleted.

0 commit comments

Comments
 (0)