Closed
Description
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
- Run the 'UTBotJava' project in IntelliJ Idea 2022.1.4
- Install one of the latest from main branch
- Generate tests with UnitTestBot for utbot-sample/src/main/java/org/utbot/examples/lambda/PredicateNotExample.java
- Open the generated test
- 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);
}
Environment
IntelliJ IDEA 2022.1.4
Gradle
JDK 11
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done