CloneSet655


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13320.987class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113163
src/NHibernate.Test/CfgTest/ConfigurationFixture.cs
214178
src/NHibernate.Test/CfgTest/ConfigurationFixture.cs
37194
src/NHibernate.Test/CfgTest/ConfigurationFixture.cs
Clone Instance
1
Line Count
13
Source Line
163
Source File
src/NHibernate.Test/CfgTest/ConfigurationFixture.cs

                [Test]
                public void CacheConfigurationForUnmappedClass()
                {
                        string cfgString =
                                @"<?xml version='1.0' encoding='utf-8' ?> 
\t\t\t\t\t\t\t<hibernate-configuration xmlns='urn:nhibernate-configuration-2.2'>
\t\t\t\t\t\t\t\t<session-factory>
\t\t\t\t\t\t\t\t\t<class-cache class='NHibernate.DomainModel.A, NHibernate.DomainModel' usage='read-write' region='xx' />
\t\t\t\t\t\t\t\t</session-factory>
\t\t\t\t\t\t\t</hibernate-configuration>";

                        Configuration cfg = new Configuration();
                        Assert.Throws<HibernateConfigException> (() => cfg.Configure(new XmlTextReader(cfgString, XmlNodeType.Document, null)));
                }



Clone Instance
2
Line Count
14
Source Line
178
Source File
src/NHibernate.Test/CfgTest/ConfigurationFixture.cs

                [Test]
                public void CacheConfigurationForUnmappedCollection()
                {
                        string cfgString =
                                @"<?xml version='1.0' encoding='utf-8' ?> 
\t\t\t\t\t\t\t<hibernate-configuration xmlns='urn:nhibernate-configuration-2.2'>
\t\t\t\t\t\t\t\t<session-factory>
\t\t\t\t\t\t\t\t\t<mapping resource='NHibernate.DomainModel.ABC.hbm.xml' assembly='NHibernate.DomainModel' />
\t\t\t\t\t\t\t\t\t<collection-cache collection='NHibernate.DomainModel.B.XX' usage='nonstrict-read-write' region='yy' />
\t\t\t\t\t\t\t\t</session-factory>
\t\t\t\t\t\t\t</hibernate-configuration>";

                        Configuration cfg = new Configuration();
                        Assert.Throws<HibernateConfigException> (() => cfg.Configure(new XmlTextReader(cfgString, XmlNodeType.Document, null)));
                }



Clone Instance
3
Line Count
7
Source Line
194
Source File
src/NHibernate.Test/CfgTest/ConfigurationFixture.cs

                [Test]
                public void NoSessionFactoriesInConfiguration()
                {
                        string cfgString = @"<?xml version='1.0' encoding='utf-8' ?><someElement />";

                        Configuration cfg = new Configuration();
                        Assert.Throws<HibernateConfigException> (() => cfg.Configure(new XmlTextReader(cfgString, XmlNodeType.Document, null)));
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[Test]
public void [[#variable50f11520]]()
{
   string cfgString = [[#variable50f113e0]];
   Configuration cfg = new Configuration();
   Assert.Throws<HibernateConfigException> (() => cfg.Configure(new XmlTextReader(cfgString, XmlNodeType.Document, null)));
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#50f11520]]
CacheConfigurationForUnmappedClass 
12[[#50f11520]]
CacheConfigurationForUnmappedCollection 
13[[#50f11520]]
NoSessionFactoriesInConfiguration 
21[[#50f113e0]]
@"<?xml version='1.0' encoding='utf-8' ?> 
\t\t\t\t\t\t\t<hibernate-configuration xmlns='urn:nhibernate-configuration-2.2'>
\t\t\t\t\t\t\t\t<session-factory>
\t\t\t\t\t\t\t\t\t<class-cache class='NHibernate.DomainModel.A, NHibernate.DomainModel' usage='read-write' region='xx' />
\t\t\t\t\t\t\t\t</session-factory>
\t\t\t\t\t\t\t</hibernate-configuration>" 
22[[#50f113e0]]
@"<?xml version='1.0' encoding='utf-8' ?> 
\t\t\t\t\t\t\t<hibernate-configuration xmlns='urn:nhibernate-configuration-2.2'>
\t\t\t\t\t\t\t\t<session-factory>
\t\t\t\t\t\t\t\t\t<mapping resource='NHibernate.DomainModel.ABC.hbm.xml' assembly='NHibernate.DomainModel' />
\t\t\t\t\t\t\t\t\t<collection-cache collection='NHibernate.DomainModel.B.XX' usage='nonstrict-read-write' region='yy' />
\t\t\t\t\t\t\t\t</session-factory>
\t\t\t\t\t\t\t</hibernate-configuration>" 
23[[#50f113e0]]
@"<?xml version='1.0' encoding='utf-8' ?><someElement />"