File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/samplers/TestSampleSaveConfiguration.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/samplers/TestSampleSaveConfiguration.java | |||
Method name: void testFalse()
|
Method name: void testFalseTrue()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | SampleSaveConfiguration a = new SampleSaveConfiguration(false);↵ | 1 | SampleSaveConfiguration a = new SampleSaveConfiguration(false);↵ | |
2 | SampleSaveConfiguration b = new SampleSaveConfiguration(false);↵ | 2 | SampleSaveConfiguration b = new SampleSaveConfiguration(true);↵ | |
3 | assertTrue("Hash codes should be equal",a.hashCode() == b.hashCode());↵ | 3 | assertFalse("Hash codes should not be equal",a.hashCode() == b.hashCode());↵ | |
4 | assertTrue("Objects should be equal",a.equals(b));↵ | 4 | assertFalse("Objects should not be equal",a.equals(b));↵ | |
5 | assertTrue("Objects should be equal",b.equals(a)); | 5 | assertFalse("Objects should not be equal",b.equals(a)); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 19 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | SampleSaveConfiguration a = new SampleSaveConfiguration(false); | 1 | SampleSaveConfiguration a = new SampleSaveConfiguration(false); | ||||||||||||||||||
2 | SampleSaveConfiguration b = new SampleSaveConfiguration(false); |
| 2 | SampleSaveConfiguration b = new SampleSaveConfiguration(true); | |||||||||||||||||
3 | assertTrue("Hash codes should be equal", a.hashCode() == b.hashCode()); |
| 3 | assertFalse("Hash codes should not be equal", a.hashCode() == b.hashCode()); | |||||||||||||||||
4 | assertTrue("Objects should be equal", a.equals(b)); |
| 4 | assertFalse("Objects should not be equal", a.equals(b)); | |||||||||||||||||
5 | assertTrue("Objects should be equal", b.equals(a)); |
| 5 | assertFalse("Objects should not be equal", b.equals(a)); |
Row | Violation |
---|---|
1 | Expression assertTrue("Hash codes should be equal",a.hashCode() == b.hashCode()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression assertFalse("Hash codes should not be equal",a.hashCode() == b.hashCode()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression assertTrue("Hash codes should be equal",a.hashCode() == b.hashCode()) is a void method call, and thus it cannot be parameterized |
4 | Expression assertFalse("Hash codes should not be equal",a.hashCode() == b.hashCode()) is a void method call, and thus it cannot be parameterized |
5 | Expression assertTrue("Objects should be equal",a.equals(b)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression assertFalse("Objects should not be equal",a.equals(b)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression assertTrue("Objects should be equal",a.equals(b)) is a void method call, and thus it cannot be parameterized |
8 | Expression assertFalse("Objects should not be equal",a.equals(b)) is a void method call, and thus it cannot be parameterized |
9 | Expression assertTrue("Objects should be equal",b.equals(a)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression assertFalse("Objects should not be equal",b.equals(a)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression assertTrue("Objects should be equal",b.equals(a)) is a void method call, and thus it cannot be parameterized |
12 | Expression assertFalse("Objects should not be equal",b.equals(a)) is a void method call, and thus it cannot be parameterized |