CloneSet210


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18201.000statement_list[12]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11871
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs
218102
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs
Clone Instance
1
Line Count
18
Source Line
71
Source File
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]);


Clone Instance
2
Line Count
18
Source Line
102
Source File
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]);


Clone AbstractionParameter Count: 0Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None