CloneSet589


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28320.988statement_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
129302
src/NHibernate.Test/FilterTest/DynamicFilterTest.cs
229394
src/NHibernate.Test/FilterTest/DynamicFilterTest.cs
328445
src/NHibernate.Test/FilterTest/DynamicFilterTest.cs
Clone Instance
1
Line Count
29
Source Line
302
Source File
src/NHibernate.Test/FilterTest/DynamicFilterTest.cs

                        int size = prod.Categories.Count;
                        Assert.AreEqual(1, size, "Incorrect filtered collection count");

                        //long currLoadCount = sessions.Statistics.CollectionLoadCount;
                        //long currFetchCount = sessions.Statistics.CollectionFetchCount;

                        //Assert.IsTrue(
                        //    (initLoadCount == currLoadCount) && (initFetchCount == currFetchCount),
                        //    "Load with join fetch of many-to-many did not trigger join fetch"
                        //    );

                        // make sure we did not get back a collection of proxies
                        //long initEntityLoadCount = sessions.Statistics.EntityLoadCount;

                        foreach (Category cat in prod.Categories)
                        {
                                Assert.IsTrue(NHibernateUtil.IsInitialized(cat),
                                              "Load with join fetch of many-to-many did not trigger *complete* join fetch");
                                //Console.WriteLine(" ===> " + cat.Name);
                        }
                        //long currEntityLoadCount = sessions.Statistics.EntityLoadCount;

                        //Assert.IsTrue(
                        //    (initEntityLoadCount == currEntityLoadCount),
                        //    "Load with join fetch of many-to-many did not trigger *complete* join fetch"
                        //    );

                        session.Close();
                        testData.Release();


Clone Instance
2
Line Count
29
Source Line
394
Source File
src/NHibernate.Test/FilterTest/DynamicFilterTest.cs

                        int size = prod.Categories.Count;
                        Assert.AreEqual(2, size, "Incorrect non-filtered collection count");

                        //long currLoadCount = sessions.Statistics.CollectionLoadCount;
                        //long currFetchCount = sessions.Statistics.CollectionFetchCount;

                        //Assert.IsTrue(
                        //        ( initLoadCount == currLoadCount ) && ( initFetchCount == currFetchCount ),
                        //        "Load with join fetch of many-to-many did not trigger join fetch"
                        //);

                        // make sure we did not get back a collection of proxies
                        // TODO H3: statistics
                        //long initEntityLoadCount = sessions.Statistics.EntityLoadCount;
                        foreach (Category cat in prod.Categories)
                        {
                                Assert.IsTrue(NHibernateUtil.IsInitialized(cat),
                                              "Load with join fetch of many-to-many did not trigger *complete* join fetch");
                                //Console.WriteLine(" ===> " + cat.Name);
                        }
                        //long currEntityLoadCount = sessions.Statistics.EntityLoadCount;

                        //Assert.IsTrue(
                        //        ( initEntityLoadCount == currEntityLoadCount ),
                        //        "Load with join fetch of many-to-many did not trigger *complete* join fetch"
                        //);

                        session.Close();
                        testData.Release();


Clone Instance
3
Line Count
28
Source Line
445
Source File
src/NHibernate.Test/FilterTest/DynamicFilterTest.cs

                        int size = prod.Categories.Count;
                        Assert.AreEqual(2, size, "Incorrect non-filtered collection count");

                        //long currLoadCount = sessions.Statistics.CollectionLoadCount;
                        //long currFetchCount = sessions.Statistics.CollectionFetchCount;

                        //Assert.IsTrue(
                        //    (initLoadCount == currLoadCount) && (initFetchCount == currFetchCount),
                        //    "Load with join fetch of many-to-many did not trigger join fetch"
                        //    );

                        // make sure we did not get back a collection of proxies
                        //long initEntityLoadCount = sessions.Statistics.EntityLoadCount;
                        foreach (Category cat in prod.Categories)
                        {
                                Assert.IsTrue(NHibernateUtil.IsInitialized(cat),
                                              "Load with join fetch of many-to-many did not trigger *complete* join fetch");
                                //Console.WriteLine(" ===> " + cat.Name);
                        }
                        //long currEntityLoadCount = sessions.Statistics.EntityLoadCount;

                        //Assert.IsTrue(
                        //    (initEntityLoadCount == currEntityLoadCount),
                        //    "Load with join fetch of many-to-many did not trigger *complete* join fetch"
                        //    );

                        session.Close();
                        testData.Release();


Clone AbstractionParameter Count: 2Parameter Bindings

int size = prod.Categories.Count;
Assert.AreEqual( [[#variable6fcccee0]], size, [[#variable6fccce00]]);
//long currLoadCount = sessions.Statistics.CollectionLoadCount;
//long currFetchCount = sessions.Statistics.CollectionFetchCount;
//Assert.IsTrue(
//    (initLoadCount == currLoadCount) && (initFetchCount == currFetchCount),
//    "Load with join fetch of many-to-many did not trigger join fetch"
//    );
//        ( initLoadCount == currLoadCount ) && ( initFetchCount == currFetchCount ),
//        "Load with join fetch of many-to-many did not trigger join fetch"
//);
// make sure we did not get back a collection of proxies
// TODO H3: statistics
//long initEntityLoadCount = sessions.Statistics.EntityLoadCount;
foreach (Category cat in prod.Categories)
{
   Assert.IsTrue(NHibernateUtil.IsInitialized(cat), "Load with join fetch of many-to-many did not trigger *complete* join fetch");
//Console.WriteLine(" ===> " + cat.Name);
}
//long currEntityLoadCount = sessions.Statistics.EntityLoadCount;
//Assert.IsTrue(
//    (initEntityLoadCount == currEntityLoadCount),
//    "Load with join fetch of many-to-many did not trigger *complete* join fetch"
//    );
//        ( initEntityLoadCount == currEntityLoadCount ),
//        "Load with join fetch of many-to-many did not trigger *complete* join fetch"
//);
session.Close();
testData.Release();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6fcccee0]]
2 
12[[#6fcccee0]]
1 
13[[#6fcccee0]]
2 
21[[#6fccce00]]
"Incorrect non-filtered collection count" 
22[[#6fccce00]]
"Incorrect filtered collection count" 
23[[#6fccce00]]
"Incorrect non-filtered collection count"