Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 1 | 0.996 | statement_list[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 1459 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 15 | 1475 | 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); |
| ||||
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); |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6ff010e0]] | "from Baz baz left join fetch baz.Sortablez order by baz.Name asc" |
1 | 2 | [[#6ff010e0]] | "from Baz baz order by baz.Name asc" |