CloneSet147


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21320.995statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121120
src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyFixture.cs
22145
src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/ProxyFixture.cs
32166
src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/ProxyFixture.cs
Clone Instance
1
Line Count
21
Source Line
120
Source File
src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyFixture.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();
                        }


Clone Instance
2
Line Count
21
Source Line
45
Source File
src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/ProxyFixture.cs

                        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();
                        }


Clone Instance
3
Line Count
21
Source Line
66
Source File
src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/ProxyFixture.cs

                        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();
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6f26f060]]
CastleProxy 
12[[#6f26f060]]
IMyProxy 
13[[#6f26f060]]
IMyProxy 
21[[#6f26f040]]
CastleProxyImpl 
22[[#6f26f040]]
MyProxyImpl 
23[[#6f26f040]]
MyProxyImpl