CloneSet686


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8260.963non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1839
src/NHibernate.Test/NHSpecificTest/GetTest.cs
2849
src/NHibernate.Test/NHSpecificTest/GetTest.cs
Clone Instance
1
Line Count
8
Source Line
39
Source File
src/NHibernate.Test/NHSpecificTest/GetTest.cs

                        using (ISession s = OpenSession())
                        {
                                A loadedA = (A) s.Load( typeof(A), a.Id);
                                Assert.IsFalse(NHibernateUtil.IsInitialized(loadedA),
                                               "Load should not initialize the object");

                                Assert.IsNotNull(s.Load( typeof(A), (a.Id + 1)),
                                                 "Loading non-existent object should not return null");
                        }


Clone Instance
2
Line Count
8
Source Line
49
Source File
src/NHibernate.Test/NHSpecificTest/GetTest.cs

                        using (ISession s = OpenSession())
                        {
                                A gotA = (A) s.Get( typeof(A), a.Id);
                                Assert.IsTrue(NHibernateUtil.IsInitialized(gotA),
                                              "Get should initialize the object");

                                Assert.IsNull(s.Get( typeof(A), (a.Id + 1)),
                                              "Getting non-existent object should return null");
                        }


Clone AbstractionParameter Count: 6Parameter Bindings

using (ISession s = OpenSession())
{
   A [[#variable70e62aa0]]= (A)s. [[#variable70e62a00]]( typeof(A), a.Id);
   Assert. [[#variable70e62940]](NHibernateUtil.IsInitialized( [[#variable70e62aa0]]), [[#variable70e628c0]]);
   Assert. [[#variable70e62840]](s. [[#variable70e62a00]]( typeof(A), (a.Id + 1)), [[#variable70e627e0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70e62aa0]]
loadedA 
12[[#70e62aa0]]
gotA 
21[[#70e62a00]]
Load 
22[[#70e62a00]]
Get 
31[[#70e62940]]
IsFalse 
32[[#70e62940]]
IsTrue 
41[[#70e628c0]]
"Load should not initialize the object" 
42[[#70e628c0]]
"Get should initialize the object" 
51[[#70e62840]]
IsNotNull 
52[[#70e62840]]
IsNull 
61[[#70e627e0]]
"Loading non-existent object should not return null" 
62[[#70e627e0]]
"Getting non-existent object should return null"