Oleg Ignatenko created IGNITE-11240:
---------------------------------------
Summary: 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
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
(v7.6.3#76005)