GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Link to a static method is not resolved in the Javadoc rendered view · Issue #1036 · UnitTestBot/UTBotJava

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

New issue
Copy link
New issue
Copy link
Closed
#1051
Closed
Link to a static method is not resolved in the Javadoc rendered view#1036
#1051
Copy link
Assignees
onewhl
Labels
ctg-bugIssue is a bugIssue is a bug

Description

@alisevych
alisevych
opened on Sep 29, 2022
Issue body actions

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

Activity

  1. alisevych
    added
    ctg-bugIssue is a bugIssue is a bug
    on Sep 29, 2022
  2. korifey
    added this to UTBot Javaon Sep 29, 2022
  3. alisevych
    assigned
    onewhl
    on Sep 29, 2022
  4. korifey
    moved this to Todo in UTBot Javaon Sep 29, 2022
  5. alisevych commented on Sep 29, 2022

    @alisevych
    alisevych
    on Sep 29, 2022
    MemberAuthor
    More actions

    @amandelpie FYI

  6. onewhl
    closed this as completedin #1051on Oct 3, 2022
  7. Repository owner moved this from Todo to Done in UTBot Javaon Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @onewhl
    onewhl

Labels

ctg-bugIssue is a bugIssue is a bug

Type

No type

Projects

  • UTBot Java
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.