Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 0 | 1.000 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 34 | src/NHibernate.Test/NHSpecificTest/NH719/Fixture.cs |
2 | 9 | 46 | src/NHibernate.Test/NHSpecificTest/NH719/Fixture.cs |
| ||||
using (ISession session = sessions.OpenSession()) { // runs OK, since it's not cached NotCached nc = (NotCached) session.Load( typeof(NotCached), 1); Assert.AreEqual("bbb", ((B) nc.Owner).Foo); // 1st run OK, not yet in cache Cached ca = (Cached) session.Load( typeof(Cached), 1); Assert.AreEqual("aaa", ((A) ca.Owner).Foo); } |
| ||||
// 2nd run fails, when data is read from the cache using (ISession session = sessions.OpenSession()) { // runs OK, since it's not cached NotCached nc = (NotCached) session.Load( typeof(NotCached), 1); Assert.AreEqual("bbb", ((B) nc.Owner).Foo); // 2nd run fails, when loaded from in cache Cached ca = (Cached) session.Load( typeof(Cached), 1); Assert.AreEqual("aaa", ((A) ca.Owner).Foo); } |
| |||
// 2nd run fails, when data is read from the cache using (ISession session = sessions.OpenSession()) { // runs OK, since it's not cached NotCached nc = (NotCached)session.Load( typeof(NotCached), 1); Assert.AreEqual("bbb", ((B)nc.Owner).Foo); // 1st run OK, not yet in cache // 2nd run fails, when loaded from in cache Cached ca = (Cached)session.Load( typeof(Cached), 1); Assert.AreEqual("aaa", ((A)ca.Owner).Foo); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |