Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.982 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 62 | src/NHibernate.Test/TransactionTest/TransactionNotificationFixture.cs |
2 | 10 | 75 | src/NHibernate.Test/TransactionTest/TransactionNotificationFixture.cs |
| ||||
[Test] public void Commit() { RecordingInterceptor interceptor = new RecordingInterceptor(); using (ISession session = sessions.OpenSession(interceptor)) { ITransaction tx = session.BeginTransaction(); tx.Commit(); Assert.IsTrue(interceptor.beforeTransactionCompletionCalled); Assert.IsTrue(interceptor.afterTransactionCompletionCalled); } } |
| ||||
[Test] public void Rollback() { RecordingInterceptor interceptor = new RecordingInterceptor(); using (ISession session = sessions.OpenSession(interceptor)) { ITransaction tx = session.BeginTransaction(); tx.Rollback(); Assert.IsFalse(interceptor.beforeTransactionCompletionCalled); Assert.IsTrue(interceptor.afterTransactionCompletionCalled); } } |
| |||
[Test] public void [[#variable2ba77ac0]]() { RecordingInterceptor interceptor = new RecordingInterceptor(); using (ISession session = sessions.OpenSession(interceptor)) { ITransaction tx = session.BeginTransaction(); tx. [[#variable2ba77ac0]](); Assert. [[#variable2ba77a60]](interceptor.beforeTransactionCompletionCalled); Assert.IsTrue(interceptor.afterTransactionCompletionCalled); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2ba77ac0]] | Commit |
1 | 2 | [[#2ba77ac0]] | Rollback |
2 | 1 | [[#2ba77a60]] | IsTrue |
2 | 2 | [[#2ba77a60]] | IsFalse |