LexCheck

API Development Tests

Java classes under Tools directory are tools use LexCheck Java APIs. All these tools need to be tested!

  • Directory: ${TEST_DIR}/LC/ApiDevTest/
  • Setup: ${TEST_DIR}/LC/ApiDevTest/Data/

    Provide the following files in the directories belows. They are used as goldStd for comparison.

    • in.lexRecords.data: the input file of lexRecords in text format
    • in.inflVars.data: the input file of inflVars
    • in.lexRecords.xml: the input file of lexRecords in XML format

    Directories for different types of test inputs:

    • Lexicon/${YEAR}/:
    • LexRecords/:
    • LexRecord/:

  • To run: cd ${TEST_DIR}/LC/ApiDevTest/bin/
  • shell>ApiDevTest
    	 ---------------------------------------
    	 I. Please select the test data:
    	 => Please make sure link the input lexRecord file to inTest.data:
    	 ---------------------------------------
    	 1) The Lexicon ..
    	 2) LexRecords ..
    	 3) a single lexRecord ..
    	 ---------------------------------------
    
    	 ---------------------------------------
    	 II. Please select the following tests:
    	 ------ Unit Tests on the Lexicon ------
    	 1) GenerateInflVars ..
    	 2) LexCheck ..
    	 3) LexCrossCheck ..
    	 ----------------------
    	 4) ToJavaObjectFromTextFile ..
    	 5) ToXmlFromTextFile ..
    	 6) ToJavaObjectFromXmlFile ..
    	 ----------------------
    	 7) ValidateContentFromTextFile ..
    	 8) ValidateSyntaxFromTextFile ..
    	 -------------------------------------