Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • None
    • None

    Description

      If needed, refer parent task for more details.

      1. remove Junit3-specific parts of API of GridAbstractTest and its subclasses
      2. remove dependencies from Junit 3 in Maven (if there are any)
      3. migrate tests that were missed at prior steps for various reasons:
        1. untangle design of IgnitePdsContinuousRestartTest and its subclass which currently conflict with Junit4 execution because of using constructors and make them properly use @Test annotation
        2. find out why WalCompactionTest.testCompressorToleratesEmptyWalSegmentsFsync appears to start running slow / timing out after adding Junit 4 annotations (reproduced this on teamcity and locally as was discovered in IGNITE-10175)
        3. find out why IgniteTwitterStreamerTest runs fine under JUnit 3 but starts failing after move to JUnit 4
        4. IgniteCachePartitionedQuerySelfTest, IgniteCacheReplicatedQueryP2PDisabledSelfTest, ComputeUtilsTest, CacheBasedDatasetBuilderTest, CacheBasedDatasetTest, GridPartitionedCacheJtaLookupClassNameSelfTest, GridReplicatedCacheJtaLookupClassNameSelfTest (there were problems migrating these at IGNITE-10176)
        5. find out why tests in logging suite failed on teamcity (not locally) when setup method was annotated @Before
        6. note part of this work related to IgniteConfigVariationsAbstractTest is expected to be done separately per IGNITE-10739
      4. in tests suite classes, change extends TestSuite to either @RunWith(AllTests.class) or @Suite.SuiteClasses
      5. find and update all Junit3-specific code that extends TestCase
      6. execute junit related inspections of IDE and analyse results
      7. remove redundant references to JUnit4.class if there are any (like in @RunWith(JUnit4.class))
        per discussion with EdShangGG plan to to do this in a separate ticket for smoother merges - IGNITE-10758

      Side note if for some reason it turns out critically important to keep test suites names (by default Junit 4 will use suite class names instead), approach with custom description annotation described here can be used to address that.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: