Skip to content

Mock static methods should be enabled only when Mocking strategy is enabled #2243

Description

@alisevych

Description

Mock static methods checkbox is enabled and can be changed when Mocking strategy is disabled.

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA
  2. Open any project with Spring configurations, for example spring-petclinic
  3. Press Alt+Shift+U on a Java class
  4. Select some Spring configuration from suggestions

Expected behavior

Mock static methods checkbox should be disabled together with Mocking strategy

Actual behavior

Mocking strategy is disabled.
Mock static methods checkbox is enabled and can be changed.

Screenshots, logs

image

Environment

IntelliJ IDEA version - 2023.1.2 (Ultimate Edition)
Project - spring-petclinic / TwoAnimals
JDK - 11/17

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions