| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 47 | 2 | 6 | 0.988 | class_member_declarations[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 47 | 97 | src/NHibernate.Test/CfgTest/DefaultNsAssmFixture.cs |
| 2 | 47 | 135 | src/NHibernate.Test/CfgTest/HbmOrderingFixture.cs |
| ||||
#region NUnit.Framework.TestFixture Members
[TestFixtureSetUp]
public void TestFixtureSetUp()
{
dir_ = Directory.GetCurrentDirectory();
// Create hbm files (ideally, we could just embed them directly into the
// assembly - same as VS does when 'Build Action' = 'Embedded Resource' - but
// I could not find a way to do this, so we use files instead)
StreamWriter aw = new StreamWriter("A1.hbm.xml");
aw.Write(aJoinedHbmXml);
aw.Close();
StreamWriter bw = new StreamWriter("B1.hbm.xml");
bw.Write(bJoinedHbmXml);
bw.Close();
StreamWriter cw = new StreamWriter("C1.hbm.xml");
cw.Write(cJoinedHbmXml);
cw.Close();
StreamWriter asw = new StreamWriter("A1.subclass.hbm.xml");
asw.Write(aJoinedHbmXml);
asw.Close();
StreamWriter bsw = new StreamWriter("B1.subclass.hbm.xml");
bsw.Write(bJoinedHbmXml);
bsw.Close();
StreamWriter csw = new StreamWriter("C1.subclass.hbm.xml");
csw.Write(cJoinedHbmXml);
csw.Close();
}
[SetUp]
public virtual void SetUp()
{
}
[TearDown]
public virtual void TearDown()
{
}
[TestFixtureTearDown]
public virtual void TestFixtureTearDown()
{
}
|
| ||||
#region NUnit.Framework.TestFixture Members
[TestFixtureSetUp]
public void TestFixtureSetUp()
{
dir_ = Directory.GetCurrentDirectory();
// Create hbm files (ideally, we could just embed them directly into the
// assembly - same as VS does when 'Build Action' = 'Embedded Resource' - but
// I could not find a way to do this, so we use files instead)
StreamWriter aw = new StreamWriter("A.hbm.xml");
aw.Write(aJoinedHbmXml);
aw.Close();
StreamWriter bw = new StreamWriter("B.hbm.xml");
bw.Write(bJoinedHbmXml);
bw.Close();
StreamWriter cw = new StreamWriter("C.hbm.xml");
cw.Write(cJoinedHbmXml);
cw.Close();
StreamWriter asw = new StreamWriter("A.subclass.hbm.xml");
asw.Write(aJoinedHbmXml);
asw.Close();
StreamWriter bsw = new StreamWriter("B.subclass.hbm.xml");
bsw.Write(bJoinedHbmXml);
bsw.Close();
StreamWriter csw = new StreamWriter("C.subclass.hbm.xml");
csw.Write(cJoinedHbmXml);
csw.Close();
}
[SetUp]
public virtual void SetUp()
{
}
[TearDown]
public virtual void TearDown()
{
}
[TestFixtureTearDown]
public virtual void TestFixtureTearDown()
{
}
|
| |||
#region NUnit.Framework.TestFixture Members
[TestFixtureSetUp]
public void TestFixtureSetUp()
{
dir_ = Directory.GetCurrentDirectory();
// Create hbm files (ideally, we could just embed them directly into the
// assembly - same as VS does when 'Build Action' = 'Embedded Resource' - but
// I could not find a way to do this, so we use files instead)
StreamWriter aw = new StreamWriter( [[#variable6e722900]]);
aw.Write(aJoinedHbmXml);
aw.Close();
StreamWriter bw = new StreamWriter( [[#variable57890700]]);
bw.Write(bJoinedHbmXml);
bw.Close();
StreamWriter cw = new StreamWriter( [[#variable56b1bb00]]);
cw.Write(cJoinedHbmXml);
cw.Close();
StreamWriter asw = new StreamWriter( [[#variable6e7227a0]]);
asw.Write(aJoinedHbmXml);
asw.Close();
StreamWriter bsw = new StreamWriter( [[#variable56b1ba20]]);
bsw.Write(bJoinedHbmXml);
bsw.Close();
StreamWriter csw = new StreamWriter( [[#variable6e7226e0]]);
csw.Write(cJoinedHbmXml);
csw.Close();
}
[SetUp]
public virtual void SetUp()
{
}
[TearDown]
public virtual void TearDown()
{
}
[TestFixtureTearDown]
public virtual void TestFixtureTearDown()
{
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6e722900]] | "A.hbm.xml" |
| 1 | 2 | [[#6e722900]] | "A1.hbm.xml" |
| 2 | 1 | [[#57890700]] | "B.hbm.xml" |
| 2 | 2 | [[#57890700]] | "B1.hbm.xml" |
| 3 | 1 | [[#56b1bb00]] | "C.hbm.xml" |
| 3 | 2 | [[#56b1bb00]] | "C1.hbm.xml" |
| 4 | 1 | [[#6e7227a0]] | "A.subclass.hbm.xml" |
| 4 | 2 | [[#6e7227a0]] | "A1.subclass.hbm.xml" |
| 5 | 1 | [[#56b1ba20]] | "B.subclass.hbm.xml" |
| 5 | 2 | [[#56b1ba20]] | "B1.subclass.hbm.xml" |
| 6 | 1 | [[#6e7226e0]] | "C.subclass.hbm.xml" |
| 6 | 2 | [[#6e7226e0]] | "C1.subclass.hbm.xml" |