Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.

LexCheck

Deploy Unit Tests

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

  • Directory: ${TEST_DIR}/LC/UnitTest/
  • ${LC_YEAR}: LexCheck version
  • ${LEXICON_YEAR}: Lexicon version
  • shell>TestTools <year>

    OptionProgramDescriptionTest InputTest OutputTest DescriptionTime
    1GenerateInflVars ${LEXICON_DIR}/tables.release/LEXICON ./data/${LC_YEAR}/inflVars.data
    • difference (inflVars.data) should be the 0
    15 sec.
    2LexCheck ${LEXICON_DIR}/tables.release/LEXICON ./data/${LC_YEAR}/LEXICON.lc
    • no error message
    • difference (LEXICON.lc.diff) should be the 0
    10 sec.
    3LexCrossCheck ${LEXICON_DIR}/tables.release/LEXICON
    • ./data/${LC_YEAR}/LEXICON.crossFix
    • ./data/${LC_YEAR}/LEXICON.crossFix.dupRec
    • ./data/${LC_YEAR}/LEXICON.crossFix.log
    • Only works after Lexicon.2014
    • difference (LEXICON.crossFix.diff) should be the 0
    20 sec.
    4ToJavaObjectFromTextFile ${LEXICON_DIR}/tables.release/LEXICON ./data/${LC_YEAR}/LEXICON.fromTxt
    • difference (LEXICON.fromTxt.diff) should be the 0
    15 sec.
    5ToXmlFromTextFile ${LEXICON_DIR}/tables.release/LEXICON ./data/${LC_YEAR}/LEXICON.xml
    • no error message
    20 sec.
    6ToJavaObjectFromXmlFile ./data/${LC_YEAR}/LEXICON.xml ./data/${LC_YEAR}/LEXICON.fromXml
    • difference (LEXICON.fromXml.diff) should be the 0
    90 sec.
    7ValidateContentFromTextFile ${LEXICON_DIR}/tables.release/LEXICON ./data/${LC_YEAR}/LEXICON.content
    • Line count, word count, and character count should bethe same
    25 sec.
    8ValidateSyntaxFromTextFile ${LEXICON_DIR}/tables.release/LEXICON N/A
    • Message: No error found.
    5 sec.