On Tue, 14 Oct 2025 10:53:55 GMT, Francesco Andreuzzi <[email protected]> wrote:
> JUnit ignores `@Test` methods which do not return `void`: > > > (1) [WARNING] @Test method 'public java.lang.String EmptyPath.toString()' > must not return a value. It will not be executed. > Source: MethodSource [className = 'EmptyPath', methodName = 'toString', > methodParameterTypes = ''] > at EmptyPath.toString(SourceFile:0) > > > I propose to amend the method signature. This looks trivial to me. This pull request has now been integrated. Changeset: 008d8d91 Author: Francesco Andreuzzi <[email protected]> Committer: Albert Mingkun Yang <[email protected]> URL: https://git.openjdk.org/jdk/commit/008d8d914cd4dd4573361390ee31120134338802 Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod 8369817: [TESTBUG] EmptyPath::toString is ignored Reviewed-by: jpai, ayang ------------- PR: https://git.openjdk.org/jdk/pull/27797
