# Deletion of the old and creation of a new Git repository for the
Eclipse workspace since the old turned out to be erroneous due to all
the playing around and exploring the different Git features.
# Indexing of the TextBuddy project.
Added 1st JUnit Test Case
# Added 2nd JUnit Test Case for display command.
# In doing so, I also understood what the tutor meant by saying that my
displayLine implementation is weird.. Therefore, I rethought the whole
method and made its feedback consistent to the other methods. As a
result, testing the display command is significantly easier now.
Added more JUnit Test Cases. Now the whole test case used in assignment
CE1 is implemented as JUnit test.
Added a JUnit Test Case for invalid command formats as suggested by the
tutor in the CE1 code review.
Further Refactoring:
- COMMAND_TYPE -> CommandType
- cases in the switch statement more indented
- added curled bracket to single if-statement in determineCommandType()
- removed the errors thrown in executeCommand() and
determineCommandType() and replaced them by simple error messages as
suggested by the tutor in the code review
- removed magical strings like "I/O exception occures" abstracted them
into a final static string MESSAGE_IO_EXCEPTION as suggested by the
tutor
Improvement of code functionality:
The method removeFirstWord might cause unintended result. Example: if
user input "add add egg to bowl", will result in the string
"egg to bowl" instead of "add egg to bowl". Therefore,
userCommand.replaceFirst will be used instead.
Further Refactoring:
Specified more Error messages to remove magical strings like
MESSAGE_NO_FILE_NAME_GIVEN, MESSAGE_FILE_COULD_NOT_BE_CREATED
Start of implementing an ArrayList instead of editing the text file
directly.
Completion of implementing an ArrayList instead of editing the text file
directly. Several methods had to be totally changed. However, the
implementation of the new features for CE2 will be significantly easier
by using an temporary ArrayList.
Debugged the method deleteLine.
Added JUnit test case for sorting feature according to TDD.
Added code to pass the test for sorting the lines.
Added JUnit test case for the searching feature according to TDD.
Added code to pass the test for searching the lines.
Added comments to the new methods.
Updating the comments at the beginning.
Updating JUnit Test Cases.
Corrected last small mistakes in comments. Finished for Submission.
Corrected one mistake in comment. Finally finished for Submission.