CloneSet25


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
53220.977statement_sequence[40]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15322
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/config/AccountItemTest.java
25290
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/config/AccountItemTest.java
Next
Last
Clone Instance
1
Line Count
53
Source Line
22
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/config/AccountItemTest.java

// first account item
XmlElement xml = new XmlElement("account");
xml.addAttribute("name", "my account");
xml.addAttribute("uid", "0");
XmlElement child = xml.addSubElement("identity");
child.addAttribute("name", "John Doe");
child.addAttribute("attach_signature", "false");
child = xml.addSubElement("popserver");
child.addAttribute("port", "25");
child.addAttribute("login_method", "USER");
child = xml.addSubElement("specialfolders");
child.addAttribute("inbox", "101");
child.addAttribute("sent", "104");
AccountItem item = new AccountItem(xml);
// second account item
XmlElement xml2 = new XmlElement("account");
xml2.addAttribute("uid", "0");
xml2.addAttribute("name", "my account");
XmlElement child2 = xml2.addSubElement("identity");
child2.addAttribute("attach_signature", "false");
child2.addAttribute("name", "John Doe");
child2 = xml2.addSubElement("popserver");
child2.addAttribute("login_method", "USER");
child2.addAttribute("port", "25");
child2 = xml2.addSubElement("specialfolders");
child2.addAttribute("sent", "104");
child2.addAttribute("inbox", "101");
AccountItem item2 = new AccountItem(xml2);
// third item, a bit different from the first
XmlElement xml3 = new XmlElement("account");
xml3.addAttribute("name", "my account");
xml3.addAttribute("uid", "0");
XmlElement child3 = xml3.addSubElement("identity");
child3.addAttribute("name", "Kalle Kamel");
child3.addAttribute("attach_signature", "false");
child3 = xml3.addSubElement("popserver");
child3.addAttribute("port", "25");
child3.addAttribute("login_method", "USER");
child3 = xml3.addSubElement("specialfolders");
child3.addAttribute("inbox", "101");
child3.addAttribute("sent", "104");
AccountItem item3 = new AccountItem(xml3);
// should have the same hashcodes...
assertTrue("The hashcodes of item and item2 are not the same", item.hashCode() == item2.hashCode());


First
Previous
Clone Instance
2
Line Count
52
Source Line
90
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/config/AccountItemTest.java

// first account item
XmlElement xml = new XmlElement("account");
xml.addAttribute("name", "my account");
xml.addAttribute("uid", "0");
XmlElement child = xml.addSubElement("identity");
child.addAttribute("name", "John Doe");
child.addAttribute("attach_signature", "false");
child = xml.addSubElement("popserver");
child.addAttribute("port", "25");
child.addAttribute("login_method", "USER");
child = xml.addSubElement("specialfolders");
child.addAttribute("inbox", "101");
child.addAttribute("sent", "104");
AccountItem item = new AccountItem(xml);
// second account item
XmlElement xml2 = new XmlElement("account");
xml2.addAttribute("uid", "0");
xml2.addAttribute("name", "my account");
XmlElement child2 = xml2.addSubElement("identity");
child2.addAttribute("attach_signature", "false");
child2.addAttribute("name", "John Doe");
child2 = xml2.addSubElement("popserver");
child2.addAttribute("login_method", "USER");
child2.addAttribute("port", "25");
child2 = xml2.addSubElement("specialfolders");
child2.addAttribute("sent", "104");
child2.addAttribute("inbox", "101");
AccountItem item2 = new AccountItem(xml2);
// third item, a bit different from the first
XmlElement xml3 = new XmlElement("account");
xml3.addAttribute("name", "my account");
xml3.addAttribute("uid", "0");
XmlElement child3 = xml3.addSubElement("identity");
child3.addAttribute("name", "Kalle Kamel");
child3.addAttribute("attach_signature", "false");
child3 = xml3.addSubElement("popserver");
child3.addAttribute("port", "25");
child3.addAttribute("login_method", "USER");
child3 = xml3.addSubElement("specialfolders");
child3.addAttribute("inbox", "101");
child3.addAttribute("sent", "104");
AccountItem item3 = new AccountItem(xml3);
// test self equality...
assertTrue("Self equality failed for item", item.equals(item));


Clone AbstractionParameter Count: 2Parameter Bindings

// first account item
XmlElement xml = new XmlElement("account");
xml.addAttribute("name", "my account");
xml.addAttribute("uid", "0");
XmlElement child = xml.addSubElement("identity");
child.addAttribute("name", "John Doe");
child.addAttribute("attach_signature", "false");
child = xml.addSubElement("popserver");
child.addAttribute("port", "25");
child.addAttribute("login_method", "USER");
child = xml.addSubElement("specialfolders");
child.addAttribute("inbox", "101");
child.addAttribute("sent", "104");
AccountItem item = new AccountItem(xml);
// second account item
XmlElement xml2 = new XmlElement("account");
xml2.addAttribute("uid", "0");
xml2.addAttribute("name", "my account");
XmlElement child2 = xml2.addSubElement("identity");
child2.addAttribute("attach_signature", "false");
child2.addAttribute("name", "John Doe");
child2 = xml2.addSubElement("popserver");
child2.addAttribute("login_method", "USER");
child2.addAttribute("port", "25");
child2 = xml2.addSubElement("specialfolders");
child2.addAttribute("sent", "104");
child2.addAttribute("inbox", "101");
AccountItem item2 = new AccountItem(xml2);
// third item, a bit different from the first
XmlElement xml3 = new XmlElement("account");
xml3.addAttribute("name", "my account");
xml3.addAttribute("uid", "0");
XmlElement child3 = xml3.addSubElement("identity");
child3.addAttribute("name", "Kalle Kamel");
child3.addAttribute("attach_signature", "false");
child3 = xml3.addSubElement("popserver");
child3.addAttribute("port", "25");
child3.addAttribute("login_method", "USER");
child3 = xml3.addSubElement("specialfolders");
child3.addAttribute("inbox", "101");
child3.addAttribute("sent", "104");
AccountItem item3 = new AccountItem(xml3);
// should have the same hashcodes...
// test self equality...
assertTrue( [[#variable11370340]],  [[#variablef32b7e0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#11370340]]
"The hashcodes of item and item2 are not the same" 
12[[#11370340]]
"Self equality failed for item" 
21[[#f32b7e0]]
item.hashCode() == item2.hashCode() 
22[[#f32b7e0]]
item.equals(item)