Hello,
I implemented the delete index query and JUnit tests for metafile utils.
Here is the summary of implementation.
This pull request contains the following modifications.
Delete index query implementation.
Query structure:
*delete-index("path-to-index-folder")*
Note:- The execution of delete index is just as same as update-index. So
some changes were done to IndexUpdator.java class so that, index deletion
can be done within the same class. Several functionalities were broken into
functions to be used with maximum flexibility.
The query level test case is also added.
JUnit test cases to test MetaFileUtil functions.
This contains test cases for following.
1. Generating MD5 checksum for XML files.
2. Creating metadata file
3. Validating the file content
4. Detecting XML file changes and validation.
5. Deleting the metadata file.
Please review.
Thank you very much.
Menaka
--
*Menaka Madushanka Jayawardena*
Faculty of Engineering, <http://www.pdn.ac.lk/eng>
University of Peradeniyaya.
LinkedIn <http://lk.linkedin.com/in/menakajayawardena>
TP:- 071 885 1183/ 071 350 5470