| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 30 | 2 | 0 | 1.000 | class_member_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 30 | 13 | src/NHibernate.Test/NHSpecificTest/NH1499/Fixture.cs |
| 2 | 30 | 21 | src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs |
| ||||
protected override void OnSetUp()
{
Person john = new Person();
john.Name = "John";
Document doc1 = new Document();
doc1.Person = john;
doc1.Title = "John's Doc";
Document doc2 = new Document();
doc2.Title = "Spec";
using (ISession session = OpenSession())
using (ITransaction tx = session.BeginTransaction())
{
session.Save(john);
session.Save(doc1);
session.Save(doc2);
tx.Commit();
}
}
protected override void OnTearDown()
{
using (ISession session = OpenSession())
using (ITransaction tx = session.BeginTransaction())
{
session.Delete("from Person");
session.Delete("from Document");
tx.Commit();
}
}
|
| ||||
protected override void OnSetUp()
{
Person john = new Person();
john.Name = "John";
Document doc1 = new Document();
doc1.Person = john;
doc1.Title = "John's Doc";
Document doc2 = new Document();
doc2.Title = "Spec";
using (ISession session = OpenSession())
using (ITransaction tx = session.BeginTransaction())
{
session.Save(john);
session.Save(doc1);
session.Save(doc2);
tx.Commit();
}
}
protected override void OnTearDown()
{
using (ISession session = OpenSession())
using (ITransaction tx = session.BeginTransaction())
{
session.Delete("from Person");
session.Delete("from Document");
tx.Commit();
}
}
|
| |||
protected override void OnSetUp()
{
Person john = new Person();
john.Name = "John";
Document doc1 = new Document();
doc1.Person = john;
doc1.Title = "John's Doc";
Document doc2 = new Document();
doc2.Title = "Spec";
using (ISession session = OpenSession())
using (ITransaction tx = session.BeginTransaction())
{
session.Save(john);
session.Save(doc1);
session.Save(doc2);
tx.Commit();
}
}
protected override void OnTearDown()
{
using (ISession session = OpenSession())
using (ITransaction tx = session.BeginTransaction())
{
session.Delete("from Person");
session.Delete("from Document");
tx.Commit();
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||