CloneSet225


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15320.993class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11572
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
21589
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
317106
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
Clone Instance
1
Line Count
15
Source Line
72
Source File
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs

                [Test]
                public void LoadEntitiesWithWithSimpleHbmAliasInjection()
                {
                        City[] cities = CreateCities();
                        Country country = CreateCountry(cities);
                        Save(country);
                        using (ISession session = OpenSession())
                        {
                                var c =
                                        session.GetNamedQuery("LoadCountryCitiesWithSimpleHbmAliasInjection").SetString("country_code", country.Code).
                                                UniqueResult<Country> ();
                                Assert.That(c, Is.Not.Null);
                                Assert.That(c.Cities, Is.EquivalentTo(cities));
                        }
                        CleanupWithCities();
                }



Clone Instance
2
Line Count
15
Source Line
89
Source File
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs

                [Test]
                public void LoadEntitiesWithComplexHbmAliasInjection()
                {
                        City[] cities = CreateCities();
                        Country country = CreateCountry(cities);
                        Save(country);
                        using (ISession session = OpenSession())
                        {
                                var c =
                                        session.GetNamedQuery("LoadCountryCitiesWithComplexHbmAliasInjection").SetString("country_code", country.Code).
                                                UniqueResult<Country> ();
                                Assert.That(c, Is.Not.Null);
                                Assert.That(c.Cities, Is.EquivalentTo(cities));
                        }
                        CleanupWithCities();
                }



Clone Instance
3
Line Count
17
Source Line
106
Source File
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs

                [Test]
                public void LoadEntitiesWithExplicitColumnMappings()
                {
                        City[] cities = CreateCities();
                        Country country = CreateCountry(cities);
                        Save(country);
                        using (ISession session = OpenSession())
                        {
                                var c =
                                        session.GetNamedQuery("LoadCountryCitiesWithCustomAliases").SetString("country_code", country.Code).
                                                UniqueResult<Country> ();
                                Assert.That(c, Is.Not.Null);
                                Assert.That(c.Cities, Is.EquivalentTo(cities));
                        }

                        // cleanup
                        CleanupWithCities();
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[Test]
public void [[#variable6f4c03a0]]()
{
   City[] cities = CreateCities();
   Country country = CreateCountry(cities);
   Save(country);
   using (ISession session = OpenSession())
   {
      var c = session.GetNamedQuery( [[#variable6f4c0380]]).SetString("country_code", country.Code).UniqueResult<Country> ();
      Assert.That(c, Is.Not.Null);
      Assert.That(c.Cities, Is.EquivalentTo(cities));
   }
   // cleanup
   CleanupWithCities();
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6f4c03a0]]
LoadEntitiesWithWithSimpleHbmAliasInjection 
12[[#6f4c03a0]]
LoadEntitiesWithComplexHbmAliasInjection 
13[[#6f4c03a0]]
LoadEntitiesWithExplicitColumnMappings 
21[[#6f4c0380]]
"LoadCountryCitiesWithSimpleHbmAliasInjection" 
22[[#6f4c0380]]
"LoadCountryCitiesWithComplexHbmAliasInjection" 
23[[#6f4c0380]]
"LoadCountryCitiesWithCustomAliases"