From 31d9fb3e81547edbf25e0d8c9820442d01481f4f Mon Sep 17 00:00:00 2001 From: Mark Domingo Date: Mon, 19 Jan 2026 18:25:15 +0800 Subject: [PATCH 1/4] Add BugTest annotation for JUnit tests --- .../tools/ddk/test/core/jupiter/BugTest.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java diff --git a/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java b/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java new file mode 100644 index 000000000..0e6006aa6 --- /dev/null +++ b/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java @@ -0,0 +1,41 @@ +/******************************************************************************* + * Copyright (c) 2016 Avaloq Group AG and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Avaloq Group AG - initial API and implementation + *******************************************************************************/ +package com.avaloq.tools.ddk.test.core; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import org.junit.jupiter.api.Test; + +/** + * An annotation used to indicate which bug issues a test method or test class covers. + */ +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.METHOD, ElementType.TYPE}) +@Test +public @interface BugTest { + /** + * The list of bug issues. + * + * @return the list of bug issues + */ + String[] value(); + + /** + * Returns whether the corresponding bug is already fixed. Bug tests for unresolved bugs are disabled for common test runs. + * + * @return true for unresolved bugs; false for fixed bugs. + */ + boolean unresolved() default false; + +} From 7bb200bb516132fba5fbe10761c1e96443e2ebb6 Mon Sep 17 00:00:00 2001 From: Mark Domingo Date: Mon, 19 Jan 2026 18:27:18 +0800 Subject: [PATCH 2/4] Update copyright year in BugTest.java Updated copyright year from 2016 to 2026. --- .../src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java b/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java index 0e6006aa6..517f62688 100644 --- a/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java +++ b/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. + * Copyright (c) 2026 Avaloq Group AG and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at From dc795b23caf5e153a073ef760d37b7fd4fc56622 Mon Sep 17 00:00:00 2001 From: Mark Domingo Date: Mon, 19 Jan 2026 18:32:56 +0800 Subject: [PATCH 3/4] Use the junit5 version of BugTest in BugTestAwareRule --- .../avaloq/tools/ddk/test/core/jupiter/BugTestAwareRule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTestAwareRule.java b/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTestAwareRule.java index eaafe5d0f..05da7cd23 100644 --- a/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTestAwareRule.java +++ b/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTestAwareRule.java @@ -16,7 +16,7 @@ import org.junit.jupiter.api.extension.InvocationInterceptor; import org.junit.jupiter.api.extension.ReflectiveInvocationContext; -import com.avaloq.tools.ddk.test.core.BugTest; +import com.avaloq.tools.ddk.test.core.jupiter.BugTest; /** @@ -98,3 +98,4 @@ public void interceptTestMethod(final Invocation invocation, final Reflect } } + From 68028706f4269895fea861b2fabb792e529e1f26 Mon Sep 17 00:00:00 2001 From: Mark Domingo Date: Mon, 19 Jan 2026 18:40:53 +0800 Subject: [PATCH 4/4] fix wrong package name --- .../src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java b/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java index 517f62688..60993d70f 100644 --- a/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java +++ b/com.avaloq.tools.ddk.test.core/src/com/avaloq/tools/ddk/test/core/jupiter/BugTest.java @@ -8,7 +8,7 @@ * Contributors: * Avaloq Group AG - initial API and implementation *******************************************************************************/ -package com.avaloq.tools.ddk.test.core; +package com.avaloq.tools.ddk.test.core.jupiter; import java.lang.annotation.ElementType; import java.lang.annotation.Retention;