Skip to content

Commit 868284c

Browse files
Merge pull request #171 from SpineEventEngine/typed-range
Adapt the library to `RangeOption`
2 parents 3bab7c6 + 03e1ac5 commit 868284c

File tree

31 files changed

+273
-221
lines changed

31 files changed

+273
-221
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ package io.spine.dependency.local
3333
*/
3434
@Suppress("ConstPropertyName")
3535
object Base {
36-
const val version = "2.0.0-SNAPSHOT.220"
37-
const val versionForBuildScript = "2.0.0-SNAPSHOT.220"
36+
const val version = "2.0.0-SNAPSHOT.232"
37+
const val versionForBuildScript = "2.0.0-SNAPSHOT.232"
3838
const val group = Spine.group
3939
const val artifact = "spine-base"
4040
const val lib = "$group:$artifact:$version"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ package io.spine.dependency.local
3333
*/
3434
@Suppress("ConstPropertyName")
3535
object BaseTypes {
36-
const val version = "2.0.0-SNAPSHOT.126"
36+
const val version = "2.0.0-SNAPSHOT.130"
3737
const val group = Spine.group
3838
const val artifact = "spine-base-types"
3939
const val lib = "$group:$artifact:$version"

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

+3-3
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.69.5"
76+
private const val fallbackVersion = "0.80.3"
7777

7878
/**
7979
* The distinct version of ProtoData used by other build tools.
@@ -82,7 +82,7 @@ object ProtoData {
8282
* transitional dependencies, this is the version used to build the project itself.
8383
*/
8484
val dogfoodingVersion: String
85-
private const val fallbackDfVersion = "0.69.5"
85+
private const val fallbackDfVersion = "0.80.3"
8686

8787
/**
8888
* The artifact for the ProtoData Gradle plugin.
@@ -115,7 +115,7 @@ object ProtoData {
115115
val cliApi
116116
get() = "$group:protodata-cli-api:$version"
117117

118-
val javaModule = "$group:protodata-java"
118+
const val javaModule = "$group:protodata-java"
119119

120120
fun java(version: String): String =
121121
"$javaModule:$version"

dependencies.md

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# Dependencies of `io.spine.validation:spine-validation-java:2.0.0-SNAPSHOT.179`
3+
# Dependencies of `io.spine.validation:spine-validation-java:2.0.0-SNAPSHOT.180`
44

55
## Runtime
66
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3.
@@ -852,12 +852,12 @@
852852

853853
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
854854

855-
This report was generated on **Fri Dec 06 15:45:53 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
855+
This report was generated on **Tue Dec 17 11:24:17 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
856856

857857

858858

859859

860-
# Dependencies of `io.spine.validation:spine-validation-java-bundle:2.0.0-SNAPSHOT.179`
860+
# Dependencies of `io.spine.validation:spine-validation-java-bundle:2.0.0-SNAPSHOT.180`
861861

862862
## Runtime
863863
1. **Group** : org.jetbrains. **Name** : annotations. **Version** : 24.0.1.
@@ -1452,12 +1452,12 @@ This report was generated on **Fri Dec 06 15:45:53 CET 2024** using [Gradle-Lice
14521452

14531453
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
14541454

1455-
This report was generated on **Fri Dec 06 15:45:54 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
1455+
This report was generated on **Tue Dec 17 11:24:17 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
14561456

14571457

14581458

14591459

1460-
# Dependencies of `io.spine.validation:spine-validation-java-runtime:2.0.0-SNAPSHOT.179`
1460+
# Dependencies of `io.spine.validation:spine-validation-java-runtime:2.0.0-SNAPSHOT.180`
14611461

14621462
## Runtime
14631463
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -2114,12 +2114,12 @@ This report was generated on **Fri Dec 06 15:45:54 CET 2024** using [Gradle-Lice
21142114

21152115
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
21162116

2117-
This report was generated on **Fri Dec 06 15:45:54 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
2117+
This report was generated on **Tue Dec 17 11:24:18 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
21182118

21192119

21202120

21212121

2122-
# Dependencies of `io.spine.validation:spine-validation-java-tests:2.0.0-SNAPSHOT.179`
2122+
# Dependencies of `io.spine.validation:spine-validation-java-tests:2.0.0-SNAPSHOT.180`
21232123

21242124
## Runtime
21252125
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3.
@@ -3039,12 +3039,12 @@ This report was generated on **Fri Dec 06 15:45:54 CET 2024** using [Gradle-Lice
30393039

30403040
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
30413041

3042-
This report was generated on **Fri Dec 06 15:45:56 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
3042+
This report was generated on **Tue Dec 17 11:24:19 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
30433043

30443044

30453045

30463046

3047-
# Dependencies of `io.spine.validation:spine-validation-model:2.0.0-SNAPSHOT.179`
3047+
# Dependencies of `io.spine.validation:spine-validation-model:2.0.0-SNAPSHOT.180`
30483048

30493049
## Runtime
30503050
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3.
@@ -3899,12 +3899,12 @@ This report was generated on **Fri Dec 06 15:45:56 CET 2024** using [Gradle-Lice
38993899

39003900
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
39013901

3902-
This report was generated on **Fri Dec 06 15:45:56 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
3902+
This report was generated on **Tue Dec 17 11:24:19 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
39033903

39043904

39053905

39063906

3907-
# Dependencies of `io.spine.validation:spine-validation-proto:2.0.0-SNAPSHOT.179`
3907+
# Dependencies of `io.spine.validation:spine-validation-proto:2.0.0-SNAPSHOT.180`
39083908

39093909
## Runtime
39103910
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3.
@@ -4793,12 +4793,12 @@ This report was generated on **Fri Dec 06 15:45:56 CET 2024** using [Gradle-Lice
47934793

47944794
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
47954795

4796-
This report was generated on **Fri Dec 06 15:45:57 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
4796+
This report was generated on **Tue Dec 17 11:24:21 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
47974797

47984798

47994799

48004800

4801-
# Dependencies of `io.spine.validation:spine-validation-consumer:2.0.0-SNAPSHOT.179`
4801+
# Dependencies of `io.spine.validation:spine-validation-consumer:2.0.0-SNAPSHOT.180`
48024802

48034803
## Runtime
48044804
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3.
@@ -5666,12 +5666,12 @@ This report was generated on **Fri Dec 06 15:45:57 CET 2024** using [Gradle-Lice
56665666

56675667
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
56685668

5669-
This report was generated on **Fri Dec 06 15:45:57 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
5669+
This report was generated on **Tue Dec 17 11:24:21 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
56705670

56715671

56725672

56735673

5674-
# Dependencies of `io.spine.validation:spine-validation-consumer-dependency:2.0.0-SNAPSHOT.179`
5674+
# Dependencies of `io.spine.validation:spine-validation-consumer-dependency:2.0.0-SNAPSHOT.180`
56755675

56765676
## Runtime
56775677
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -6419,12 +6419,12 @@ This report was generated on **Fri Dec 06 15:45:57 CET 2024** using [Gradle-Lice
64196419

64206420
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
64216421

6422-
This report was generated on **Fri Dec 06 15:45:58 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
6422+
This report was generated on **Tue Dec 17 11:24:22 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
64236423

64246424

64256425

64266426

6427-
# Dependencies of `io.spine.validation:spine-validation-extensions:2.0.0-SNAPSHOT.179`
6427+
# Dependencies of `io.spine.validation:spine-validation-extensions:2.0.0-SNAPSHOT.180`
64286428

64296429
## Runtime
64306430
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3.
@@ -7321,12 +7321,12 @@ This report was generated on **Fri Dec 06 15:45:58 CET 2024** using [Gradle-Lice
73217321

73227322
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
73237323

7324-
This report was generated on **Fri Dec 06 15:45:59 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
7324+
This report was generated on **Tue Dec 17 11:24:22 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
73257325

73267326

73277327

73287328

7329-
# Dependencies of `io.spine.validation:spine-validation-runtime:2.0.0-SNAPSHOT.179`
7329+
# Dependencies of `io.spine.validation:spine-validation-runtime:2.0.0-SNAPSHOT.180`
73307330

73317331
## Runtime
73327332
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -8077,12 +8077,12 @@ This report was generated on **Fri Dec 06 15:45:59 CET 2024** using [Gradle-Lice
80778077

80788078
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
80798079

8080-
This report was generated on **Fri Dec 06 15:45:59 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
8080+
This report was generated on **Tue Dec 17 11:24:22 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
80818081

80828082

80838083

80848084

8085-
# Dependencies of `io.spine.validation:spine-validation-validating:2.0.0-SNAPSHOT.179`
8085+
# Dependencies of `io.spine.validation:spine-validation-validating:2.0.0-SNAPSHOT.180`
80868086

80878087
## Runtime
80888088
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -8837,12 +8837,12 @@ This report was generated on **Fri Dec 06 15:45:59 CET 2024** using [Gradle-Lice
88378837

88388838
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
88398839

8840-
This report was generated on **Fri Dec 06 15:45:59 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
8840+
This report was generated on **Tue Dec 17 11:24:23 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
88418841

88428842

88438843

88448844

8845-
# Dependencies of `io.spine.validation:spine-validation-vanilla:2.0.0-SNAPSHOT.179`
8845+
# Dependencies of `io.spine.validation:spine-validation-vanilla:2.0.0-SNAPSHOT.180`
88468846

88478847
## Runtime
88488848
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -9588,12 +9588,12 @@ This report was generated on **Fri Dec 06 15:45:59 CET 2024** using [Gradle-Lice
95889588

95899589
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
95909590

9591-
This report was generated on **Fri Dec 06 15:46:00 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
9591+
This report was generated on **Tue Dec 17 11:24:23 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
95929592

95939593

95949594

95959595

9596-
# Dependencies of `io.spine.validation:spine-validation-configuration:2.0.0-SNAPSHOT.179`
9596+
# Dependencies of `io.spine.validation:spine-validation-configuration:2.0.0-SNAPSHOT.180`
95979597

95989598
## Runtime
95999599
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3.
@@ -10466,12 +10466,12 @@ This report was generated on **Fri Dec 06 15:46:00 CET 2024** using [Gradle-Lice
1046610466

1046710467
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
1046810468

10469-
This report was generated on **Fri Dec 06 15:46:01 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
10469+
This report was generated on **Tue Dec 17 11:24:24 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
1047010470

1047110471

1047210472

1047310473

10474-
# Dependencies of `io.spine.validation:spine-validation-context:2.0.0-SNAPSHOT.179`
10474+
# Dependencies of `io.spine.validation:spine-validation-context:2.0.0-SNAPSHOT.180`
1047510475

1047610476
## Runtime
1047710477
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3.
@@ -11344,4 +11344,4 @@ This report was generated on **Fri Dec 06 15:46:01 CET 2024** using [Gradle-Lice
1134411344

1134511345
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
1134611346

11347-
This report was generated on **Fri Dec 06 15:46:01 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
11347+
This report was generated on **Tue Dec 17 11:24:24 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).

java-runtime/src/main/java/io/spine/validate/option/Range.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929
import com.google.errorprone.annotations.Immutable;
3030
import io.spine.code.proto.FieldContext;
3131
import io.spine.option.OptionsProto;
32+
import io.spine.option.RangeOption;
3233
import io.spine.validate.Constraint;
3334

3435
/**
3536
* A validating option that limits a numeric field to be in the specified range.
3637
*/
3738
@Immutable
38-
final class Range extends FieldValidatingOption<String> {
39+
final class Range extends FieldValidatingOption<RangeOption> {
3940

4041
private Range() {
4142
super(OptionsProto.range);

java-runtime/src/main/java/io/spine/validate/option/RangeConstraint.java

+10-8
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,29 @@
3030
import com.google.common.collect.Range;
3131
import com.google.errorprone.annotations.Immutable;
3232
import io.spine.code.proto.FieldDeclaration;
33+
import io.spine.option.RangeOption;
3334
import io.spine.validate.ComparableNumber;
3435
import io.spine.validate.ConstraintTranslator;
3536

3637
import static java.lang.String.format;
3738

3839
/**
3940
* A constraint that checks whether a value fits the ranged described by expressions such as
40-
* {@code int32 value = 5 [(range) = "[3..5)]}, describing a value that is at least 3 and less
41-
* than 5.
41+
* {@code int32 value = 5 [(range).value = "[3..5)]}, describing a value that is at least 3
42+
* and less than 5.
4243
*/
4344
@Immutable
44-
public final class RangeConstraint extends RangedConstraint<String> {
45+
public final class RangeConstraint extends RangedConstraint<RangeOption> {
4546

46-
RangeConstraint(String optionValue, FieldDeclaration field) {
47-
super(optionValue, rangeFromOption(optionValue, field), field);
47+
RangeConstraint(RangeOption option, FieldDeclaration field) {
48+
super(option, rangeFromOption(option, field), field);
4849
}
4950

5051
@VisibleForTesting
51-
static Range<ComparableNumber> rangeFromOption(String rangeOption, FieldDeclaration field) {
52-
return !rangeOption.isEmpty()
53-
? RangeDecl.compile(rangeOption, field)
52+
static Range<ComparableNumber> rangeFromOption(RangeOption option, FieldDeclaration field) {
53+
var value = option.getValue();
54+
return !value.isEmpty()
55+
? RangeDecl.compile(value, field)
5456
: Range.all();
5557
}
5658

java-tests/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
@file:Suppress("RemoveRedundantQualifierName")
2828

2929
import io.spine.dependency.lib.Protobuf
30+
import io.spine.dependency.local.Base
3031
import io.spine.dependency.local.McJava
3132
import io.spine.dependency.local.ProtoData
32-
import io.spine.dependency.local.Spine
3333
import io.spine.dependency.local.Validation.javaBundleModule
3434
import io.spine.dependency.local.Validation.runtimeModule
3535

@@ -62,7 +62,7 @@ subprojects {
6262
applyPlugins()
6363

6464
dependencies {
65-
implementation(Spine.base)
65+
implementation(Base.lib)
6666
implementation(project(":java-runtime"))
6767
}
6868

java-tests/consumer/src/main/proto/test/time.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ message LocalTime {
2121
(max).value = "23"
2222
];
2323

24-
int32 minutes = 2 [(range) = "[0..60)"];
24+
int32 minutes = 2 [(range).value = "[0..60)"];
2525

2626
float seconds = 3 [(min).value = "0.0", (max).value = "59.999"];
2727
}

java-tests/consumer/src/test/kotlin/io/spine/validation/test/RequiredRuleITest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ internal class RequiredRuleITest {
4646
fun `reject an unset message field`() {
4747
val builder = Book.newBuilder()
4848
assertValidationException(builder).also {
49-
it.msgFormat shouldContain "value must be set"
49+
it.msgFormat shouldContain "must have a value"
5050
it.fieldPath.getFieldName(0) shouldBe "author"
5151
}
5252
}

java-tests/consumer/src/test/kotlin/io/spine/validation/test/ValidateRuleITest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ internal class ValidateRuleITest {
144144

145145
private fun checkInvalid(
146146
builder: Message.Builder,
147-
errorPart: String = "message must have valid properties"
147+
errorPart: String = "is invalid"
148148
) {
149149
assertValidationException(builder).run {
150150
msgFormat shouldContain errorPart

java-tests/runtime/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
*/
2626

2727
import io.spine.dependency.local.Logging
28-
import io.spine.dependency.local.Spine
28+
import io.spine.dependency.local.TestLib
2929

3030
dependencies {
3131
testImplementation(Logging.lib)
32-
testImplementation(Spine.testlib)
32+
testImplementation(TestLib.lib)
3333
}

0 commit comments

Comments
 (0)