| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 38 | 2 | 0 | 1.000 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 38 | 79 | src/NHibernate.Test/SubclassFilterTest/DiscrimSubclassFilterTest.cs |
| 2 | 38 | 98 | src/NHibernate.Test/SubclassFilterTest/JoinedSubclassFilterTest.cs |
| ||||
private static void PrepareTestData(ISession s)
{
Employee john = new Employee("John Doe");
john.Company = ("JBoss");
john.Department = ("hr");
john.Title = ("hr guru");
john.Region = ("US");
Employee polli = new Employee("Polli Wog");
polli.Company = ("JBoss");
polli.Department = ("hr");
polli.Title = ("hr novice");
polli.Region = ("US");
polli.Manager = (john);
john.Minions.Add(polli);
Employee suzie = new Employee("Suzie Q");
suzie.Company = ("JBoss");
suzie.Department = ("hr");
suzie.Title = ("hr novice");
suzie.Region = ("EMEA");
suzie.Manager = (john);
john.Minions.Add(suzie);
Customer cust = new Customer("John Q Public");
cust.Company = ("Acme");
cust.Region = ("US");
cust.ContactOwner = (john);
Person ups = new Person("UPS guy");
ups.Company = ("UPS");
ups.Region = ("US");
s.Save(john);
s.Save(cust);
s.Save(ups);
s.Flush();
}
|
| ||||
private static void PrepareTestData(ISession s)
{
Employee john = new Employee("John Doe");
john.Company = ("JBoss");
john.Department = ("hr");
john.Title = ("hr guru");
john.Region = ("US");
Employee polli = new Employee("Polli Wog");
polli.Company = ("JBoss");
polli.Department = ("hr");
polli.Title = ("hr novice");
polli.Region = ("US");
polli.Manager = (john);
john.Minions.Add(polli);
Employee suzie = new Employee("Suzie Q");
suzie.Company = ("JBoss");
suzie.Department = ("hr");
suzie.Title = ("hr novice");
suzie.Region = ("EMEA");
suzie.Manager = (john);
john.Minions.Add(suzie);
Customer cust = new Customer("John Q Public");
cust.Company = ("Acme");
cust.Region = ("US");
cust.ContactOwner = (john);
Person ups = new Person("UPS guy");
ups.Company = ("UPS");
ups.Region = ("US");
s.Save(john);
s.Save(cust);
s.Save(ups);
s.Flush();
}
|
| |||
private static void PrepareTestData(ISession s)
{
Employee john = new Employee("John Doe");
john.Company = ("JBoss");
john.Department = ("hr");
john.Title = ("hr guru");
john.Region = ("US");
Employee polli = new Employee("Polli Wog");
polli.Company = ("JBoss");
polli.Department = ("hr");
polli.Title = ("hr novice");
polli.Region = ("US");
polli.Manager = (john);
john.Minions.Add(polli);
Employee suzie = new Employee("Suzie Q");
suzie.Company = ("JBoss");
suzie.Department = ("hr");
suzie.Title = ("hr novice");
suzie.Region = ("EMEA");
suzie.Manager = (john);
john.Minions.Add(suzie);
Customer cust = new Customer("John Q Public");
cust.Company = ("Acme");
cust.Region = ("US");
cust.ContactOwner = (john);
Person ups = new Person("UPS guy");
ups.Company = ("UPS");
ups.Region = ("US");
s.Save(john);
s.Save(cust);
s.Save(ups);
s.Flush();
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||