-
Notifications
You must be signed in to change notification settings - Fork 30
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
#78: the properties file stays stable. Wrote test #107
#78: the properties file stays stable. Wrote test #107
Conversation
The PR tests should succeed if PR #108 is merged. |
cli/src/test/java/com/devonfw/tools/ide/environment/EnvironmentVariablesPropertiesFileTest.java
Outdated
Show resolved
Hide resolved
…hanges-to-ide.properties
…ork on github, so now tmp file to target dir
cli/src/test/java/com/devonfw/tools/ide/environment/EnvironmentVariablesPropertiesFileTest.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/environment/EnvironmentVariablesPropertiesFileTest.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/environment/EnvironmentVariablesPropertiesFileTest.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/environment/EnvironmentVariablesPropertiesFileTest.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/environment/EnvironmentVariablesPropertiesFileTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MattesMrzik thanks for adding this test. You created a nice test-scenario that should cover most relevant cases. 👍
You could even add a case that removes a variable by settings its value to null
to cover that as well.
I left a few general comments on writing great tests. Please have a look. After resolving these comments, we can merge.
…improve-writing-changes-to-ide.properties
…rties' of https://github.com/MattesMrzik/IDEasy into feature/devonfw#78-improve-writing-changes-to-ide.properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MattesMrzik thanks for the rework. Now everything is perfectly nailed - great work 👍
The test confirms that the properties file remains stable even if values are updated. The test further revealed, that the set method of EnvironmentVariablesPropertiesFile does not update the "export" flag if the old and new value are identical (see issue #106 )