CloneSet187


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12350.983class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11244
src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs
21259
src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs
31274
src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs
Clone Instance
1
Line Count
12
Source Line
44
Source File
src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs

                [Test]
                public void TestEnableLikeWithMatchmodeStart() {
                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction()) {
                                Componentizable master = GetMaster("hib", null, "open source1");
                                ICriteria crit = s.CreateCriteria( typeof(Componentizable));
                                Example ex = Example.Create(master).EnableLike(MatchMode.Start);
                                crit.Add(ex);
                                IList result = crit.List();
                                Assert.IsNotNull(result);
                                Assert.AreEqual(1, result.Count);
                                t.Commit();
                                                                      }
                                                               }



Clone Instance
2
Line Count
12
Source Line
59
Source File
src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs

                [Test]
                public void TestEnableLikeWithMatchmodeEnd() {
                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction()) {
                                Componentizable master = GetMaster("nate", null, "ORM tool1");
                                ICriteria crit = s.CreateCriteria( typeof(Componentizable));
                                Example ex = Example.Create(master).EnableLike(MatchMode.End);
                                crit.Add(ex);
                                IList result = crit.List();
                                Assert.IsNotNull(result);
                                Assert.AreEqual(1, result.Count);
                                t.Commit();
                                                                      }
                                                             }



Clone Instance
3
Line Count
12
Source Line
74
Source File
src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs

                [Test]
                public void TestEnableLikeWithMatchmodeAnywhere() {
                        using (ISession s = OpenSession())
                        using (ITransaction t = s.BeginTransaction()) {
                                Componentizable master = GetMaster("bern", null, null);
                                ICriteria crit = s.CreateCriteria( typeof(Componentizable));
                                Example ex = Example.Create(master).EnableLike(MatchMode.Anywhere);
                                crit.Add(ex);
                                IList result = crit.List();
                                Assert.IsNotNull(result);
                                Assert.AreEqual(3, result.Count);
                                t.Commit();
                                                                      }
                                                                  }



Clone AbstractionParameter Count: 5Parameter Bindings

[Test]
public void [[#variable2ce768c0]]()
{
   using (ISession s = OpenSession())
      using (ITransaction t = s.BeginTransaction())
      {
         Componentizable master = GetMaster( [[#variable2ce76840]], null, [[#variable2ce76740]]);
         ICriteria crit = s.CreateCriteria( typeof(Componentizable));
         Example ex = Example.Create(master).EnableLike(MatchMode. [[#variable6f578860]]);
         crit.Add(ex);
         IList result = crit.List();
         Assert.IsNotNull(result);
         Assert.AreEqual( [[#variable2ce76760]], result.Count);
         t.Commit();
      }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2ce768c0]]
TestEnableLikeWithMatchmodeAnywhere 
12[[#2ce768c0]]
TestEnableLikeWithMatchmodeEnd 
13[[#2ce768c0]]
TestEnableLikeWithMatchmodeStart 
21[[#2ce76840]]
"bern" 
22[[#2ce76840]]
"nate" 
23[[#2ce76840]]
"hib" 
31[[#2ce76740]]
null 
32[[#2ce76740]]
"ORM tool1" 
33[[#2ce76740]]
"open source1" 
41[[#6f578860]]
Anywhere 
42[[#6f578860]]
End 
43[[#6f578860]]
Start 
51[[#2ce76760]]
3 
52[[#2ce76760]]
1 
53[[#2ce76760]]
1