Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 3 | 2 | 0.993 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 72 | src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs |
2 | 15 | 89 | src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs |
3 | 17 | 106 | 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(); } |
| ||||
[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(); } |
| ||||
[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(); } |
| |||
[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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6f4c03a0]] | LoadEntitiesWithWithSimpleHbmAliasInjection |
1 | 2 | [[#6f4c03a0]] | LoadEntitiesWithComplexHbmAliasInjection |
1 | 3 | [[#6f4c03a0]] | LoadEntitiesWithExplicitColumnMappings |
2 | 1 | [[#6f4c0380]] | "LoadCountryCitiesWithSimpleHbmAliasInjection" |
2 | 2 | [[#6f4c0380]] | "LoadCountryCitiesWithComplexHbmAliasInjection" |
2 | 3 | [[#6f4c0380]] | "LoadCountryCitiesWithCustomAliases" |