Skip to content

Dependency for Mockito static mocking is not recognized #836

Closed as not planned
@alisevych

Description

@alisevych

Description

Mockito static mocking is not recognized while dependency has already been added into IntelliJ project.

To Reproduce

  1. Open IntelliJ Idea with one of the latest installed UTBot plugin
  2. Create a new IntelliJ project with JDK 8/11
  3. Create "org/utbot/examples" package in src folder
  4. Copy-paste "mock" package into it
  5. Generate tests with UTBot... for MockStaticMethodExample with "Mockito static mocking" option
  6. Open Generate tests with UTBot... for MockStaticMethodExample again

Expected behavior

"Mockito static mocking" should be selected - and no red text should be displayed near it.

Actual behavior

"Mockito static mocking" is selected - and red text "will be configured" is displayed - although it has been already used.

Visual proofs (screenshots, logs, images)

image

Environment

Windows 10 Pro
IntelliJ IDEA 2022.1.4
IntelliJ project with JDK 11

Metadata

Metadata

Assignees

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions