''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-!][