| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 21 | 3 | 2 | 0.995 | statement_list[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 21 | 120 | src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyFixture.cs |
| 2 | 21 | 45 | src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/ProxyFixture.cs |
| 3 | 21 | 66 | src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/ProxyFixture.cs |
| ||||
ap = (CastleProxy) s.Load( typeof( CastleProxyImpl), ap.Id);
Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "check we have a proxy");
try
{
ap.ThrowDeepException();
Assert.Fail("Exception not thrown");
}
catch (ArgumentException ae)
{
Assert.AreEqual("thrown from Level2", ae.Message);
string[] stackTraceLines = ae.StackTrace.Split('\n');
Assert.IsTrue(stackTraceLines[0].Contains("Level2"), "top of exception stack is Level2()");
Assert.IsTrue(stackTraceLines[1].Contains("Level1"), "next on exception stack is Level1()");
}
finally
{
s.Delete(ap);
s.Flush();
s.Close();
}
|
| ||||
ap = (IMyProxy) s.Load( typeof( MyProxyImpl), ap.Id);
Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "check we have a proxy");
try
{
ap.ThrowDeepException();
Assert.Fail("Exception not thrown");
}
catch (ArgumentException ae)
{
Assert.AreEqual("thrown from Level2", ae.Message);
string[] stackTraceLines = ae.StackTrace.Split('\n');
Assert.IsTrue(stackTraceLines[0].Contains("Level2"), "top of exception stack is Level2()");
Assert.IsTrue(stackTraceLines[1].Contains("Level1"), "next on exception stack is Level1()");
}
finally
{
s.Delete(ap);
s.Flush();
s.Close();
}
|
| ||||
ap = (IMyProxy) s.Load( typeof( MyProxyImpl), ap.Id);
Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "check we have a proxy");
try
{
ap.ThrowDeepException();
Assert.Fail("Exception not thrown");
}
catch (ArgumentException ae)
{
Assert.AreEqual("thrown from Level2", ae.Message);
string[] stackTraceLines = ae.StackTrace.Split('\n');
Assert.IsTrue(stackTraceLines[0].Contains("Level2"), "top of exception stack is Level2()");
Assert.IsTrue(stackTraceLines[1].Contains("Level1"), "next on exception stack is Level1()");
}
finally
{
s.Delete(ap);
s.Flush();
s.Close();
}
|
| |||
ap = ( [[#variable6f26f060]])s.Load( typeof( [[#variable6f26f040]]), ap.Id);
Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "check we have a proxy");
try
{
ap.ThrowDeepException();
Assert.Fail("Exception not thrown");
}
catch (ArgumentException ae)
{
Assert.AreEqual("thrown from Level2", ae.Message);
string[] stackTraceLines = ae.StackTrace.Split('\n');
Assert.IsTrue(stackTraceLines[0].Contains("Level2"), "top of exception stack is Level2()");
Assert.IsTrue(stackTraceLines[1].Contains("Level1"), "next on exception stack is Level1()");
}
finally
{
s.Delete(ap);
s.Flush();
s.Close();
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6f26f060]] | CastleProxy |
| 1 | 2 | [[#6f26f060]] | IMyProxy |
| 1 | 3 | [[#6f26f060]] | IMyProxy |
| 2 | 1 | [[#6f26f040]] | CastleProxyImpl |
| 2 | 2 | [[#6f26f040]] | MyProxyImpl |
| 2 | 3 | [[#6f26f040]] | MyProxyImpl |