Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.994 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 19 | src/NHibernate.Test/NHSpecificTest/NH1343/ProductFixture.cs |
2 | 16 | 38 | src/NHibernate.Test/NHSpecificTest/NH1343/ProductFixture.cs |
| ||||
[Test] public void ProductQueryPassesParsingButFails() { Product product1 = new Product("product1"); OrderLine orderLine = new OrderLine("1", product1); using (ISession session = OpenSession()) { session.Save(product1); session.Save(orderLine); session.Flush(); IQuery query = session.GetNamedQuery("GetLinesForProduct"); query.SetParameter("product", product1); IList<OrderLine> list = query.List<OrderLine> (); Assert.AreEqual(1, list.Count); } } |
| ||||
[Test] public void ProductQueryPassesAndExecutesRightIfPuttingAlias() { Product product1 = new Product("product1"); OrderLine orderLine = new OrderLine("1", product1); using (ISession session = OpenSession()) { session.Save(product1); session.Save(orderLine); session.Flush(); IQuery query = session.GetNamedQuery("GetLinesForProductWithAlias"); query.SetParameter("product", product1); IList<OrderLine> list = query.List<OrderLine> (); Assert.AreEqual(1, list.Count); } } |
| |||
[Test] public void [[#variable553d4240]]() { Product product1 = new Product("product1"); OrderLine orderLine = new OrderLine("1", product1); using (ISession session = OpenSession()) { session.Save(product1); session.Save(orderLine); session.Flush(); IQuery query = session.GetNamedQuery( [[#variable553d41c0]]); query.SetParameter("product", product1); IList<OrderLine> list = query.List<OrderLine> (); Assert.AreEqual(1, list.Count); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#553d4240]] | ProductQueryPassesParsingButFails |
1 | 2 | [[#553d4240]] | ProductQueryPassesAndExecutesRightIfPuttingAlias |
2 | 1 | [[#553d41c0]] | "GetLinesForProduct" |
2 | 2 | [[#553d41c0]] | "GetLinesForProductWithAlias" |