Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-10951 migration from Junit 3 to 4 phase 2 (follow-up to IGNITE-10173)
  3. IGNITE-11116

replace Assert in particular test classes from junit.framework (JUnit 3) to org.junit (JUnit 4)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.7
    • 2.8
    • None

    Description

      Some tests start failing on Teamcity when Assert is replaced to one from org.junit package (note I couldn't reliably reproduce these failures locally). Per my observations it looks like troublesome code involves assertEquals that compares double / float values with non-zero delta. This issue was discovered in the course of IGNITE-10927.

      Search in the PR 5866 linked to IGNITE-10927 for import of junit.framework.Assert shows that this involves ZookeeperDiscoverySpiTestHelper, IoStatisticsMetricsLocalMXBeanImplSelfTest, BinaryMarshallerSelfTest, RestMemcacheProtocolSelfTest.

      Search in this PR for static import of junit.framework.Assert shows 12 more involved test classes, CassandraConfigTest, ClientCacheFlagsCodecTest etc.

      Attachments

        Issue Links

          Activity

            People

              oignatenko Oleg Ignatenko
              oignatenko Oleg Ignatenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: