On Fri, 14 Feb 2025 14:30:25 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:

> Don't consider functions without `jdk.jpackage.test.Annotations.Test` 
> annotation as tests.
> 
> Additionally, enhance the functionality of 
> `jdk.jpackage.test.Annotations.ParameterSupplier` annotation: make an empty 
> string the default value. If the method name is empty (the default annotation 
> value), then the name of the parameter supplier method is the same as the 
> name of the annotated method. E.g.: `@Test @ParameterSupplier public void 
> testInteger(int v)` is equivalent to `@Test @ParameterSupplier("testInteger") 
> public void testInteger(int v)`.

This pull request has now been integrated.

Changeset: 5cf11324
Author:    Alexey Semenyuk <asemen...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/5cf11324afdeed0189e0491845a7ffe78c7c1e13
Stats:     65 lines in 4 files changed: 43 ins; 10 del; 12 mod

8350098: jpackage test lib erroneously will run methods without @Test 
annotation as tests

Reviewed-by: almatvee

-------------

PR: https://git.openjdk.org/jdk/pull/23632

Reply via email to