CloneSet130


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12540.975statement_list[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11460
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs
21284
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs
312108
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs
412130
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs
512153
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs
Clone Instance
1
Line Count
14
Source Line
60
Source File
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs

                        Assert.AreEqual(initialInsertCount, Sfi.Statistics.EntityInsertCount, "persist on identity column not delayed");
                        Assert.AreEqual(0, myEntity2.Id);

                        // an explicit flush should cause execution of the delayed insertion
                        s.Flush();
                        Assert.AreEqual(initialInsertCount + 1, Sfi.Statistics.EntityInsertCount, "delayed persist insert not executed on flush");
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();
                        s.Delete(myEntity1);
                        s.Delete(myEntity2);
                        s.Transaction.Commit();
                        s.Close();


Clone Instance
2
Line Count
12
Source Line
84
Source File
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs

                        Assert.AreEqual(initialInsertCount, Sfi.Statistics.EntityInsertCount, "persist on identity column not delayed");
                        Assert.AreEqual(0, myEntity.Id);
                        s.Flush();
                        Assert.AreEqual(initialInsertCount + 2, Sfi.Statistics.EntityInsertCount, "delayed persist insert not executed on flush");
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();
                        s.Delete("from MyChild");
                        s.Delete("from MyEntity");
                        s.Transaction.Commit();
                        s.Close();


Clone Instance
3
Line Count
12
Source Line
108
Source File
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs

                        Assert.AreEqual(initialInsertCount, Sfi.Statistics.EntityInsertCount, "persist on identity column not delayed");
                        Assert.AreEqual(0, myEntity2.Id);
                        s.Flush();
                        Assert.AreEqual(initialInsertCount + 2, Sfi.Statistics.EntityInsertCount, "delayed persist insert not executed on flush");
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();
                        s.Delete("from MyChild");
                        s.Delete("from MyEntity");
                        s.Transaction.Commit();
                        s.Close();


Clone Instance
4
Line Count
12
Source Line
130
Source File
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs

                        Assert.AreEqual(initialInsertCount, Sfi.Statistics.EntityInsertCount, "persist on identity column not delayed");
                        Assert.AreEqual(0, myEntity.Id);
                        s.Flush();
                        Assert.AreEqual(initialInsertCount + 2, Sfi.Statistics.EntityInsertCount, "delayed persist insert not executed on flush");
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();
                        s.Delete("from MyEntity");
                        s.Delete("from MySibling");
                        s.Transaction.Commit();
                        s.Close();


Clone Instance
5
Line Count
12
Source Line
153
Source File
src/NHibernate.Test/Generatedkeys/Identity/IdentityGeneratedKeysTest.cs

                        Assert.AreEqual(initialInsertCount, Sfi.Statistics.EntityInsertCount, "persist on identity column not delayed");
                        Assert.AreEqual(0, myEntity2.Id);
                        s.Flush();
                        Assert.AreEqual(initialInsertCount + 2, Sfi.Statistics.EntityInsertCount, "delayed persist insert not executed on flush");
                        s.Close();

                        s = OpenSession();
                        s.BeginTransaction();
                        s.Delete("from MySibling");
                        s.Delete("from MyEntity");
                        s.Transaction.Commit();
                        s.Close();


Clone AbstractionParameter Count: 4Parameter Bindings

Assert.AreEqual(initialInsertCount, Sfi.Statistics.EntityInsertCount, "persist on identity column not delayed");
Assert.AreEqual(0, [[#variable6c2f7a40]].Id);
// an explicit flush should cause execution of the delayed insertion
s.Flush();
Assert.AreEqual(initialInsertCount + [[#variable6e5dd700]], Sfi.Statistics.EntityInsertCount, "delayed persist insert not executed on flush");
s.Close();
s = OpenSession();
s.BeginTransaction();
s.Delete( [[#variable6e5dcd20]]);
s.Delete( [[#variable6f4af460]]);
s.Transaction.Commit();
s.Close();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6c2f7a40]]
myEntity2 
12[[#6c2f7a40]]
myEntity 
13[[#6c2f7a40]]
myEntity2 
14[[#6c2f7a40]]
myEntity 
15[[#6c2f7a40]]
myEntity2 
21[[#6e5dd700]]
2 
22[[#6e5dd700]]
2 
23[[#6e5dd700]]
2 
24[[#6e5dd700]]
2 
25[[#6e5dd700]]
1 
31[[#6e5dcd20]]
"from MySibling" 
32[[#6e5dcd20]]
"from MyEntity" 
33[[#6e5dcd20]]
"from MyChild" 
34[[#6e5dcd20]]
"from MyChild" 
35[[#6e5dcd20]]
myEntity1 
41[[#6f4af460]]
"from MyEntity" 
42[[#6f4af460]]
"from MySibling" 
43[[#6f4af460]]
"from MyEntity" 
44[[#6f4af460]]
"from MyEntity" 
45[[#6f4af460]]
myEntity2