Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11240

provide more convenient way to start and stop grid from static context of @BeforeClass and @AfterClass

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8
    • Fix Version/s: None
    • Component/s: None

      Description

      Related discussion at dev list: beforeTestsStarted() was deprecated, what should we use instead?

      ...the method should be static to be annotated with @BeforeClass. And I see a problem here since you're not able to use non-static methods like GridAbstractTest#startGrid() at method annotated with @BeforeClass.

      The way to achieve above is currently not quite straightforward: MyTestClass.class.newInstance().startGrid() and MyTestClass.class.newInstance().stopGrid().

      This task is for Ignite testframework to provide more convenient way to do that.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                oignatenko Oleg Ignatenko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: