Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.978 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 83 | src/NHibernate.Test/NHSpecificTest/NH1507/Fixture.cs |
2 | 11 | 98 | src/NHibernate.Test/NHSpecificTest/NH1507/Fixture.cs |
| ||||
[Test] public void ExplicitJoin() { using (ISession session = OpenSession()) { //explicit join IList results = session.CreateQuery("select count(*) from Order as entity join entity.Employee ee " + "where ee.PostalCode='66666' or entity.ShipCountry='Deadville'").List(); //Debug.Assert(list[0].Equals(191), "Wrong number of orders, returned: " + list[0].ToString()); Assert.AreEqual(2, results[0]); } } |
| ||||
[Test] public void ImplicitJoinFailingTest() { using (ISession session = OpenSession()) { //implicit join IList results = session.CreateQuery("select count(*) from Order as entity " + "where entity.Employee.PostalCode='66666' or entity.ShipCountry='Deadville'").List(); Assert.AreEqual(2, results[0]); } } |
| |||
[Test] public void [[#variable67fc8820]]() { using (ISession session = OpenSession()) { //explicit join //implicit join IList results = session.CreateQuery( [[#variable67fc8780]]+ [[#variable67fc85e0]]).List(); //Debug.Assert(list[0].Equals(191), "Wrong number of orders, returned: " + list[0].ToString()); Assert.AreEqual(2, results[0]); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#67fc8820]] | ExplicitJoin |
1 | 2 | [[#67fc8820]] | ImplicitJoinFailingTest |
2 | 1 | [[#67fc8780]] | "select count(*) from Order as entity join entity.Employee ee " |
2 | 2 | [[#67fc8780]] | "select count(*) from Order as entity " |
3 | 1 | [[#67fc85e0]] | "where ee.PostalCode='66666' or entity.ShipCountry='Deadville'" |
3 | 2 | [[#67fc85e0]] | "where entity.Employee.PostalCode='66666' or entity.ShipCountry='Deadville'" |