CloneSet392


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16240.975statement_list[13]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11667
src/NHibernate.Test/NHSpecificTest/NH295/SubclassFixture.cs
21685
src/NHibernate.Test/NHSpecificTest/NH295/SubclassFixture.cs
Clone Instance
1
Line Count
16
Source Line
67
Source File
src/NHibernate.Test/NHSpecificTest/NH295/SubclassFixture.cs

                        criteria1.Add(Expression.Eq("Name", "User1"));
                        Assert.AreEqual(1, criteria1.List().Count);
                        s.Transaction.Commit();
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();
                        //Load group with USER NAME: 
                        ICriteria criteria2 = s.CreateCriteria( typeof(UserGroup));
                        criteria2.Add(Expression.Eq("Name", "User1"));
                        Assert.AreEqual(0, criteria2.List().Count);
                        s.Transaction.Commit();
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();


Clone Instance
2
Line Count
16
Source Line
85
Source File
src/NHibernate.Test/NHSpecificTest/NH295/SubclassFixture.cs

                        criteria3.Add(Expression.Eq("Name", "Group1"));
                        Assert.AreEqual(1, criteria3.List().Count);
                        s.Transaction.Commit();
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();
                        //Load user with GROUP NAME
                        ICriteria criteria4 = s.CreateCriteria( typeof(User));
                        criteria4.Add(Expression.Eq("Name", "Group1"));
                        Assert.AreEqual(0, criteria4.List().Count);
                        s.Transaction.Commit();
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();


Clone AbstractionParameter Count: 4Parameter Bindings

 [[#variable6fd094c0]].Add(Expression.Eq("Name", [[#variable70b8e260]]));
Assert.AreEqual(1, [[#variable6fd094c0]].List().Count);
s.Transaction.Commit();
s.Close();
s = OpenSession();
s.BeginTransaction();
//Load group with USER NAME: 
//Load user with GROUP NAME
ICriteria [[#variable6fd93a80]]= s.CreateCriteria( typeof( [[#variable6fd937c0]]));
 [[#variable6fd93a80]].Add(Expression.Eq("Name", [[#variable70b8e260]]));
Assert.AreEqual(0, [[#variable6fd93a80]].List().Count);
s.Transaction.Commit();
s.Close();
s = OpenSession();
s.BeginTransaction();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6fd094c0]]
criteria1 
12[[#6fd094c0]]
criteria3 
21[[#70b8e260]]
"User1" 
22[[#70b8e260]]
"Group1" 
31[[#6fd93a80]]
criteria2 
32[[#6fd93a80]]
criteria4 
41[[#6fd937c0]]
UserGroup 
42[[#6fd937c0]]
User