CloneSet173


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22310.997statement_list[16]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12236
src/NHibernate.Test/GenericTest/BagGeneric/BagGenericFixture.cs
22237
src/NHibernate.Test/GenericTest/ListGeneric/ListGenericFixture.cs
32238
src/NHibernate.Test/GenericTest/SetGeneric/SetGenericFixture.cs
Clone Instance
1
Line Count
22
Source Line
36
Source File
src/NHibernate.Test/GenericTest/BagGeneric/BagGenericFixture.cs

                        a.Items = new List<B> ();
                        B firstB = new B();
                        firstB.Name = "first b";
                        B secondB = new B();
                        secondB.Name = "second b";

                        a.Items.Add( firstB);
                        a.Items.Add( secondB);

                        ISession s = OpenSession();
                        s.SaveOrUpdate(a);
                        // this flush should test how NH wraps a generic collection with its
                        // own persistent collection
                        s.Flush();
                        s.Close();
                        Assert.IsNotNull(a.Id);
                        // should have cascaded down to B
                        Assert.IsNotNull(firstB.Id);
                        Assert.IsNotNull(secondB.Id);

                        s = OpenSession();
                        a = s.Load < A > (a.Id);


Clone Instance
2
Line Count
22
Source Line
37
Source File
src/NHibernate.Test/GenericTest/ListGeneric/ListGenericFixture.cs

                        a.Items = new List<B> ();
                        B firstB = new B();
                        firstB.Name = "first b";
                        B secondB = new B();
                        secondB.Name = "second b";

                        a.Items.Add(firstB);
                        a.Items.Add(secondB);

                        ISession s = OpenSession();
                        s.SaveOrUpdate(a);
                        // this flush should test how NH wraps a generic collection with its
                        // own persistent collection
                        s.Flush();
                        s.Close();
                        Assert.IsNotNull(a.Id);
                        // should have cascaded down to B
                        Assert.IsNotNull(firstB.Id);
                        Assert.IsNotNull(secondB.Id);

                        s = OpenSession();
                        a = s.Load < A > (a.Id);


Clone Instance
3
Line Count
22
Source Line
38
Source File
src/NHibernate.Test/GenericTest/SetGeneric/SetGenericFixture.cs

                        a.Items = new HashedSet<B> ();
                        B firstB = new B();
                        firstB.Name = "first b";
                        B secondB = new B();
                        secondB.Name = "second b";

                        a.Items.Add(firstB);
                        a.Items.Add(secondB);

                        ISession s = OpenSession();
                        s.SaveOrUpdate(a);
                        // this flush should test how NH wraps a generic collection with its
                        // own persistent collection
                        s.Flush();
                        s.Close();
                        Assert.IsNotNull(a.Id);
                        // should have cascaded down to B
                        Assert.IsNotNull(firstB.Id);
                        Assert.IsNotNull(secondB.Id);

                        s = OpenSession();
                        a = s.Load < A > (a.Id);


Clone AbstractionParameter Count: 1Parameter Bindings

a.Items = new [[#variable26ea9440]]<B> ();
B firstB = new B();
firstB.Name = "first b";
B secondB = new B();
secondB.Name = "second b";
a.Items.Add(firstB);
a.Items.Add(secondB);
ISession s = OpenSession();
s.SaveOrUpdate(a);
// this flush should test how NH wraps a generic collection with its
// own persistent collection
s.Flush();
s.Close();
Assert.IsNotNull(a.Id);
// should have cascaded down to B
Assert.IsNotNull(firstB.Id);
Assert.IsNotNull(secondB.Id);
s = OpenSession();
a = s.Load < A > (a.Id);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#26ea9440]]
HashedSet 
12[[#26ea9440]]
List 
13[[#26ea9440]]
List