File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
sqldev/src/main/java/org/utplsql/sqldev/model/runner Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1919import java .util .List ;
2020
2121import org .springframework .core .style .ToStringCreator ;
22- import org .utplsql .sqldev .model .UtplsqlToStringStyler ;
22+ import org .utplsql .sqldev .model .JsonToStringStyler ;
2323
2424public class Run {
2525 private String reporterId ;
@@ -41,7 +41,7 @@ public class Run {
4141
4242 @ Override
4343 public String toString () {
44- return new ToStringCreator (this , UtplsqlToStringStyler .INSTANCE )
44+ return new ToStringCreator (this , JsonToStringStyler .INSTANCE )
4545 .append ("reporterId" , reporterId )
4646 .append ("connectionName" , connectionName )
4747 .append ("pathList" , pathList )
@@ -103,6 +103,10 @@ public Test getTest(final String id) {
103103 }
104104
105105 public int getTotalNumberOfCompletedTests () {
106+ if (counter .getDisabled () == null || counter .getSuccess () == null || counter .getFailure () == null
107+ || counter .getError () == null ) {
108+ return -1 ;
109+ }
106110 return counter .getDisabled () + counter .getSuccess () + counter .getFailure () + counter .getError ();
107111 }
108112
You can’t perform that action at this time.
0 commit comments