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 19
19
import java .util .List ;
20
20
21
21
import org .springframework .core .style .ToStringCreator ;
22
- import org .utplsql .sqldev .model .UtplsqlToStringStyler ;
22
+ import org .utplsql .sqldev .model .JsonToStringStyler ;
23
23
24
24
public class Run {
25
25
private String reporterId ;
@@ -41,7 +41,7 @@ public class Run {
41
41
42
42
@ Override
43
43
public String toString () {
44
- return new ToStringCreator (this , UtplsqlToStringStyler .INSTANCE )
44
+ return new ToStringCreator (this , JsonToStringStyler .INSTANCE )
45
45
.append ("reporterId" , reporterId )
46
46
.append ("connectionName" , connectionName )
47
47
.append ("pathList" , pathList )
@@ -103,6 +103,10 @@ public Test getTest(final String id) {
103
103
}
104
104
105
105
public int getTotalNumberOfCompletedTests () {
106
+ if (counter .getDisabled () == null || counter .getSuccess () == null || counter .getFailure () == null
107
+ || counter .getError () == null ) {
108
+ return -1 ;
109
+ }
106
110
return counter .getDisabled () + counter .getSuccess () + counter .getFailure () + counter .getError ();
107
111
}
108
112
You can’t perform that action at this time.
0 commit comments