There is a Cube class.
His absolute path: D:/My_projects/my_project/src/main/java/com/Cube.java
There is a method there:
public double get_volume() { ... }
There is a JUnit Test to check the code – Test_cube
His absolute path: D:/My_projects/my_project/src/test/java/com/Test_cube.java
There is a method there:
@Test
public void get_volume() { ... }
The question is: is it possible to make the @see tag from the JavaDoc in the Cube class refer to a test method?
That’s what we have now:
/**
* @see com.Test_cube#get_volume()
*/
public double get_volume() { ... }
I wrote it that way, and it doesn’t link. @see looks just like text, not a link.
If I write src.test.java.Test_cube#get_volume(), then nothing will happen.
That is, as if you can’t do this in JavaDoc, refer to methods in other packages
Bufferum is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.