Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to a static method is not resolved in the Javadoc rendered view #1036

Closed
alisevych opened this issue Sep 29, 2022 · 1 comment · Fixed by #1051
Closed

Link to a static method is not resolved in the Javadoc rendered view #1036

alisevych opened this issue Sep 29, 2022 · 1 comment · Fixed by #1051
Assignees
Labels
ctg-bug Issue is a bug

Comments

@alisevych
Copy link
Member

Description

There are links to the static methods calls inside Java doc under @utbot.invokes tag.
In rendered view they are not resolved and shown as {@link Predicate#not(Predicate)}

To Reproduce

  1. Run the 'UTBotJava' project in IntelliJ Idea 2022.1.4
  2. Install one of the latest from main branch
  3. Generate tests with UnitTestBot for utbot-sample/src/main/java/org/utbot/examples/lambda/PredicateNotExample.java
  4. Open the generated test
  5. Render Java doc for the generated test containing @utbot.invokes tag

Expected behavior

Links under tags should be rendered correctly.

Actual behavior

Links to static methods {@link Predicate#not(Predicate)} and {@link Predicate#test(Object)} are not resolved in rendered view.

Visual proofs (screenshots, logs, images)

   /**
     * @utbot.classUnderTest {@link PredicateNotExample}
     * @utbot.methodUnderTest {@link PredicateNotExample#predicateNotExample(int)}
     * @utbot.executesCondition {@code (Predicate.not(i -> i.equals(5)).test(a)): False}
     * @utbot.invokes {@code {@link Predicate#not(Predicate)}}
     * @utbot.invokes {@code {@link Predicate#test(Object)}}
     * @utbot.returnsFrom {@code return false;}
     */
    @Test(description = "predicateNotExample: PredicateNot -> return false")
    public void testPredicateNotExample_NotPredicateNotIiEquals5Test() {
        PredicateNotExample predicateNotExample = new PredicateNotExample();

        boolean actual = predicateNotExample.predicateNotExample(5);

        assertFalse(actual);
    }

image

Environment

IntelliJ IDEA 2022.1.4
Gradle
JDK 11

@alisevych alisevych added the ctg-bug Issue is a bug label Sep 29, 2022
@korifey korifey moved this to Todo in UTBot Java Sep 29, 2022
@alisevych
Copy link
Member Author

@amandelpie FYI

Repository owner moved this from Todo to Done in UTBot Java Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug Issue is a bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants