Hi can someone explain to me why performance of unit testing is faster using setUp and destory this way.
@Before public void setup() { if (this.authenticatedWebApp == null) { this.authenticatedWebApp = new AuthenticatedTestApplication(); } if (this.tester == null) { this.tester = new WicketTester(this.authenticatedWebApp); } else { this.tester.setupRequestAndResponse(true); } } @After public void tearDown() { if (this.tester != null) { this.tester.destroy(); } } It runs my test case within 2 seconds compare to 25 seconds for this below @Before public void setup() { this.authenticatedWebApp = new AuthenticatedTestApplication(); this.tester = new WicketTester(this.authenticatedWebApp); } @After public void tearDown() { this.tester = null; this.authenticatedWebApp = null; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-18-Performance-of-unit-test-observation-tp3756900p3756900.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org