1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- package org .utplsql .sqldev .model .runner
17-
18- import java .util .ArrayList
19- import java .util .List
20- import org .eclipse .xtend .lib .annotations .Accessors
21-
22- @ Accessors
23- class PostTestEvent extends PostEvent {
24- String id
25- Integer testNumber
26- Integer totalNumberOfTests
27- List <Expectation > failedExpectations
28-
29- new () {
30- failedExpectations = new ArrayList <Expectation >
31- }
32- }
16+ package org .utplsql .sqldev .model .runner ;
17+
18+ import java .util .ArrayList ;
19+ import java .util .List ;
20+
21+ import org .springframework .core .style .ToStringCreator ;
22+ import org .utplsql .sqldev .model .UtplsqlToStringStyler ;
23+
24+ public class PostTestEvent extends PostEvent {
25+ private String id ;
26+ private Integer testNumber ;
27+ private Integer totalNumberOfTests ;
28+ private List <Expectation > failedExpectations ;
29+
30+ @ Override
31+ public String toString () {
32+ return new ToStringCreator (this , UtplsqlToStringStyler .INSTANCE )
33+ .append ("id" , id )
34+ .append ("testNumber" , testNumber )
35+ .append ("totalNumberOfTests" , totalNumberOfTests )
36+ .append ("failedExpectations" , failedExpectations )
37+ .toString ();
38+ }
39+
40+ public PostTestEvent () {
41+ failedExpectations = new ArrayList <>();
42+ }
43+
44+ public String getId () {
45+ return id ;
46+ }
47+
48+ public void setId (final String id ) {
49+ this .id = id ;
50+ }
51+
52+ public Integer getTestNumber () {
53+ return testNumber ;
54+ }
55+
56+ public void setTestNumber (final Integer testNumber ) {
57+ this .testNumber = testNumber ;
58+ }
59+
60+ public Integer getTotalNumberOfTests () {
61+ return totalNumberOfTests ;
62+ }
63+
64+ public void setTotalNumberOfTests (final Integer totalNumberOfTests ) {
65+ this .totalNumberOfTests = totalNumberOfTests ;
66+ }
67+
68+ public List <Expectation > getFailedExpectations () {
69+ return failedExpectations ;
70+ }
71+
72+ public void setFailedExpectations (final List <Expectation > failedExpectations ) {
73+ this .failedExpectations = failedExpectations ;
74+ }
75+ }
0 commit comments