Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.976 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 274 | src/NHibernate.Test/CfgTest/ConfigurationFixture.cs |
2 | 16 | 9 | src/NHibernate.Test/NHSpecificTest/NH1290/Fixture.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(); } |
| ||||
[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 } |
| |||
[Test] public void [[#variable6fe058a0]]() { string hbm = [[#variable6fe05840]]; Configuration cfg = new Configuration(); cfg.AddXmlString(hbm); //.BuildSessionFactory(); // the mapping is added without problem } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fe058a0]] | ExposeBug |
1 | 2 | [[#6fe058a0]] | PersisterWithDefaultNamespaceAndAssembly |
2 | 1 | [[#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>" |
2 | 2 | [[#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>" |