CloneSet2243


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.976class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117274
src/NHibernate.Test/CfgTest/ConfigurationFixture.cs
2169
src/NHibernate.Test/NHSpecificTest/NH1290/Fixture.cs
Clone Instance
1
Line Count
17
Source Line
274
Source File
src/NHibernate.Test/CfgTest/ConfigurationFixture.cs

                [Test]
                public void PersisterWithDefaultNamespaceAndAssembly()
                {
                        string hbm =
                                @"<?xml version='1.0' encoding='utf-8' ?> 
\t\t\t\t\t\t\t<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
\t\t\t\t\t\t\t\tnamespace='NHibernate.DomainModel'
\t\t\t\t\t\t\t\tassembly='NHibernate.DomainModel'>
\t\t\t\t\t\t\t\t<class name='A' persister='A'>
\t\t\t\t\t\t\t\t\t<id name='Id'>
\t\t\t\t\t\t\t\t\t\t<generator class='native' />
\t\t\t\t\t\t\t\t\t</id>
\t\t\t\t\t\t\t\t</class>
\t\t\t\t\t\t\t</hibernate-mapping>";

                        Configuration cfg = new Configuration();
                        cfg.AddXmlString(hbm); //.BuildSessionFactory();
                }



Clone Instance
2
Line Count
16
Source Line
9
Source File
src/NHibernate.Test/NHSpecificTest/NH1290/Fixture.cs

                [Test]
                public void ExposeBug()
                {

                        string hbm =
@"<?xml version='1.0' encoding='utf-8' ?> 
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
\t\t\t\t\t\t\t\tnamespace='NHibernate.Test.NHSpecificTest.NH1290'
\t\t\t\t\t\t\t\tassembly='NHibernate.Test'>
\t<database-object>
\t\t<definition class='AuxType'/>
\t</database-object>
</hibernate-mapping>"   ;

                        Configuration cfg = new Configuration();
                        cfg.AddXmlString(hbm);
                        // the mapping is added without problem
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[Test]
public void [[#variable6fe058a0]]()
{
   string hbm = [[#variable6fe05840]];
   Configuration cfg = new Configuration();
   cfg.AddXmlString(hbm); //.BuildSessionFactory();
// the mapping is added without problem
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6fe058a0]]
ExposeBug 
12[[#6fe058a0]]
PersisterWithDefaultNamespaceAndAssembly 
21[[#6fe05840]]
@"<?xml version='1.0' encoding='utf-8' ?> 
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
\t\t\t\t\t\t\t\tnamespace='NHibernate.Test.NHSpecificTest.NH1290'
\t\t\t\t\t\t\t\tassembly='NHibernate.Test'>
\t<database-object>
\t\t<definition class='AuxType'/>
\t</database-object>
</hibernate-mapping>" 
22[[#6fe05840]]
@"<?xml version='1.0' encoding='utf-8' ?> 
\t\t\t\t\t\t\t<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
\t\t\t\t\t\t\t\tnamespace='NHibernate.DomainModel'
\t\t\t\t\t\t\t\tassembly='NHibernate.DomainModel'>
\t\t\t\t\t\t\t\t<class name='A' persister='A'>
\t\t\t\t\t\t\t\t\t<id name='Id'>
\t\t\t\t\t\t\t\t\t\t<generator class='native' />
\t\t\t\t\t\t\t\t\t</id>
\t\t\t\t\t\t\t\t</class>
\t\t\t\t\t\t\t</hibernate-mapping>"