Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 3 | 2 | 0.987 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 163 | src/NHibernate.Test/CfgTest/ConfigurationFixture.cs |
2 | 14 | 178 | src/NHibernate.Test/CfgTest/ConfigurationFixture.cs |
3 | 7 | 194 | 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))); } |
| ||||
[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))); } |
| ||||
[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))); } |
| |||
[Test] public void [[#variable50f11520]]() { string cfgString = [[#variable50f113e0]]; Configuration cfg = new Configuration(); Assert.Throws<HibernateConfigException> (() => cfg.Configure(new XmlTextReader(cfgString, XmlNodeType.Document, null))); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#50f11520]] | CacheConfigurationForUnmappedClass |
1 | 2 | [[#50f11520]] | CacheConfigurationForUnmappedCollection |
1 | 3 | [[#50f11520]] | NoSessionFactoriesInConfiguration |
2 | 1 | [[#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>" |
2 | 2 | [[#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>" |
2 | 3 | [[#50f113e0]] | @"<?xml version='1.0' encoding='utf-8' ?><someElement />" |