Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 0 | 1.000 | statement_list[12] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 71 | src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs |
2 | 18 | 102 | src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs |
| ||||
ISession[] s = new ISession[maxIndex]; ITransaction[] t = new ITransaction[maxIndex]; BasicClass[] bc = new BasicClass[maxIndex]; int index = 0; int id = 1; bc[index] = InsertBasicClass(id); index++; // make sure the previous insert went through s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); bc[index] = (BasicClass) s[index].Load( typeof(BasicClass), id); Assert.IsNotNull(bc[index]); AssertPropertiesEqual(bc[index - 1], bc[index]); |
| ||||
ISession[] s = new ISession[maxIndex]; ITransaction[] t = new ITransaction[maxIndex]; BasicClass[] bc = new BasicClass[maxIndex]; int index = 0; int id = 1; bc[index] = InsertBasicClass(id); index++; // make sure the previous insert went through s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); bc[index] = (BasicClass) s[index].Load( typeof(BasicClass), id); Assert.IsNotNull(bc[index]); AssertPropertiesEqual(bc[index - 1], bc[index]); |
| |||
ISession[] s = new ISession[maxIndex]; ITransaction[] t = new ITransaction[maxIndex]; BasicClass[] bc = new BasicClass[maxIndex]; int index = 0; int id = 1; bc[index] = InsertBasicClass(id); index++; // make sure the previous insert went through s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); bc[index] = (BasicClass)s[index].Load( typeof(BasicClass), id); Assert.IsNotNull(bc[index]); AssertPropertiesEqual(bc[index - 1], bc[index]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |