File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/InterleaveControlGui.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestTimeFunction.java | |||
Method name: void init()
|
Method name: void testYMDnoV()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));↵ | |||
2 | setBorder(makeBorder());↵ | |||
3 | add(makeTitlePanel());↵ | |||
4 | style = new JCheckBox(JMeterUtils.getResString("igno↵ | 1 | params.add(new CompoundVariable("YMD"));↵ | |
2 | variable.setParameters(params);↵ | |||
5 | re_subcontrollers")); // $NON-NLS-1$↵ | 3 | value = variable.execute(resu↵ | |
6 | add(style↵ | 4 | lt, null);↵ | |
5 | assertEquals(8,value.length());↵ | |||
7 | ); | 6 | assertNull(vars.get("NAME")); | |
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 in different classes |
Number of node comparisons | 25 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | params.add(new CompoundVariable("YMD")); | |||||||||||||||||||
| 2 | variable.setParameters(params); | |||||||||||||||||||
1 | setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP)); |
| 4 | assertEquals(8, value.length()); | |||||||||||||||||
2 | setBorder(makeBorder()); | | |||||||||||||||||||
| 3 | value = variable.execute(result, null); | |||||||||||||||||||
3 | add(makeTitlePanel()); | | |||||||||||||||||||
4 | style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers")); | | |||||||||||||||||||
| 5 | assertNull(vars.get("NAME")); | |||||||||||||||||||
5 | add(style); | |
Row | Violation |
---|---|
1 | Expression setLayout(new VerticalLayout(5,VerticalLayout.BOTH,VerticalLayout.TOP)) is a void method call, and thus it cannot be parameterized |
2 | Expression assertEquals(8,value.length()) is a void method call, and thus it cannot be parameterized |
3 | Expression setLayout(new VerticalLayout(5,VerticalLayout.BOTH,VerticalLayout.TOP)) is a void method call, and thus it cannot be parameterized |
4 | Expression assertEquals(8,value.length()) is a void method call, and thus it cannot be parameterized |