![JAR search and dependency download from the Maven repository](/logo.png)
FitNesseRoot.Fitnesse.UserGuide.FixtureGallery.ImportantConcepts.SystemUnderTest.content.txt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartrics-RestFixture-LiveDoc Show documentation
Show all versions of smartrics-RestFixture-LiveDoc Show documentation
FitNesse tests documenting the RestFixture
''Previous page: [[!-Target objects-!][ queue = new Queue();
public SystemUnderTest()
{
this.mySystemUnderTest = queue;
}
public void GenerateMessages(int howmuch)
{
for (int i = 0; i < howmuch; i++)
queue.Enqueue("M" + i);
}
}
}
}}}
# section Python Source Code
!3 !-Python Source Code-!
{{{
from fitLib.DoFixture import DoFixture
from info.fitnesse.fixturegallery.domain.Queue import Queue
class SystemUnderTest(DoFixture):
_typeDict = {
# -- NEEDED-FOR: SystemUnderTestExample
"GenerateMessages.RenameTo": "generateMessages"
}
def __init__(self):
self.queue = Queue()
self.setSystemUnderTest(self.queue)
_typeDict["generateMessages.types"] = [ None, "Integer" ]
def generateMessages(self, i):
for dummy in xrange(i):
self.queue.enqueue("M%d" % i)
}}}
''Previous page: [[!-Target objects-!][
© 2015 - 2025 Weber Informatics LLC | Privacy Policy