File tree Expand file tree Collapse file tree
utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api
utbot-framework/src/main/kotlin/org/utbot
src/main/kotlin/org/utbot/contest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1044,7 +1044,7 @@ enum class MockStrategyApi(
10441044 override val displayName : String ,
10451045 override val description : String
10461046) : CodeGenerationSettingItem {
1047- NO_MOCKS (" No mocks" , " Do not use Mock frameworks at all" ),
1047+ NO_MOCKS (" No mocks" , " Do not use mock frameworks at all" ),
10481048 OTHER_PACKAGES (
10491049 " Other packages: $MOCKITO " ,
10501050 " Mock all classes outside the current package except system ones"
@@ -1105,7 +1105,7 @@ enum class MockFramework(
11051105
11061106enum class CodegenLanguage (
11071107 override val displayName : String ,
1108- @Suppress(" unused" ) override val description : String = " Generating unit tests in $displayName "
1108+ @Suppress(" unused" ) override val description : String = " Generate unit tests in $displayName "
11091109) : CodeGenerationSettingItem {
11101110 JAVA (displayName = " Java" ),
11111111 KOTLIN (displayName = " Kotlin" );
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ sealed class StaticsMocking(
115115
116116object NoStaticMocking : StaticsMocking(
117117 displayName = " No static mocking" ,
118- description = " Don't use additional settings to mock static fields"
118+ description = " Do not use additional settings to mock static fields"
119119)
120120
121121object MockitoStaticMocking : StaticsMocking(displayName = " Mockito static mocking" ) {
@@ -551,7 +551,7 @@ enum class ParametrizedTestSource(
551551) : CodeGenerationSettingItem {
552552 DO_NOT_PARAMETRIZE (
553553 displayName = " Not parametrized" ,
554- description = " Don't generate parametrized tests"
554+ description = " Do not generate parametrized tests"
555555 ),
556556 PARAMETRIZE (
557557 displayName = " Parametrized" ,
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import org.utbot.framework.plugin.api.util.kClass
2121import org.utbot.fuzzer.providers.AbstractModelProvider
2222import java.util.*
2323import java.util.function.IntSupplier
24- import kotlin.collections.ArrayDeque
2524import kotlin.collections.ArrayList
2625import kotlin.collections.HashMap
2726import kotlin.reflect.KClass
@@ -58,12 +57,13 @@ open class FallbackModelProvider(
5857 mutableMapOf ()
5958 )
6059 classId.isIterable -> {
60+ @Suppress(" RemoveRedundantQualifierName" ) // ArrayDeque must be taken from java, not from kotlin
6161 val defaultInstance = when {
6262 defaultConstructor != null -> defaultConstructor.newInstance()
6363 classId.jClass.isAssignableFrom(java.util.ArrayList ::class .java) -> ArrayList <Any >()
6464 classId.jClass.isAssignableFrom(java.util.TreeSet ::class .java) -> TreeSet <Any >()
6565 classId.jClass.isAssignableFrom(java.util.HashMap ::class .java) -> HashMap <Any , Any >()
66- classId.jClass.isAssignableFrom(java.util.ArrayDeque ::class .java) -> ArrayDeque <Any >()
66+ classId.jClass.isAssignableFrom(java.util.ArrayDeque ::class .java) -> java.util. ArrayDeque <Any >()
6767 classId.jClass.isAssignableFrom(java.util.BitSet ::class .java) -> BitSet ()
6868 else -> null
6969 }
@@ -103,4 +103,4 @@ open class FallbackModelProvider(
103103 )
104104 }
105105 }
106- }
106+ }
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ apply from: "${rootProject.projectDir}/gradle/include/jvm-project.gradle"
22
33apply plugin : ' jacoco'
44
5+ configurations {
6+ fetchInstrumentationJar
7+ }
8+
59compileJava {
610 options. compilerArgs << ' -XDignore.symbol.file'
711}
@@ -50,8 +54,6 @@ dependencies {
5054 api project(" :utbot-framework" )
5155 api project(" :utbot-analytics" )
5256
53- api project(" :utbot-instrumentation" )
54-
5557 implementation " com.github.UnitTestBot:soot:${ soot_commit_hash} "
5658 implementation group : ' org.apache.commons' , name : ' commons-exec' , version : ' 1.2'
5759 implementation group : ' commons-io' , name : ' commons-io' , version : commons_io_version
@@ -64,6 +66,13 @@ dependencies {
6466 testImplementation group : ' org.mockito' , name : ' mockito-core' , version : ' 4.2.0'
6567 testImplementation group : ' org.mockito' , name : ' mockito-inline' , version : ' 4.2.0'
6668 testImplementation ' junit:junit:4.13.2'
69+ fetchInstrumentationJar project(path : ' :utbot-instrumentation' , configuration :' instrumentationArchive' )
70+ }
71+
72+ processResources {
73+ from(configurations. fetchInstrumentationJar) {
74+ into " lib"
75+ }
6776}
6877
6978jar { dependsOn classes
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ import org.utbot.framework.JdkPathService
3838import org.utbot.predictors.StateRewardPredictorFactoryImpl
3939import org.utbot.framework.PathSelectorType
4040import org.utbot.framework.UtSettings
41- import org.utbot.predictors.NNStateRewardPredictorBase
4241
4342private val logger = KotlinLogging .logger {}
4443
You can’t perform that action at this time.
0 commit comments