Skip to content

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

Description

@alisevych

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")
publicvoidtestPredicateNotExample_NotPredicateNotIiEquals5Test() {
PredicateNotExamplepredicateNotExample = newPredicateNotExample();
booleanactual = predicateNotExample.predicateNotExample(5);
assertFalse(actual);
}

image

Environment

IntelliJ IDEA 2022.1.4
Gradle
JDK 11

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a bug

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions