Closedown

This commit is contained in:
boccioli_m
2017-10-20 10:33:13 +02:00
parent bc81020970
commit fd2df928b2
5 changed files with 10 additions and 8 deletions

View File

@@ -678,7 +678,7 @@ public class TestingList extends Panel {
logger.addHandler(fh);
SimpleFormatter formatter = new SimpleFormatter();
fh.setFormatter(formatter);
log("INFO - " + "New testing session");
log("INF - " + "New testing session");
} catch (SecurityException e) {
SwingUtils.showMessage(this, "initLogger()", e.toString());
} catch (IOException e) {
@@ -1715,7 +1715,7 @@ public class TestingList extends Panel {
case "Success":
icon = TestStatus.SUCCESS.Icon();
logger.log(Level.INFO, sStatus + " - Device: " + deviceName + "; Test: " + sTestName + "; Result: " + res);
log("INFO - " + sStatus + " - Device: " + deviceName + "; Test: " + sTestName + "; Result: " + res);
log("INF - " + sStatus + " - Device: " + deviceName + "; Test: " + sTestName + "; Result: " + res);
break;
case "Failure":
icon = TestStatus.FAILURE.Icon();
@@ -1748,7 +1748,9 @@ public class TestingList extends Panel {
*/
public void updateResultSummary() {
ImageIcon summaryIcon = null;
if(countFailureTests()>0){
if(countRunningTests()>0){
summaryIcon = TestStatus.RUNNING.Icon();
} else if(countFailureTests()>0){
summaryIcon = TestStatus.FAILURE.Icon();
} else if(countSuccessTests()>0){
summaryIcon = TestStatus.SUCCESS.Icon();