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.990 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 9 | src/NHibernate.Test/NHSpecificTest/NH693/Fixture.cs |
2 | 16 | 28 | src/NHibernate.Test/NHSpecificTest/NH693/Fixture.cs |
| ||||
[Test] public void Bug() { try { new Configuration(). AddResource(GetType().Namespace + ".EmptyTableName.hbm.xml", GetType().Assembly). BuildSessionFactory(); Assert.Fail("should throw exception"); } catch (MappingException e) { MappingException ee = e.InnerException as MappingException; if (ee == null) throw; Assert.IsTrue(ee.Message.StartsWith("Could not determine the name of the table for entity")); } } |
| ||||
[Test] public void SpaceTableName() { try { new Configuration(). AddResource(GetType().Namespace + ".SpaceTableName.hbm.xml", GetType().Assembly). BuildSessionFactory(); Assert.Fail("should throw exception"); } catch (MappingException e) { MappingException ee = e.InnerException as MappingException; if (ee == null) throw; Assert.IsTrue(ee.Message.StartsWith("Could not determine the name of the table for entity")); } } |
| |||
[Test] public void [[#variable2d242ae0]]() { try { new Configuration().AddResource(GetType().Namespace + [[#variable2d242a40]], GetType().Assembly).BuildSessionFactory(); Assert.Fail("should throw exception"); } catch (MappingException e) { MappingException ee = e.InnerException as MappingException; if (ee == null) throw; Assert.IsTrue(ee.Message.StartsWith("Could not determine the name of the table for entity")); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2d242ae0]] | SpaceTableName |
1 | 2 | [[#2d242ae0]] | Bug |
2 | 1 | [[#2d242a40]] | ".SpaceTableName.hbm.xml" |
2 | 2 | [[#2d242a40]] | ".EmptyTableName.hbm.xml" |