Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
33 | 3 | 4 | 0.981 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 33 | 1 | src/NHibernate.Test/IdTest/HiLoTableGeneratorInt16Fixture.cs |
2 | 33 | 1 | src/NHibernate.Test/IdTest/HiLoTableGeneratorInt32Fixture.cs |
3 | 33 | 1 | src/NHibernate.Test/IdTest/HiLoTableGeneratorInt64Fixture.cs |
| ||||
using System; using NUnit.Framework; namespace NHibernate.Test.IdTest { [TestFixture] public class HiLoTableGeneratorInt16Fixture : IdFixtureBase { protected override string TypeName { get { return "HiLoInt16"; } } [Test] public void ReadWrite() { Int16 id; ISession s = OpenSession(); HiLoInt16Class b = new HiLoInt16Class(); s.Save(b); s.Flush(); id = b.Id; s.Close(); s = OpenSession(); b = (HiLoInt16Class) s.Load( typeof(HiLoInt16Class), b.Id); Assert.AreEqual(id, b.Id); s.Delete(b); s.Flush(); s.Close(); } } } |
| ||||
using System; using NUnit.Framework; namespace NHibernate.Test.IdTest { [TestFixture] public class HiLoTableGeneratorInt32Fixture : IdFixtureBase { protected override string TypeName { get { return "HiLoInt32"; } } [Test] public void ReadWrite() { Int32 id; ISession s = OpenSession(); HiLoInt32Class b = new HiLoInt32Class(); s.Save(b); s.Flush(); id = b.Id; s.Close(); s = OpenSession(); b = (HiLoInt32Class) s.Load( typeof(HiLoInt32Class), b.Id); Assert.AreEqual(id, b.Id); s.Delete(b); s.Flush(); s.Close(); } } } |
| ||||
using System; using NUnit.Framework; namespace NHibernate.Test.IdTest { [TestFixture] public class HiLoTableGeneratorInt64Fixture : IdFixtureBase { protected override string TypeName { get { return "HiLoInt64"; } } [Test] public void ReadWrite() { Int64 id; ISession s = OpenSession(); HiLoInt64Class b = new HiLoInt64Class(); s.Save(b); s.Flush(); id = b.Id; s.Close(); s = OpenSession(); b = (HiLoInt64Class) s.Load( typeof(HiLoInt64Class), b.Id); Assert.AreEqual(id, b.Id); s.Delete(b); s.Flush(); s.Close(); } } } |
| |||
using System; using NUnit.Framework; namespace NHibernate.Test.IdTest { [TestFixture] public class [[#variable4ef78b80]]: IdFixtureBase { protected override string TypeName { get { return [[#variable4ef78be0]]; } } [Test] public void ReadWrite() { [[#variable4ef782a0]]id; ISession s = OpenSession(); [[#variable4ef78b60]]b = new [[#variable4ef78b60]](); s.Save(b); s.Flush(); id = b.Id; s.Close(); s = OpenSession(); b = ( [[#variable4ef78b60]])s.Load( typeof( [[#variable4ef78b60]]), b.Id); Assert.AreEqual(id, b.Id); s.Delete(b); s.Flush(); s.Close(); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4ef78b80]] | HiLoTableGeneratorInt16Fixture |
1 | 2 | [[#4ef78b80]] | HiLoTableGeneratorInt32Fixture |
1 | 3 | [[#4ef78b80]] | HiLoTableGeneratorInt64Fixture |
2 | 1 | [[#4ef78be0]] | "HiLoInt16" |
2 | 2 | [[#4ef78be0]] | "HiLoInt32" |
2 | 3 | [[#4ef78be0]] | "HiLoInt64" |
3 | 1 | [[#4ef782a0]] | Int16 |
3 | 2 | [[#4ef782a0]] | Int32 |
3 | 3 | [[#4ef782a0]] | Int64 |
4 | 1 | [[#4ef78b60]] | HiLoInt16Class |
4 | 2 | [[#4ef78b60]] | HiLoInt32Class |
4 | 3 | [[#4ef78b60]] | HiLoInt64Class |