CloneSet442


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000statement_list[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11425
src/NHibernate.Test/SubclassFilterTest/DiscrimSubclassFilterTest.cs
21425
src/NHibernate.Test/SubclassFilterTest/JoinedSubclassFilterTest.cs
Clone Instance
1
Line Count
14
Source Line
25
Source File
src/NHibernate.Test/SubclassFilterTest/DiscrimSubclassFilterTest.cs

                        s.EnableFilter("region").SetParameter("userRegion", "US");
                        ITransaction t = s.BeginTransaction();

                        PrepareTestData(s);
                        s.Clear();

                        IList results;

                        results = s.CreateQuery("from Person").List();
                        Assert.AreEqual(4, results.Count, "Incorrect qry result count");
                        s.Clear();

                        results = s.CreateQuery("from Employee").List();
                        Assert.AreEqual(2, results.Count, "Incorrect qry result count");


Clone Instance
2
Line Count
14
Source Line
25
Source File
src/NHibernate.Test/SubclassFilterTest/JoinedSubclassFilterTest.cs

                        s.EnableFilter("region").SetParameter("userRegion", "US");
                        ITransaction t = s.BeginTransaction();

                        PrepareTestData(s);
                        s.Clear();

                        IList results;

                        results = s.CreateQuery("from Person").List();
                        Assert.AreEqual(4, results.Count, "Incorrect qry result count");
                        s.Clear();

                        results = s.CreateQuery("from Employee").List();
                        Assert.AreEqual(2, results.Count, "Incorrect qry result count");


Clone AbstractionParameter Count: 0Parameter Bindings

s.EnableFilter("region").SetParameter("userRegion", "US");
ITransaction t = s.BeginTransaction();
PrepareTestData(s);
s.Clear();
IList results;
results = s.CreateQuery("from Person").List();
Assert.AreEqual(4, results.Count, "Incorrect qry result count");
s.Clear();
results = s.CreateQuery("from Employee").List();
Assert.AreEqual(2, results.Count, "Incorrect qry result count");
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None