Skip to content
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 46 commits into from
Feb 16, 2023
Merged

18 save to file #117

merged 46 commits into from
Feb 16, 2023

Conversation

xCandyFun
Copy link
Contributor

I have changed Main.java so that it can handles multiple requests with a while(true) loop.

xCandyFun and others added 17 commits February 15, 2023 22:14
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.
…-file-unit-tests

# Conflicts:
#	src/main/java/org/fungover/haze/SaveFile.java
#	src/test/java/org/fungover/haze/SaveFileTest.java
RobertMili
RobertMili previously approved these changes Feb 16, 2023
RobertMili
RobertMili previously approved these changes Feb 16, 2023
Fix formatting
@sonarcloud
Copy link

sonarcloud bot commented Feb 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

85.4% 85.4% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@cchriss123 cchriss123 left a 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

@jLereback jLereback added this pull request to the merge queue Feb 16, 2023
Merged via the queue into main with commit 0fdc5b8 Feb 16, 2023
@jLereback jLereback deleted the 18-save-to-file branch February 16, 2023 08:52
This was linked to issues Feb 16, 2023
@kappsegla kappsegla added the enhancement New feature or request label Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove QUIT from return switch. Save to file
5 participants