generated from yandex-praktikum/java-kanban
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Made FileBackedTaskManager constructor private and introduced a sta…
…tic `create` method for better encapsulation. - Added ManagerLoadException to handle file loading errors separately from save exceptions. - Updated tests in FileBackedTaskManagerTest to use the `create` method for manager initialization. - Refactored InMemoryHistoryManagerTest to include a @beforeeach setup method for improved test structure. - Added additional test cases for edge scenarios in InMemoryHistoryManager (e.g., handling empty history, removing non-existent tasks).
- Loading branch information
1 parent
3b12417
commit 0c793f6
Showing
5 changed files
with
44 additions
and
38 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package manager; | ||
|
||
public class ManagerLoadException extends RuntimeException { | ||
public ManagerLoadException(String message) { | ||
super(message); | ||
} | ||
} |
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
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