Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2460

Create a framework for writing unit tests that will access package-private fields and methods of Derby classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 10.5.1.1
    • None
    • Test
    • Normal

    Description

      Create a testing framework for writing unit tests that will not test the functionality but some other properties of the code like DRDA protocol, conditions of B-trees, behavior of locking, etc. These tests may be written in a same way like the function tests are but they will not test the public API but some underlaying Derby functions. So, there is a need for the tests to access some package private properties/methods.

      The discussion about this issue took place on derby-dev couple of months ago.

      Please, see
      http://www.nabble.com/Testing-implementation-of-private-classes-tf2919330.html#a8158779
      for more information.

      Currently, there is an implementation of such a test in org.apache.derby.impl.drda.TestProto.

      Attachments

        1. derby-2460-writeup-rev01.txt
          4 kB
          Kristian Waagan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julo Julius Stroffek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: