void testSetGet(ComboStringEditor e, Object value) throws Exception {
e.setValue(value);
assertEquals(value, e.getValue());
}
private void testSetGetAsText(ComboStringEditor e, String text) throws Exception {
e.setAsText(text);
assertEquals(text, e.getAsText());
}
void testSetGet(ComboStringEditor e, Object value) throws Exception {
e.setValue(value);
assertEquals(value, e.getValue());
}
private void testSetGetAsText(ComboStringEditor e, String text) throws Exception {
e.setAsText(text);
assertEquals(text, e.getAsText());
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/testbeans/gui/TestFieldStringEditor.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/testbeans/gui/TestComboStringEditor.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testSetGet(ComboStringEditor e, Object value) throws Exception {↵ | | 1 | void testSetGet(ComboStringEditor e, Object value) throws Exception {↵
|
2 | e.setValue(value);↵ | | 2 | e.setValue(value);↵
|
3 | assertEquals(value, e.getValue());↵ | | 3 | assertEquals(value, e.getValue());↵
|
4 | }↵ | | 4 | }↵
|
|
5 | private void testSetGetAsText(ComboStringEditor e, String text) throws Exception {↵ | | 5 | private void testSetGetAsText(ComboStringEditor e, String text) throws Exception {↵
|
6 | e.setAsText(text);↵ | | 6 | e.setAsText(text);↵
|
7 | assertEquals(text, e.getAsText());↵ | | 7 | assertEquals(text, e.getAsText());↵
|
8 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |