Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
28 | 3 | 2 | 0.988 | statement_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 29 | 302 | src/NHibernate.Test/FilterTest/DynamicFilterTest.cs |
2 | 29 | 394 | src/NHibernate.Test/FilterTest/DynamicFilterTest.cs |
3 | 28 | 445 | 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(); |
| ||||
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(); |
| ||||
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(); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fcccee0]] | 2 |
1 | 2 | [[#6fcccee0]] | 1 |
1 | 3 | [[#6fcccee0]] | 2 |
2 | 1 | [[#6fccce00]] | "Incorrect non-filtered collection count" |
2 | 2 | [[#6fccce00]] | "Incorrect filtered collection count" |
2 | 3 | [[#6fccce00]] | "Incorrect non-filtered collection count" |