Skip to content

Conversation

@markdomeng
Copy link
Collaborator

removed junit4 dependencies
removed dependency to DiscerningSuite. Once we migrate the DiscerningSuite to Junit5 we can use it again here

rubenporras
rubenporras previously approved these changes Oct 17, 2025
removed junit4 dependencies
removed dependency to DiscerningSuite. Once we migrate the
DiscerningSuite to Junit5 we can use it again here
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;

import com.avaloq.tools.ddk.test.core.junit.runners.DiscerningSuite;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this import needs to be removed.

Copy link
Member

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to remove the unused import.

Then, PMD gives several warnings on other classes, could you address this?

Finally, I think it would be good if you could approve and rebase on #1192.

@markdomeng
Copy link
Collaborator Author

You need to remove the unused import.

Then, PMD gives several warnings on other classes, could you address this?

Finally, I think it would be good if you could approve and rebase on #1192.

they look fals positive:
[INFO] �[1m--- �[0;32mpmd:3.28.0:check�[m �[1m(default-cli)�[m @ �[36mcom.avaloq.tools.ddk.xtext.ui.test�[0;1m ---�[m
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.quickfix.WorkbenchResolutionAdaptorRunTest:59 Rule:JUnit5TestShouldBePackagePrivate Priority:3 JUnit 5 tests should be package-private..
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.quickfix.WorkbenchResolutionAdaptorRunTest:99 Rule:SignatureDeclareThrowsException Priority:3 A method/constructor should not explicitly throw java.lang.Exception.
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.quickfix.WorkbenchResolutionAdaptorTest:30 Rule:JUnit5TestShouldBePackagePrivate Priority:3 JUnit 5 tests should be package-private..
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.quickfix.WorkbenchResolutionAdaptorTest:41 Rule:SignatureDeclareThrowsException Priority:3 A method/constructor should not explicitly throw java.lang.Exception.
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.templates.ResourceNameTemplateVariableResolverTest:37 Rule:JUnit5TestShouldBePackagePrivate Priority:3 JUnit 5 tests should be package-private..
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.templates.SimpleEnumTemplateVariableResolverTest:36 Rule:JUnit5TestShouldBePackagePrivate Priority:3 JUnit 5 tests should be package-private..
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.quickfix.WorkbenchResolutionAdaptorRunTest:59 Rule:JUnit5TestShouldBePackagePrivate Priority:3 JUnit 5 tests should be package-private..
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.quickfix.WorkbenchResolutionAdaptorRunTest:99 Rule:SignatureDeclareThrowsException Priority:3 A method/constructor should not explicitly throw java.lang.Exception.
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.quickfix.WorkbenchResolutionAdaptorTest:30 Rule:JUnit5TestShouldBePackagePrivate Priority:3 JUnit 5 tests should be package-private..
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.quickfix.WorkbenchResolutionAdaptorTest:41 Rule:SignatureDeclareThrowsException Priority:3 A method/constructor should not explicitly throw java.lang.Exception.
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.templates.ResourceNameTemplateVariableResolverTest:37 Rule:JUnit5TestShouldBePackagePrivate Priority:3 JUnit 5 tests should be package-private..
[WARNING] PMD Failure: com.avaloq.tools.ddk.xtext.ui.templates.SimpleEnumTemplateVariableResolverTest:36 Rule:JUnit5TestShouldBePackagePrivate Priority:3 JUnit 5 tests should be package-private..
[INFO]

example:
The first warning is issued on the CLASS declaration, this is not right. java class should be public.
the second one is issued on setup() but in some classes it is not issued..

I think pMD is just not working correctly yest with Junit5 ?

removed junit4 dependencies
removed dependency to DiscerningSuite. Once we migrate the
DiscerningSuite to Junit5 we can use it again here
@joaodinissf
Copy link
Collaborator

LGTM after fixing the small syntax issue I commented above. @rubenporras ?

…ext/ui/test/XtextUiTestSuite.java


Fix formatting

Co-authored-by: João Dinis Ferreira <hello@joaof.eu>
@rubenporras
Copy link
Member

LGTM as well

@markdomeng markdomeng merged commit 991d16a into dsldevkit:master Oct 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants