Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 3 | 3 | 0.965 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 58 | src/NHibernate.Test/Classic/ValidatableFixture.cs |
2 | 11 | 107 | src/NHibernate.Test/Classic/ValidatableFixture.cs |
3 | 11 | 122 | src/NHibernate.Test/Classic/ValidatableFixture.cs |
| ||||
try { using (ISession s = OpenSession()) { s.Update(v); s.Flush(); } Assert.Fail("Updated an invalid entity"); } catch (ValidationFailure) { // Ok } |
| ||||
try { using (ISession s = OpenSession()) { s.SaveOrUpdateCopy(v); s.Flush(); } Assert.Fail("Updated an invalid entity"); } catch (ValidationFailure) { // Ok } |
| ||||
try { using (ISession s = OpenSession()) { s.SaveOrUpdateCopy(v1); s.Flush(); } Assert.Fail("saved an invalid entity"); } catch (ValidationFailure) { // Ok } |
| |||
try { using (ISession s = OpenSession()) { s. [[#variable27c994c0]]( [[#variable27c99400]]); s.Flush(); } Assert.Fail( [[#variable27c99360]]); } catch (ValidationFailure) { // Ok } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27c994c0]] | Update |
1 | 2 | [[#27c994c0]] | SaveOrUpdateCopy |
1 | 3 | [[#27c994c0]] | SaveOrUpdateCopy |
2 | 1 | [[#27c99400]] | v |
2 | 2 | [[#27c99400]] | v |
2 | 3 | [[#27c99400]] | v1 |
3 | 1 | [[#27c99360]] | "Updated an invalid entity" |
3 | 2 | [[#27c99360]] | "Updated an invalid entity" |
3 | 3 | [[#27c99360]] | "saved an invalid entity" |