CloneSet80


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
36240.964statement_list[31]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
134262
src/NHibernate.Test/Legacy/MultiTableTest.cs
236384
src/NHibernate.Test/Legacy/MultiTableTest.cs
Clone Instance
1
Line Count
34
Source Line
262
Source File
src/NHibernate.Test/Legacy/MultiTableTest.cs

                        multi.Name = "new name";
                        s.Update(multi, mid);
                        simp.Name = "new name";
                        s.Update(simp, sid);
                        sm.Amount = 456.7F;
                        s.Update(sm, smid);
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();
                        multi = (Multi) s.Load( typeof(Multi), mid);
                        Assert.AreEqual("extra2", multi.ExtraProp);
                        multi.ExtraProp = multi.ExtraProp + "3";
                        Assert.AreEqual("new name", multi.Name);
                        multi.Name = "newer name";
                        sm = (SubMulti) s.Load( typeof(SubMulti), smid);
                        Assert.AreEqual(456.7F, sm.Amount);
                        sm.Amount = 23423F;
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();
                        multi = (Multi) s.Load( typeof(Top), mid);
                        simp = (Top) s.Load( typeof(Top), sid);
                        Assert.IsFalse(simp is Multi);
                        Assert.AreEqual("extra23", multi.ExtraProp);
                        Assert.AreEqual("newer name", multi.Name);
                        t.Commit();
                        s.Close();

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


Clone Instance
2
Line Count
36
Source Line
384
Source File
src/NHibernate.Test/Legacy/MultiTableTest.cs

                        multi.Name = "new name";
                        s.Update(multi, multiId);
                        simp.Name = "new name";
                        s.Update(simp, simpId);
                        sm.Amount = 456.7F;
                        s.Update(sm, smId);
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();
                        multi = (Multi) s.Load( typeof(Multi), multiId);
                        Assert.AreEqual("extra2", multi.ExtraProp);
                        multi.ExtraProp += "3";
                        Assert.AreEqual("new name", multi.Name);
                        multi.Name = "newer name";
                        sm = (SubMulti) s.Load( typeof(SubMulti), smId);
                        Assert.AreEqual(456.7F, sm.Amount);
                        sm.Amount = 23423F;
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();
                        multi = (Multi) s.Load( typeof(Top), multiId);
                        simp = (Top) s.Load( typeof(Top), simpId);
                        Assert.IsFalse(simp is Multi);
                        // Can't see the point of this test since the variable is declared as Multi!
                        //Assert.IsTrue( multi is Multi );
                        Assert.AreEqual("extra23", multi.ExtraProp);
                        Assert.AreEqual("newer name", multi.Name);
                        t.Commit();
                        s.Close();

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


Clone AbstractionParameter Count: 4Parameter Bindings

multi.Name = "new name";
s.Update(multi, [[#variable6fee4620]]);
simp.Name = "new name";
s.Update(simp, [[#variable6fee43e0]]);
sm.Amount = 456.7F;
s.Update(sm, [[#variable2cdc75e0]]);
t.Commit();
s.Close();
s = OpenSession();
t = s.BeginTransaction();
multi = (Multi)s.Load( typeof(Multi), [[#variable6fee4620]]);
Assert.AreEqual("extra2", multi.ExtraProp);
 [[#variable6e08dd20]];
Assert.AreEqual("new name", multi.Name);
multi.Name = "newer name";
sm = (SubMulti)s.Load( typeof(SubMulti), [[#variable2cdc75e0]]);
Assert.AreEqual(456.7F, sm.Amount);
sm.Amount = 23423F;
t.Commit();
s.Close();
s = OpenSession();
t = s.BeginTransaction();
multi = (Multi)s.Load( typeof(Top), [[#variable6fee4620]]);
simp = (Top)s.Load( typeof(Top), [[#variable6fee43e0]]);
Assert.IsFalse(simp is Multi);
// Can't see the point of this test since the variable is declared as Multi!
//Assert.IsTrue( multi is Multi );
Assert.AreEqual("extra23", multi.ExtraProp);
Assert.AreEqual("newer name", multi.Name);
t.Commit();
s.Close();
s = OpenSession();
t = s.BeginTransaction();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6fee4620]]
multiId 
12[[#6fee4620]]
mid 
21[[#6fee43e0]]
simpId 
22[[#6fee43e0]]
sid 
31[[#2cdc75e0]]
smId 
32[[#2cdc75e0]]
smid 
41[[#6e08dd20]]
multi.ExtraProp += "3" 
42[[#6e08dd20]]
multi.ExtraProp = multi.ExtraProp + "3"