Skip to content

Commit 05448aa

Browse files
committed
Extend Java API for Spring-aware generation #2614
1 parent 389fe66 commit 05448aa

File tree

7 files changed

+524
-555
lines changed

7 files changed

+524
-555
lines changed

utbot-framework-api/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
val junit4Version: String by rootProject
2+
val junit5Version: String by rootProject
23
val sootVersion: String by rootProject
34
val commonsLangVersion: String by rootProject
45
val kotlinLoggingVersion: String? by rootProject
@@ -21,7 +22,12 @@ dependencies {
2122
implementation(group = "com.esotericsoftware.kryo", name = "kryo5", version = kryoVersion)
2223
// this is necessary for serialization of some collections
2324
implementation(group = "de.javakaffee", name = "kryo-serializers", version = kryoSerializersVersion)
24-
testImplementation(group = "junit", name = "junit", version = junit4Version)
25+
// To use JUnit4, comment JUnit5 and uncomment JUnit4 dependencies here
26+
//testImplementation(group = "junit", name = "junit", version = junit4Version)
27+
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-params", version = junit5Version)
28+
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-engine", version = junit5Version)
29+
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-api", version = junit5Version)
30+
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-api", version = junit5Version)
2531
}
2632

2733
java {

utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/Api.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ sealed class SpringConfiguration(val fullDisplayName: String) {
14391439
}
14401440

14411441
sealed interface SpringSettings {
1442-
object AbsentSpringSettings : SpringSettings {
1442+
companion object AbsentSpringSettings : SpringSettings {
14431443
// NOTE that overriding equals is required just because without it
14441444
// we will lose equality for objects after deserialization
14451445
override fun equals(other: Any?): Boolean = other is AbsentSpringSettings

0 commit comments

Comments
 (0)