-
Notifications
You must be signed in to change notification settings - Fork 8
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
18 save to file #117
Merged
Merged
18 save to file #117
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19fcf56
to
0a5f2ab
Compare
For writing tests against filecontent with assertJ the method Assertions.linesOf(Path) is needed to avoid using File from java.io. Not available before 3.23.0.
To be able to specify a path to a test folder during test running a new method will be added called setDir(Path). Default folder will still be used in user home folder if not specifying a Path with setDir. Also removes \n from writeString call that otherwise creates an empty line at the end.
Adds two test one for a successful save and one for trying to save to an invalid folder so no file can be created.
Adds new test that changes user.home property to run more code.
Rewritten testmethods that can test saving to file by changing 'user.home' property.
590a689
to
5a1c590
Compare
…-file-unit-tests # Conflicts: # src/main/java/org/fungover/haze/SaveFile.java # src/test/java/org/fungover/haze/SaveFileTest.java
RobertMili
previously approved these changes
Feb 16, 2023
RobertMili
previously approved these changes
Feb 16, 2023
Fix formatting
RobertMili
approved these changes
Feb 16, 2023
Kudos, SonarCloud Quality Gate passed! |
cchriss123
approved these changes
Feb 16, 2023
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.
Great job code looks and runs great still
This was
linked to
issues
Feb 16, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have changed Main.java so that it can handles multiple requests with a while(true) loop.