CloneSet1222


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6340.958class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1622
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs
2731
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs
3658
src/NHibernate.Test/NHSpecificTest/NH280/Fixture.cs
Clone Instance
1
Line Count
6
Source Line
22
Source File
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs

                #region Non-exists
                [Test]
                public void DeleteNonExistentEntity()
                {
                        using (ISession s = OpenSession())
                        {
                                Assert.Throws<QuerySyntaxException> (() => s.CreateQuery("delete NonExistentEntity").ExecuteUpdate());
                        }
                }



Clone Instance
2
Line Count
7
Source Line
31
Source File
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs

                [Test]
                public void UpdateNonExistentEntity()
                {
                        using (ISession s = OpenSession())
                        {
                                Assert.Throws<QuerySyntaxException> (
                                        () => s.CreateQuery("update NonExistentEntity e set e.someProp = ?").ExecuteUpdate());
                        }
                }



Clone Instance
3
Line Count
6
Source Line
58
Source File
src/NHibernate.Test/NHSpecificTest/NH280/Fixture.cs

                [Test]
                public void TokenUnknow()
                {
                        using (ISession s = OpenSession())
                        {
                                Assert.Throws<QueryException> (() => s.CreateQuery("select 123, notRecognized, f.Description from Foo f").List());
                        }
                }



Clone AbstractionParameter Count: 4Parameter Bindings

#region Non-exists
[Test]
public void [[#variable55d0f780]]()
{
   using (ISession s = OpenSession())
   {
      Assert.Throws< [[#variable55d0f1a0]]> (() => s.CreateQuery( [[#variable55d0e4c0]]). [[#variable55d0f660]]());
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#55d0f780]]
TokenUnknow 
12[[#55d0f780]]
DeleteNonExistentEntity 
13[[#55d0f780]]
UpdateNonExistentEntity 
21[[#55d0f1a0]]
QueryException 
22[[#55d0f1a0]]
QuerySyntaxException 
23[[#55d0f1a0]]
QuerySyntaxException 
31[[#55d0e4c0]]
"select 123, notRecognized, f.Description from Foo f" 
32[[#55d0e4c0]]
"delete NonExistentEntity" 
33[[#55d0e4c0]]
"update NonExistentEntity e set e.someProp = ?" 
41[[#55d0f660]]
List 
42[[#55d0f660]]
ExecuteUpdate 
43[[#55d0f660]]
ExecuteUpdate