Skip to content

Duplicate Summaries with Tags in Rendered view #985

Closed
@alisevych

Description

@alisevych

Description

Summaries are duplicated when rendering mode is on.
Also annotations and method name are duplicated above the Java doc.

To Reproduce

  1. Run the 'UTBotJava' project in IntelliJ Idea 2022.1.4
  2. Open utbot-sample/src/test/java/org/utbot/examples/algorithms/ArraysQuickSortTest.java
  3. Use one of the latest builds of plugin to generate tests
  4. Open the generated test
  5. Find tests in SYMBOLIC EXECUTION ENGINE: ERROR SUITE
  6. Render Java docs (Ctrl+Alt+Q)

Expected behavior

Java docs should be rendered correctly - without duplications.

Actual behavior

Tagged information is duplicated.
Annotations and method name are duplicated above the Java doc.

Visual proofs (screenshots, logs, images)

Test in rendered view:

image

Test in text mode:

/**
     * @utbot.classUnderTest {@link ArraysQuickSort}
     * @utbot.methodUnderTest {@link ArraysQuickSort#sort(int[], int, int, int[], int, int)}
     * @utbot.executesCondition {@code (right - left < 286): True},
     * {@code (null): False}
     * @utbot.invokes {@link ArraysQuickSort#sort(int[], int, int, boolean)}
     * @utbot.throwsException {@link ArrayIndexOutOfBoundsException} in: internalSort(a, left, right, true);
     */
    @Test
    @DisplayName("sort: internalSort(a, left, right, true) : True -> ThrowArrayIndexOutOfBoundsException")
    public void testSort_ThrowArrayIndexOutOfBoundsException() {
        int[] a = {1, 1};

        /* This test fails because method [org.utbot.examples.algorithms.ArraysQuickSort.sort] produces [java.lang.ArrayIndexOutOfBoundsException] */
        ArraysQuickSort.sort(a, -208, 71, null, -255, -255);
    }

Environment

Windows 10 Pro
IntelliJ IDEA 2022.1.4
JDK 11

Metadata

Metadata

Assignees

Labels

comp-summariesSomething related to the method names, code comments and display names generationctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions