CloneSet628


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16210.996statement_list[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1161459
src/NHibernate.Test/Legacy/FooBarTest.cs
2151475
src/NHibernate.Test/Legacy/FooBarTest.cs
Clone Instance
1
Line Count
16
Source Line
1459
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        // compare the first item in the "Set" sortablez - can't reference
                        // the first item using b.sortablez[0] because it thinks 0 is the
                        // DictionaryEntry key - not the index.
                        foreach (Sortable sortable in b.Sortablez)
                        {
                                Assert.AreEqual(sortable.name, "bar");
                                break;
                        }

                        s.Flush();
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();
                        result = s.CreateQuery("from Baz baz left join fetch baz.Sortablez order by baz.Name asc").
                                 List();
                        b = (Baz) result[0];
                        Assert.IsTrue(b.Sortablez.Count == 3);


Clone Instance
2
Line Count
15
Source Line
1475
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        foreach (Sortable sortable in b.Sortablez)
                        {
                                Assert.AreEqual(sortable.name, "bar");
                                break;
                        }
                        s.Flush();
                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();
                        result = s.CreateQuery("from Baz baz order by baz.Name asc").
                                 List();
                        b = (Baz) result[0];
                        Assert.IsTrue(b.Sortablez.Count == 3);


Clone AbstractionParameter Count: 1Parameter Bindings

// compare the first item in the "Set" sortablez - can't reference
// the first item using b.sortablez[0] because it thinks 0 is the
// DictionaryEntry key - not the index.
foreach (Sortable sortable in b.Sortablez)
{
   Assert.AreEqual(sortable.name, "bar");
   break;
}
s.Flush();
t.Commit();
s.Close();
s = OpenSession();
t = s.BeginTransaction();
result = s.CreateQuery( [[#variable6ff010e0]]).List();
b = (Baz)result[0];
Assert.IsTrue(b.Sortablez.Count == 3);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6ff010e0]]
"from Baz baz left join fetch baz.Sortablez order by baz.Name asc" 
12[[#6ff010e0]]
"from Baz baz order by baz.Name asc"