Skip to content

Introduce extension API for customizing the ClassLoader in Jupiter #3028

Description

Following #201 and #3014, this issue will focus on creating a new extension API in JUnit Jupiter that allows for ClassLoader customization.

This extension should be able to work in conjunction with others, such as @TestTemplate.

How I see it designed in JUnit Jupiter:

  • a new interface ClassLoaderModifier with a unique method ClassLoader modify(ClassLoader current)
    • the documentation should precise that the returned class loader should have the same parent as the given one

What needs to be checked :

  • Is this model sufficient for other class loading modifying tools (powermocks, robolectric, etc.) ?

🙏 Please do not troll, ask for due date or complain on this ticket, the original ticket is cluttered with these unhelpful comments and is really painful to read when it comes to what features should be implemented and how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions