CloneSet384


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.994class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11619
src/NHibernate.Test/NHSpecificTest/NH1343/ProductFixture.cs
21638
src/NHibernate.Test/NHSpecificTest/NH1343/ProductFixture.cs
Clone Instance
1
Line Count
16
Source Line
19
Source File
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);
                        }
                }



Clone Instance
2
Line Count
16
Source Line
38
Source File
src/NHibernate.Test/NHSpecificTest/NH1343/ProductFixture.cs

                [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);
                        }
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#553d4240]]
ProductQueryPassesParsingButFails 
12[[#553d4240]]
ProductQueryPassesAndExecutesRightIfPuttingAlias 
21[[#553d41c0]]
"GetLinesForProduct" 
22[[#553d41c0]]
"GetLinesForProductWithAlias"