@Before public void setUp() throws Exception { root = InMemoryPage.makeRoot("RooT"); crawler = root.getPageCrawler(); errorLogsParentPage = crawler.addPage(root, PathParser.parse("ErrorLogs")); request = new MockRequest(); responder = new TestResponder(); responder.setFastTest(true); context = new FitNesseContext(root); receiver = new FitSocketReceiver(0, context.socketDealer); context.port = receiver.receiveSocket(); }
@After public void tearDown() throws Exception { receiver.close(); }