Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 0 | 1.000 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 255 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 11 | 315 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| ||||
using (ISession s = OpenSession()) { Foo foo = (Foo) s.Get( typeof(Foo), fooKey); Assert.IsTrue(NHibernateUtil.IsInitialized(foo.Bytes)); // H2.1 has 6 here, but we are using Unicode Assert.AreEqual(12, foo.Bytes.Length); Baz baz = (Baz) s.Get( typeof(Baz), bazCode); Assert.AreEqual(1, baz.FooSet.Count); s.Flush(); } sessions.EvictCollection("NHibernate.DomainModel.Baz.FooSet"); |
| ||||
using (ISession s = OpenSession()) { Foo foo = (Foo) s.Get( typeof(Foo), fooKey); Assert.IsTrue(NHibernateUtil.IsInitialized(foo.Bytes)); Assert.AreEqual(12, foo.Bytes.Length); Baz baz = (Baz) s.Get( typeof(Baz), bazCode); Assert.AreEqual(1, baz.FooSet.Count); s.Flush(); } sessions.EvictCollection("NHibernate.DomainModel.Baz.FooSet"); |
| |||
using (ISession s = OpenSession()) { Foo foo = (Foo)s.Get( typeof(Foo), fooKey); Assert.IsTrue(NHibernateUtil.IsInitialized(foo.Bytes)); // H2.1 has 6 here, but we are using Unicode Assert.AreEqual(12, foo.Bytes.Length); Baz baz = (Baz)s.Get( typeof(Baz), bazCode); Assert.AreEqual(1, baz.FooSet.Count); s.Flush(); } sessions.EvictCollection("NHibernate.DomainModel.Baz.FooSet"); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |