1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.rendering.internal.macro.ctsreport

File Result.java

 

Coverage histogram

../../../../../../img/srcFileCovDistChart0.png
83% of files have more coverage

Code metrics

6
10
3
1
88
47
6
0.6
3.33
3
2

Classes

Class Line # Actions
Result 32 10 0% 6 19
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.rendering.internal.macro.ctsreport;
21   
22    import org.apache.commons.lang3.builder.EqualsBuilder;
23    import org.apache.commons.lang3.builder.HashCodeBuilder;
24    import org.xwiki.text.XWikiToStringBuilder;
25   
26    /**
27    * Represents a parsed JUnit test result (see {@link TestParser} for more).
28    *
29    * @version $Id: 9f093a7b4f129cde09a0332ee7998af009157c53 $
30    * @since 4.1M2
31    */
 
32    public class Result
33    {
34    /**
35    * The syntax being tested and in which the syntax data is written in (eg "xwiki/2.0").
36    */
37    public String syntaxId;
38   
39    /**
40    * True if this test is an input test, ie the syntax data represents an input, false otherwise.
41    */
42    public boolean isSyntaxInputTest;
43   
44    /**
45    * Test Data (test name, syntax extension, cts extension, state).
46    */
47    public Test test;
48   
 
49  0 toggle @Override
50    public String toString()
51    {
52  0 return new XWikiToStringBuilder(this)
53    .append("syntaxId", this.syntaxId)
54    .append("test", this.test)
55    .append("isSyntaxInputTest", this.isSyntaxInputTest)
56    .toString();
57    }
58   
 
59  0 toggle @Override
60    public boolean equals(Object object)
61    {
62  0 if (object == null) {
63  0 return false;
64    }
65  0 if (object == this) {
66  0 return true;
67    }
68  0 if (object.getClass() != getClass()) {
69  0 return false;
70    }
71  0 Result rhs = (Result) object;
72  0 return new EqualsBuilder()
73    .append(this.syntaxId, rhs.syntaxId)
74    .append(this.test, rhs.test)
75    .append(this.isSyntaxInputTest, rhs.isSyntaxInputTest)
76    .isEquals();
77    }
78   
 
79  0 toggle @Override
80    public int hashCode()
81    {
82  0 return new HashCodeBuilder(3, 17)
83    .append(this.syntaxId)
84    .append(this.test)
85    .append(this.isSyntaxInputTest)
86    .toHashCode();
87    }
88    }