Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Ensure MavenSettings is reinitialised after tests. Switch to use of static property name #345

Merged
merged 1 commit into from Aug 4, 2016

Conversation

manstis
Copy link
Member

@manstis manstis commented Aug 3, 2016

Following discussion on IRC and this updated tests accordingly.

@manstis
Copy link
Member Author

manstis commented Aug 3, 2016

@mariofusco @psiroky Care to review?

oldSettingsXmlPath );
} else {
System.clearProperty( MavenSettings.CUSTOM_SETTINGS_PROPERTY );
Copy link
Contributor

Choose a reason for hiding this comment

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

This (the 6 lines above) seems to be repeating several times in the tests. Would it make sense to move to a method?

@psiroky
Copy link
Contributor

psiroky commented Aug 3, 2016

@manstis looks good, I just made a minor comment about avoiding small duplication.

@manstis
Copy link
Member Author

manstis commented Aug 4, 2016

@psiroky Updated. Please review (again).

@psiroky
Copy link
Contributor

psiroky commented Aug 4, 2016

Nice, thanks @manstis.
+1 to merge

@manstis manstis merged commit 52c346e into kiegroup:master Aug 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants