Derby
  1. Derby
  2. DERBY-2031

Convert derbynet/testProtocol.java to JUnit

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.3.1.4
    • Fix Version/s: 10.9.1.0
    • Component/s: Network Server, Test
    • Labels:
      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.

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

        Issue Links

          Activity

          Knut Anders Hatlen created issue -
          Julius Stroffek made changes -
          Field Original Value New Value
          Assignee Julius Stroffek [ julo ]
          Julius Stroffek made changes -
          Attachment d2031.diff [ 12347287 ]
          Attachment d2031.stat [ 12347288 ]
          Julius Stroffek made changes -
          Derby Info [Patch Available]
          Julius Stroffek made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Julius Stroffek made changes -
          Link This issue depends on DERBY-2460 [ DERBY-2460 ]
          Myrna van Lunteren made changes -
          Derby Info [Patch Available]
          Kristian Waagan made changes -
          Assignee Julius Stroffek [ julo ] Kristian Waagan [ kristwaa ]
          Kristian Waagan made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Kristian Waagan made changes -
          Attachment derby-2031-1a-grammar_enum.diff [ 12384126 ]
          Attachment derby-2031-1a-grammar_enum.stat [ 12384127 ]
          Kristian Waagan made changes -
          Derby Info [Patch Available]
          Kristian Waagan made changes -
          Fix Version/s 10.5.0.0 [ 12313010 ]
          Derby Info [Patch Available]
          Kristian Waagan made changes -
          Attachment derby-2031-2a-test.diff [ 12384384 ]
          Kristian Waagan made changes -
          Attachment derby-2031-3a-enable_test.stat [ 12384751 ]
          Attachment derby-2031-3a-enable_test.diff [ 12384750 ]
          Kristian Waagan made changes -
          Derby Info [Patch Available]
          Kristian Waagan made changes -
          Attachment derby-2031-3b-enable_test.diff [ 12384955 ]
          Kristian Waagan made changes -
          Derby Info [Patch Available]
          Kristian Waagan made changes -
          Attachment derby-2031-4a-close_streams.diff [ 12387186 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.5.0.0 [ 12313010 ]
          Tiago R. Espinha made changes -
          Link This issue is part of DERBY-4090 [ DERBY-4090 ]
          Kristian Waagan made changes -
          Attachment derby-2031-pre_with_git.diff [ 12514680 ]
          Attachment derby-2031-pre_with_git.stat [ 12514681 ]
          Kristian Waagan made changes -
          Issue & fix info Patch Available [ 10102 ]
          Kristian Waagan made changes -
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Kristian Waagan made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Kristian Waagan made changes -
          Attachment derby-2031-5a-new_adapter.diff [ 12516169 ]
          Attachment derby-2031-5a-new_adapter.stat [ 12516170 ]
          Kristian Waagan made changes -
          Attachment derby-2031-5b-new_adapter.diff [ 12517245 ]
          Kristian Waagan made changes -
          Attachment derby-2031-6a-pptesting_removal.diff [ 12518216 ]
          Attachment derby-2031-6a-pptesting_removal.stat [ 12518217 ]
          Kristian Waagan made changes -
          Kristian Waagan made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Issue & fix info Patch Available [ 10102 ]
          Resolution Fixed [ 1 ]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Knut Anders Hatlen made changes -
          Link This issue is related to DERBY-763 [ DERBY-763 ]
          Gavin made changes -
          Link This issue depends on DERBY-2460 [ DERBY-2460 ]
          Gavin made changes -
          Link This issue depends upon DERBY-2460 [ DERBY-2460 ]
          Gavin made changes -
          Workflow jira [ 12388363 ] Default workflow, editable Closed status [ 12802420 ]

            People

            • Assignee:
              Kristian Waagan
              Reporter:
              Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development