Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-45

Review and clean up unit tests

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1
    • None

    Description

      Things to review and clean up:
      1) The way that the tests find resource files is hacked up right now. For legacy reasons they use classes in the junit_extension package to locate files. The location of the files is decided by TestPropertyReader.getJUnitBasePath(). Since Maven requires (or at least strongly encourages) loading resources through the classpath, I hacked up getJUnitBasePath() to do a ClassLoader lookup on a dummy resource and return the directory in which it is found. This ought to be cleaned up at some point.

      2) grep for TODO in src/test/java in both uimaj-core and uimaj-cpe. There are many things that need to be addressed. Several unit tests were commented out entirely because they didn't work right in Maven for some reason.

      Attachments

        Activity

          People

            alally Adam P. Lally
            alally Adam P. Lally
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: