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

Convert derbynet/testProtocol.java to JUnit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.9.1.0
    • Network Server, Test
    • None

    Description

      testProtocol.java executes DRDA commands from a file written in a special-purpose language. The statements are very much like assertions, so it should be fairly easy to convert the test to JUnit.

      Suggested approach: Change the interpreter (TestProto.java) so that is uses Assert.fail() instead of System.err.println() and System.exit(), and BaseTestCase.println() instead of System.out.println(). It should also use TestConfiguration to get the host name and port number.

      Attachments

        1. d2031.diff
          129 kB
          Julius Stroffek
        2. d2031.stat
          0.9 kB
          Julius Stroffek
        3. derby-2031-1a-grammar_enum.diff
          5 kB
          Kristian Waagan
        4. derby-2031-1a-grammar_enum.stat
          0.2 kB
          Kristian Waagan
        5. derby-2031-2a-test.diff
          54 kB
          Kristian Waagan
        6. derby-2031-3a-enable_test.diff
          5 kB
          Kristian Waagan
        7. derby-2031-3a-enable_test.stat
          0.3 kB
          Kristian Waagan
        8. derby-2031-3b-enable_test.diff
          5 kB
          Kristian Waagan
        9. derby-2031-4a-close_streams.diff
          1 kB
          Kristian Waagan
        10. derby-2031-5a-new_adapter.diff
          47 kB
          Kristian Waagan
        11. derby-2031-5a-new_adapter.stat
          0.9 kB
          Kristian Waagan
        12. derby-2031-5b-new_adapter.diff
          48 kB
          Kristian Waagan
        13. derby-2031-6a-pptesting_removal.diff
          38 kB
          Kristian Waagan
        14. derby-2031-6a-pptesting_removal.stat
          0.2 kB
          Kristian Waagan
        15. derby-2031-7a-old_harness_test_removal.diff
          63 kB
          Kristian Waagan
        16. derby-2031-7a-old_harness_test_removal.stat
          1 kB
          Kristian Waagan
        17. derby-2031-pre_with_git.diff
          102 kB
          Kristian Waagan
        18. derby-2031-pre_with_git.stat
          1 kB
          Kristian Waagan

        Issue Links

          Activity

            People

              kristwaa Kristian Waagan
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: