You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2019/10/10 11:29:00 UTC
[jira] [Updated] (IGNITE-11240) provide more convenient way to
start and stop grid from static context of @BeforeClass and @AfterClass
[ https://issues.apache.org/jira/browse/IGNITE-11240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Muzafarov updated IGNITE-11240:
-------------------------------------
Fix Version/s: (was: 2.8)
> provide more convenient way to start and stop grid from static context of @BeforeClass and @AfterClass
> ------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-11240
> URL: https://issues.apache.org/jira/browse/IGNITE-11240
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.8
> Reporter: Oleg Ignatenko
> Priority: Major
> Labels: MakeTeamcityGreenAgain
>
> Related discussion at dev list: [beforeTestsStarted() was deprecated, what should we use instead?|http://apache-ignite-developers.2346864.n4.nabble.com/beforeTestsStarted-was-deprecated-what-should-we-use-instead-tt40625.html]
> {quote}...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.{quote}
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)