Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[junit5] Extensions to handle multiple layers of scope #113

Closed
kriegfrj opened this issue May 18, 2020 · 0 comments
Closed

[junit5] Extensions to handle multiple layers of scope #113

kriegfrj opened this issue May 18, 2020 · 0 comments
Milestone

Comments

@kriegfrj
Copy link
Contributor

It would be nice if our Jupiter extensions (eg) BundleContextExtension handled multiple layers of scope in a sensible way.

In a test class, for example, you might have a certain dummy service you wish to install for the life of the class, so that it is available for all tests in that class, and for all nested test classes in that class. Then give each individual method/nested class the ability to install services for the life of that test method/class, etc.

I know that Jupiter's extension model has been designed with this sort of hierarchy in mind. With a few tweaks we could probably leverage it in our extensions.

kriegfrj added a commit to kriegfrj/osgi-test that referenced this issue Jun 3, 2020
Fixes osgi#113, fixes osgi#114

Also improved test fidelity by using EngineTestKit

Fixes osgi#116.

Signed-off-by: Fr Jeremy Krieg <fr.jkrieg@greekwelfaresa.org.au>
@bjhargrave bjhargrave added this to the 1.0.0 milestone Jun 4, 2021
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

No branches or pull requests

2 participants