CloneSet1281


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.978class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11283
src/NHibernate.Test/NHSpecificTest/NH1507/Fixture.cs
21198
src/NHibernate.Test/NHSpecificTest/NH1507/Fixture.cs
Clone Instance
1
Line Count
12
Source Line
83
Source File
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]);
                        }
                }



Clone Instance
2
Line Count
11
Source Line
98
Source File
src/NHibernate.Test/NHSpecificTest/NH1507/Fixture.cs

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



Clone AbstractionParameter Count: 3Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#67fc8820]]
ExplicitJoin 
12[[#67fc8820]]
ImplicitJoinFailingTest 
21[[#67fc8780]]
"select count(*) from Order as entity join entity.Employee ee " 
22[[#67fc8780]]
"select count(*) from Order as entity " 
31[[#67fc85e0]]
"where ee.PostalCode='66666' or entity.ShipCountry='Deadville'" 
32[[#67fc85e0]]
"where entity.Employee.PostalCode='66666' or entity.ShipCountry='Deadville'"