CloneSet455


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114255
src/NHibernate.Test/Legacy/FooBarTest.cs
211315
src/NHibernate.Test/Legacy/FooBarTest.cs
Clone Instance
1
Line Count
14
Source Line
255
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        using (ISession s = OpenSession())
                        {
                                Foo foo = (Foo) s.Get( typeof(Foo), fooKey);
                                Assert.IsTrue(NHibernateUtil.IsInitialized(foo.Bytes));

                                // H2.1 has 6 here, but we are using Unicode
                                Assert.AreEqual(12, foo.Bytes.Length);

                                Baz baz = (Baz) s.Get( typeof(Baz), bazCode);
                                Assert.AreEqual(1, baz.FooSet.Count);
                                s.Flush();
                        }

                        sessions.EvictCollection("NHibernate.DomainModel.Baz.FooSet");


Clone Instance
2
Line Count
11
Source Line
315
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        using (ISession s = OpenSession())
                        {
                                Foo foo = (Foo) s.Get( typeof(Foo), fooKey);
                                Assert.IsTrue(NHibernateUtil.IsInitialized(foo.Bytes));
                                Assert.AreEqual(12, foo.Bytes.Length);
                                Baz baz = (Baz) s.Get( typeof(Baz), bazCode);
                                Assert.AreEqual(1, baz.FooSet.Count);
                                s.Flush();
                        }

                        sessions.EvictCollection("NHibernate.DomainModel.Baz.FooSet");


Clone AbstractionParameter Count: 0Parameter Bindings

using (ISession s = OpenSession())
{
   Foo foo = (Foo)s.Get( typeof(Foo), fooKey);
   Assert.IsTrue(NHibernateUtil.IsInitialized(foo.Bytes));
   // H2.1 has 6 here, but we are using Unicode
   Assert.AreEqual(12, foo.Bytes.Length);
   Baz baz = (Baz)s.Get( typeof(Baz), bazCode);
   Assert.AreEqual(1, baz.FooSet.Count);
   s.Flush();
}
sessions.EvictCollection("NHibernate.DomainModel.Baz.FooSet");
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None