mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
smTestProxy: optimize presentation name calc
This commit is contained in:
+8
-3
@@ -75,6 +75,7 @@ public class SMTestProxy extends AbstractTestProxy {
|
||||
private boolean myIsEmpty = true;
|
||||
private SMTestLocator myLocator = null;
|
||||
private Printer myPreferredPrinter = null;
|
||||
private String myPresentableName;
|
||||
|
||||
public SMTestProxy(String testName, boolean isSuite, @Nullable String locationUrl) {
|
||||
this(testName, isSuite, locationUrl, false);
|
||||
@@ -587,10 +588,14 @@ public class SMTestProxy extends AbstractTestProxy {
|
||||
|
||||
@NotNull
|
||||
public String getPresentableName() {
|
||||
if (myPreservePresentableName) {
|
||||
return TestsPresentationUtil.getPresentableNameTrimmedOnly(this);
|
||||
if (myPresentableName == null) {
|
||||
if (myPreservePresentableName) {
|
||||
myPresentableName = TestsPresentationUtil.getPresentableNameTrimmedOnly(this);
|
||||
} else {
|
||||
myPresentableName = TestsPresentationUtil.getPresentableName(this);
|
||||
}
|
||||
}
|
||||
return TestsPresentationUtil.getPresentableName(this);
|
||||
return myPresentableName;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user