Skip to content

Render Spring setUp and tearDown without regions #1920

Closed
@EgorkaKulikov

Description

@EgorkaKulikov

Description

There is a specific code segment is tests generated for Spring that configures mocks.
It should be rendered without regions and their comments, it is to odd now.

Actual behavior

 ///region Test run utility methods

    ///region Mocking utils

    @BeforeEach
    public void setUp() {
        mockitoCloseable = openMocks(this);
    }

    @AfterEach
    public void tearDown() throws Exception {
        mockitoCloseable.close();
    }
    ///endregion

    ///endregion

Expected behavior

  • variable declaration
  • setUp method declaration
  • tearDown method declaration

Context

Issue is actual for Spring codegen only.

Variables rendering is supported in #1788

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorcomp-springIssue is related to Spring projects supportctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions