test output order: ensure that tree view with predefined structure searches for place for new printable (IDEA-163309)

This commit is contained in:
Anna.Kozlova
2016-10-28 19:34:41 +02:00
parent 442803ea42
commit b7d4657d26
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -119,6 +119,7 @@ public class GeneralToSMTRunnerEventsConvertor extends GeneralTestEventsProcesso
myTreeBuildBeforeStart = true;
myBuildTreeRunnables.add(() -> {
final SMTestProxy testProxy = new SMTestProxy(testName, false, locationHint);
testProxy.setTreeBuildBeforeStart();
if (myLocator != null) {
testProxy.setLocator(myLocator);
}
@@ -136,6 +137,7 @@ public class GeneralToSMTRunnerEventsConvertor extends GeneralTestEventsProcesso
myBuildTreeRunnables.add(() -> {
final SMTestProxy parentSuite = getCurrentSuite();
final SMTestProxy newSuite = new SMTestProxy(suiteName, true, locationHint);
newSuite.setTreeBuildBeforeStart();
if (myLocator != null) {
newSuite.setLocator(myLocator);
}