CloneSet2454


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5210.987statement_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15779
src/NHibernate.Test/Legacy/ParentChildTest.cs
211801
src/NHibernate.Test/Legacy/ParentChildTest.cs
Clone Instance
1
Line Count
5
Source Line
779
Source File
src/NHibernate.Test/Legacy/ParentChildTest.cs

                        Assert.AreEqual(1, c.LazyBag.Count);
                        t.Commit();
                        s.Close();

                        s = OpenSession();


Clone Instance
2
Line Count
11
Source Line
801
Source File
src/NHibernate.Test/Legacy/ParentChildTest.cs

                        Assert.AreEqual(3, c.LazyBag.Count); //forces initialization
                        // s.Save(c4); commented in h2.0.3 also
                        t.Commit();
                        s.Close();

                        // new test code in here to catch when a lazy bag has an addition then
                        // is flushed and then an operation that causes it to read from the db
                        // occurs - this used to cause the element in Add(element) to be in there
                        // twice and throw off the count by 1 (or by however many additions were 
                        // made before the flush
                        s = OpenSession();


Clone AbstractionParameter Count: 1Parameter Bindings

Assert.AreEqual( [[#variable65290340]], c.LazyBag.Count); //forces initialization
// s.Save(c4); commented in h2.0.3 also
t.Commit();
s.Close();
// new test code in here to catch when a lazy bag has an addition then
// is flushed and then an operation that causes it to read from the db
// occurs - this used to cause the element in Add(element) to be in there
// twice and throw off the count by 1 (or by however many additions were 
// made before the flush
s = OpenSession();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#65290340]]
1 
12[[#65290340]]
3