Skip to content

Conversation

@bjhargrave
Copy link
Member

JUnit 5.5 changed to call getSelectorsByType with the base
DiscoverySelector type which caused us to fail to substitute the OSGi
ready selectors.

We change to call the original request and then filter out the selector
we will supply. We then add the selectors we will supply to the stream.

Fixes #3745

@bjhargrave
Copy link
Member Author

This fix solves the problem identified in eclipse-osgi-technology/osgi-test#70 (comment).

Copy link
Contributor

@kriegfrj kriegfrj left a comment

Choose a reason for hiding this comment

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

You have translated my English into Java with 100% accuracy (even correcting my English in the process)! Thanks! Just one comment, a bit of a micro-optimisation that you can possibly ignore.

@kriegfrj
Copy link
Contributor

I'd also like to see a regression test or two - I can put these together and test against your patch.

JUnit 5.5 changed to call getSelectorsByType with the base
DiscoverySelector type which caused us to fail to substitute the OSGi
ready selectors.

We change to call the original request and then filter out the selector
we will supply. We then add the selectors we will supply to the stream.

Fixes #3745

Signed-off-by: BJ Hargrave <[email protected]>
This also fixed a bug where the bundle class loader was not used to
find test methods from the Test-Cases header string.

Signed-off-by: BJ Hargrave <[email protected]>
@bjhargrave bjhargrave merged commit 9b541a2 into bndtools:master Jan 29, 2020
@bjhargrave bjhargrave deleted the junit56-fix branch January 29, 2020 17:48
kriegfrj added a commit to kriegfrj/bnd that referenced this pull request Jan 30, 2020
bjhargrave added a commit that referenced this pull request Jan 30, 2020
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.

[junit-platform tester] Sub-request to handle plain DiscoverySelector

2 participants