Skip to content

Save Spring related settings if changed by user #2643

Closed
@alisevych

Description

@alisevych

Description

Save Spring related settings selected by User on action dialog.
Spring configuration, Test type, Active profile(s), Mocking strategy, Mock static methods - their changes from default should be saved and applied on the next dialog opening.

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA 2023.2
  2. Open spring-petclinic project
  3. Generate tests for Owner class with the following changed settings:
  • PetClinicApplication as Spring configuration
  • JUnit 4 as Testing framework
  1. Wait generation is finished
  2. Reopen action dialog for the same/different class

Expected behavior

On step 3 changed settings should be saved in .idea/utbot-settings.xml
On step 5 the settings used for test generation should be applied.

Actual behavior

Testing framework JUnit 4 is saved and applied.
Spring configuration is selected by default - No Configuration.

Screenshots, logs

Step 3:

image

Step 5:

image

Environment

IntelliJ IDEA Ultimate/Community 2023.2 (supported versions)

Metadata

Metadata

Assignees

Labels

comp-springIssue is related to Spring projects supportcomp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a bugctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions