mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
format balloon text to meet UI mockup
This commit is contained in:
@@ -145,7 +145,7 @@ junit.runing.info.ignored.count.message=I:{0}
|
||||
junit.running.info.status.completed.from.total.failed={0} of {1} Failed: {2}
|
||||
junit.running.info.status.completed.from.total={0} of {1}
|
||||
junit.running.info.status.running.number.with.name=Running: {0} {1}
|
||||
junit.running.info.failed.to.start.error.message=Failed to start
|
||||
junit.running.info.failed.to.start.error.message=Failed to Start
|
||||
junit.runing.info.tests.failed.label=Tests Failed
|
||||
junit.runing.info.tests.passed.label=Tests Passed
|
||||
tests.passed.with.warnings.message=Tests passed (with warnings)
|
||||
|
||||
@@ -238,28 +238,32 @@ public class TestsUIUtil {
|
||||
myTitle = ExecutionBundle.message("junit.runing.info.tests.failed.label");
|
||||
String notStartedMessage = ignoredCount > 0 ? ", " + ignoredCount + " ignored"
|
||||
: notStartedCount > 0 ? ", " + notStartedCount + " not started" : "";
|
||||
myBalloonText = "Tests failed: " + failedCount + ", passed: " + passedCount +
|
||||
(ignoredCount > 0 ? ", ignored: " + ignoredCount : notStartedCount > 0 ? ", not started: " + notStartedCount : "");
|
||||
myText = passedCount + " passed, " + failedCount + " failed" + notStartedMessage;
|
||||
myType = MessageType.ERROR;
|
||||
}
|
||||
else if (ignoredCount > 0) {
|
||||
myTitle = "Tests Ignored";
|
||||
myBalloonText = "Tests ignored: " + ignoredCount + ", passed: " + passedCount;
|
||||
myText = passedCount + " passed, " + ignoredCount + " ignored";
|
||||
myType = MessageType.WARNING;
|
||||
}
|
||||
else if (notStartedCount > 0) {
|
||||
myTitle = ExecutionBundle.message("junit.running.info.failed.to.start.error.message");
|
||||
myBalloonText = "Failed to start: " + notStartedCount + ", passed: " + passedCount;
|
||||
myText = passedCount + " passed, " + notStartedCount + " not started";
|
||||
myType = MessageType.ERROR;
|
||||
}
|
||||
else {
|
||||
myTitle = ExecutionBundle.message("junit.runing.info.tests.passed.label");
|
||||
myBalloonText = "Tests passed: " + passedCount;
|
||||
myText = passedCount + " passed";
|
||||
myType = MessageType.INFO;
|
||||
}
|
||||
if (myComment != null) {
|
||||
myText += " " + myComment;
|
||||
}
|
||||
myBalloonText = myTitle + ": " + myText;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user