Closed
Description
Description
Links in Java docs are starting with '.' if the tested class has no package and is placed in the Sources root.
To Reproduce
- Download UnitTestBot plugin from main
- Install it in IntelliJ Idea (remove previous)
- Open/create a project
- Add the following Java class to the Sources root - without package:
public class A {
public int test(){
return 1;
}
}
- Generate tests with UnitTestBot... for it
- Wait tests are generated
Expected behavior
Links to classes/methods are supposed to be resolved.
Actual behavior
Links to the class / method are starting with '.' and cannot be resolved.
They are displayed red.
Visual proofs (screenshots, logs, images)
The following test class is generated:
public class ATest {
///region Test suites for executable A.test
///region FUZZER: SUCCESSFUL EXECUTIONS for method test()
/**
* @utbot.classUnderTest {@link .A}
* @utbot.methodUnderTest {@link .A#test()}
*/
@Test
@DisplayName("test: arg_0 = A() -> return 1")
public void testTestReturnsOne() {
A a = new A();
int actual = a.test();
assertEquals(1, actual);
}
///endregion
///endregion
}
Environment
Windows 10 Pro
IntelliJ IDEA 2022.1.4 (JBR 11) - 2022.2.3 (JBR 17)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done