if (testType.equals(LDAPSampler.SEARCHBASE)) { searchTest.setSelected(true); searchbase.setText(element.getPropertyAsString(LDAPSampler.SEARCHBASE)); searchfilter.setText(element.getPropertyAsString(LDAPSampler.SEARCHFILTER)); cl.show(cards, "Search"); }
modifyTest.setSelected(true); modify.setText(element.getPropertyAsString(LDAPSampler.BASE_ENTRY_DN)); tableModifyPanel.configure((TestElement) element.getProperty(LDAPSampler.ARGUMENTS).getObjectValue()); cl.show(cards, "Modify");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java
Method name: void configure(TestElement) Method name: void configure(TestElement)
Number of AST nodes: 5 Number of AST nodes: 4
1
if (testType.equals(LDAPSampler.SEARCHBASE)) {
2
			searchTest.setSelected(true);
1
modifyTest.setSelected(true);
3
			searchbase.setText(element.getPropertyAsString(LDAPSampler.SEARCHBASE));
2
			modify.setText(element.getPropertyAsString(LDAPSampler.
4
			searchfilter.setText(
3
BASE_ENTRY_DN));
5
element.getPropertyAsString(LDAPSampler.SEARCHFILTER));
4
			tableModifyPanel.configure((TestElement) element.getProperty(LDAPSampler.ARGUMENTS).getObjectValue());
6
			cl.show(cards, "Search");
5
			cl.show(cards, "
7
		}
6
Modify");
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons16
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    22
    searchTest.setSelected(true);
    22
    searchTest.setSelected(true);
    13
    modifyTest.setSelected(true);
    Differences
    Expression1Expression2Difference
    searchTestmodifyTestVARIABLE_NAME_MISMATCH
    13
    modifyTest.setSelected(true);
    23
    searchbase.setText(element.getPropertyAsString(LDAPSampler.SEARCHBASE));
    23
    searchbase.setText(element.getPropertyAsString(LDAPSampler.SEARCHBASE));
    14
    modify.setText(element.getPropertyAsString(LDAPSampler.BASE_ENTRY_DN));
    Differences
    Expression1Expression2Difference
    SEARCHBASEBASE_ENTRY_DNVARIABLE_NAME_MISMATCH
    searchbasemodifyVARIABLE_NAME_MISMATCH
    14
    modify.setText(element.getPropertyAsString(LDAPSampler.BASE_ENTRY_DN));
                                                                                                                                                                                                                      
    15
    tableModifyPanel.configure((TestElement)element.getProperty(LDAPSampler.ARGUMENTS).getObjectValue());
    Preondition Violations
    Unmatched statement tableModifyPanel.configure((TestElement)element.getProperty(LDAPSampler.ARGUMENTS).getObjectValue()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    15
    tableModifyPanel.configure((TestElement)element.getProperty(LDAPSampler.ARGUMENTS).getObjectValue());
    24
    searchfilter.setText(element.getPropertyAsString(LDAPSampler.SEARCHFILTER));
    24
    searchfilter.setText(element.getPropertyAsString(LDAPSampler.SEARCHFILTER));
    Preondition Violations
    Unmatched statement searchfilter.setText(element.getPropertyAsString(LDAPSampler.SEARCHFILTER)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                                                    
    25
    cl.show(cards, "Search");
    25
    cl.show(cards, "Search");
    16
    cl.show(cards, "Modify");
    Differences
    Expression1Expression2Difference
    "Search""Modify"LITERAL_VALUE_MISMATCH
    16
    cl.show(cards, "Modify");
    Precondition Violations (2)
    Row Violation
    1Unmatched statement tableModifyPanel.configure((TestElement)element.getProperty(LDAPSampler.ARGUMENTS).getObjectValue()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement searchfilter.setText(element.getPropertyAsString(LDAPSampler.SEARCHFILTER)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted