Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.utbot.framework.codegen.tree.ututils.UtilClassKind.Companion.PACKAGE_
import org.utbot.framework.codegen.tree.ututils.UtilClassKind.Companion.UT_UTILS_BASE_PACKAGE_NAME
import org.utbot.framework.plugin.api.BuiltinClassId
import org.utbot.framework.plugin.api.BuiltinConstructorId
import org.utbot.framework.plugin.api.BuiltinMethodId
import org.utbot.framework.plugin.api.ClassId
import org.utbot.framework.plugin.api.CodegenLanguage
import org.utbot.framework.plugin.api.MethodId
Expand Down Expand Up @@ -301,16 +302,17 @@ internal val utKotlinUtilsClassId: ClassId
isKotlinObject = true
)

/**
* [MethodId] for [AutoCloseable.close].
*/
val openMocksMethodId = MethodId(
val openMocksMethodId = BuiltinMethodId(
classId = MockitoAnnotations::class.id,
name = "openMocks",
returnType = AutoCloseable::class.java.id,
parameters = listOf(objectClassId),
isStatic = true,
)

/**
* [MethodId] for [AutoCloseable.close].
*/
val closeMethodId = MethodId(
classId = AutoCloseable::class.java.id,
name = "close",
Expand Down