CloneSet848


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22240.979namespace_member_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1226
src/NHibernate.Test/MultipleCollectionFetchTest/MultipleListFetchFixture.cs
2228
src/NHibernate.Test/MultipleCollectionFetchTest/MultipleSetFetchFixture.cs
Clone Instance
1
Line Count
22
Source Line
6
Source File
src/NHibernate.Test/MultipleCollectionFetchTest/MultipleListFetchFixture.cs

namespace NHibernate.Test.MultipleCollectionFetchTest
{
        [TestFixture]
        public class MultipleListFetchFixture : AbstractMultipleCollectionFetchFixture
        {
                protected override IList Mappings
                {
                        get { return new string[] { "MultipleCollectionFetchTest.PersonList.hbm.xml"
                                                  } ;
                            }
                }

                protected override void AddToCollection(ICollection collection, Person person)
                {
                        ((ArrayList) collection).Add(person);
                }

                protected override ICollection CreateCollection()
                {
                        return new ArrayList();
                }

        }
}


Clone Instance
2
Line Count
22
Source Line
8
Source File
src/NHibernate.Test/MultipleCollectionFetchTest/MultipleSetFetchFixture.cs

namespace NHibernate.Test.MultipleCollectionFetchTest
{
        [TestFixture]
        public class MultipleSetFetchFixture : AbstractMultipleCollectionFetchFixture
        {
                protected override IList Mappings
                {
                        get { return new string[] { "MultipleCollectionFetchTest.PersonSet.hbm.xml"
                                                  } ;
                            }
                }

                protected override void AddToCollection(ICollection collection, Person person)
                {
                        ((ISet) collection).Add(person);
                }

                protected override ICollection CreateCollection()
                {
                        return new HashedSet();
                }

        }
}


Clone AbstractionParameter Count: 4Parameter Bindings

namespace NHibernate.Test.MultipleCollectionFetchTest
{
   [TestFixture]
   public class [[#variable70c18d80]]: AbstractMultipleCollectionFetchFixture
   {
      protected override IList Mappings
      {
         get
         {
            return new string[]
                   {
                       [[#variable70c18dc0]]
                   } ;
         }
      }

      protected override void AddToCollection(ICollection collection, Person person)
      {
         (( [[#variable70c18e00]])collection).Add(person);
      }

      protected override ICollection CreateCollection()
      {
         return new [[#variable70c18de0]]();
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70c18d80]]
MultipleListFetchFixture 
12[[#70c18d80]]
MultipleSetFetchFixture 
21[[#70c18dc0]]
"MultipleCollectionFetchTest.PersonList.hbm.xml" 
22[[#70c18dc0]]
"MultipleCollectionFetchTest.PersonSet.hbm.xml" 
31[[#70c18e00]]
ArrayList 
32[[#70c18e00]]
ISet 
41[[#70c18de0]]
ArrayList 
42[[#70c18de0]]
HashedSet