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
javadocon your normal classes. (Because dependencies are not supposed to go in that direction. Tests depend on tested, not the other way around.)@seetags are not working. (You could submit a bug report against your build tool for this, but I doubt it would gain much traction.)