CloneSet579


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9201.000non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1934
src/NHibernate.Test/NHSpecificTest/NH719/Fixture.cs
2946
src/NHibernate.Test/NHSpecificTest/NH719/Fixture.cs
Clone Instance
1
Line Count
9
Source Line
34
Source File
src/NHibernate.Test/NHSpecificTest/NH719/Fixture.cs

                                using (ISession session = sessions.OpenSession())
                                {
                                        // runs OK, since it's not cached
                                        NotCached nc = (NotCached) session.Load( typeof(NotCached), 1);
                                        Assert.AreEqual("bbb", ((B) nc.Owner).Foo);

                                        // 1st run OK, not yet in cache
                                        Cached ca = (Cached) session.Load( typeof(Cached), 1);
                                        Assert.AreEqual("aaa", ((A) ca.Owner).Foo);
                                }


Clone Instance
2
Line Count
9
Source Line
46
Source File
src/NHibernate.Test/NHSpecificTest/NH719/Fixture.cs

                                // 2nd run fails, when data is read from the cache
                                using (ISession session = sessions.OpenSession())
                                {
                                        // runs OK, since it's not cached
                                        NotCached nc = (NotCached) session.Load( typeof(NotCached), 1);
                                        Assert.AreEqual("bbb", ((B) nc.Owner).Foo);

                                        // 2nd run fails, when loaded from in cache
                                        Cached ca = (Cached) session.Load( typeof(Cached), 1);
                                        Assert.AreEqual("aaa", ((A) ca.Owner).Foo);
                                }


Clone AbstractionParameter Count: 0Parameter Bindings

// 2nd run fails, when data is read from the cache
using (ISession session = sessions.OpenSession())
{
   // runs OK, since it's not cached
   NotCached nc = (NotCached)session.Load( typeof(NotCached), 1);
   Assert.AreEqual("bbb", ((B)nc.Owner).Foo);
   // 1st run OK, not yet in cache
   // 2nd run fails, when loaded from in cache
   Cached ca = (Cached)session.Load( typeof(Cached), 1);
   Assert.AreEqual("aaa", ((A)ca.Owner).Foo);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None