Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 3 | 5 | 0.983 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 44 | src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs |
2 | 12 | 59 | src/NHibernate.Test/ExpressionTest/QueryByExampleTest.cs |
3 | 12 | 74 | 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(); } } |
| ||||
[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(); } } |
| ||||
[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(); } } |
| |||
[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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2ce768c0]] | TestEnableLikeWithMatchmodeAnywhere |
1 | 2 | [[#2ce768c0]] | TestEnableLikeWithMatchmodeEnd |
1 | 3 | [[#2ce768c0]] | TestEnableLikeWithMatchmodeStart |
2 | 1 | [[#2ce76840]] | "bern" |
2 | 2 | [[#2ce76840]] | "nate" |
2 | 3 | [[#2ce76840]] | "hib" |
3 | 1 | [[#2ce76740]] | null |
3 | 2 | [[#2ce76740]] | "ORM tool1" |
3 | 3 | [[#2ce76740]] | "open source1" |
4 | 1 | [[#6f578860]] | Anywhere |
4 | 2 | [[#6f578860]] | End |
4 | 3 | [[#6f578860]] | Start |
5 | 1 | [[#2ce76760]] | 3 |
5 | 2 | [[#2ce76760]] | 1 |
5 | 3 | [[#2ce76760]] | 1 |