Skip to content

Conversation

@keturn
Copy link
Contributor

@keturn keturn commented Mar 4, 2021

As of MovingBlocks/Terasology#4543 ModuleManager no longer does this by default, but without it MTE does not know where to find the dependencies of the module under test.

Supersedes #41


@Override
public void beforeAll(ExtensionContext context) throws Exception {
System.setProperty(ModuleManager.LOAD_CLASSPATH_MODULES_PROPERTY, "true");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is super sloppy: setting a global property in beforeAll and then never restoring it to its previous state.

but I'm tired and I rationalized it by telling myself that I don't think there are other test cases that will use a ModuleManager in the same process as an MTE test.

if there's a handy JUnit way to manage this, let me know.

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.

2 participants