CloneSet333


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.997statement_list[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1966
src/NHibernate.Test/IdGen/Enhanced/SequenceStyleConfigUnitFixture.cs
2977
src/NHibernate.Test/IdGen/Enhanced/SequenceStyleConfigUnitFixture.cs
Clone Instance
1
Line Count
9
Source Line
66
Source File
src/NHibernate.Test/IdGen/Enhanced/SequenceStyleConfigUnitFixture.cs

                        // optimizer=hilo w/ increment > 1 => hilo
                        props = new Dictionary<string, string> ();
                        props[SequenceStyleGenerator.OptimizerParam] = OptimizerFactory.HiLo;
                        props[SequenceStyleGenerator.IncrementParam] = "20";
                        generator = new SequenceStyleGenerator();
                        generator.Configure(NHibernateUtil.Int64, props, dialect);
                        Assert.That(generator.DatabaseStructure, Is.AssignableFrom( typeof( SequenceStructure)));
                        Assert.That(generator.Optimizer, Is.AssignableFrom( typeof( OptimizerFactory.HiLoOptimizer)));
                        Assert.AreEqual(20, generator.Optimizer.IncrementSize);
                        Assert.AreEqual(20, generator.DatabaseStructure.IncrementSize);


Clone Instance
2
Line Count
9
Source Line
77
Source File
src/NHibernate.Test/IdGen/Enhanced/SequenceStyleConfigUnitFixture.cs

                        // optimizer=pooled w/ increment > 1 => hilo
                        props = new Dictionary<string, string> ();
                        props[SequenceStyleGenerator.OptimizerParam] = OptimizerFactory.Pool;
                        props[SequenceStyleGenerator.IncrementParam] = "20";
                        generator = new SequenceStyleGenerator();
                        generator.Configure(NHibernateUtil.Int64, props, dialect);
                        Assert.That(generator.DatabaseStructure, Is.AssignableFrom( typeof( SequenceStructure)));
                        Assert.That(generator.Optimizer, Is.AssignableFrom( typeof( OptimizerFactory.HiLoOptimizer)));
                        Assert.AreEqual(20, generator.Optimizer.IncrementSize);
                        Assert.AreEqual(20, generator.DatabaseStructure.IncrementSize);


Clone AbstractionParameter Count: 1Parameter Bindings

// optimizer=pooled w/ increment > 1 => hilo
// optimizer=hilo w/ increment > 1 => hilo
props = new Dictionary<string, string> ();
props[SequenceStyleGenerator.OptimizerParam] = OptimizerFactory. [[#variable54ac3540]];
props[SequenceStyleGenerator.IncrementParam] = "20";
generator = new SequenceStyleGenerator();
generator.Configure(NHibernateUtil.Int64, props, dialect);
Assert.That(generator.DatabaseStructure, Is.AssignableFrom( typeof(SequenceStructure)));
Assert.That(generator.Optimizer, Is.AssignableFrom( typeof(OptimizerFactory.HiLoOptimizer)));
Assert.AreEqual(20, generator.Optimizer.IncrementSize);
Assert.AreEqual(20, generator.DatabaseStructure.IncrementSize);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54ac3540]]
Pool 
12[[#54ac3540]]
HiLo