Re: Running a TestNG test suite from a wicket page
Have you considered Mockito to mock your POJOs for the test data and methods? I use that in conjunction with TestNG and then start the wicket app providing it mocked DAOs and POJOs. On Sun, Dec 1, 2013 at 5:23 PM, Martin Dietze d...@fh-wedel.de wrote: On Sun, December 01, 2013, Martin Grigorov wrote: In this case you may want to use Selenium/WebDriver tests. Or any kind of robot that will execute your test scenarios against a running web application. I am using geb for frontend tests. However frontend tests do not really help when testing complex cases within the business logic. As I wrote, one would normally create a test data generator to fill an in-memory database with stuff that you can rely on when running your tests. However due to the fact that this is a JEE application in which infrastructure like the database message queues etc. are provided by the container (glassfish) I would like to run tests against anonymised productive data. Thus I start the application within its JEE container with a fresh set of test data in the database and then run the test suite by wget-ing a page which runs my TestNG tests which have thus access to all those resources. As mentioned before, I am dealing with pre-spring/guice legacy code here, thus this is simply a pragmatic approach. In an ideal world I would not have to do this :) Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= * Free Speech Online!!! Support the Blue Ribbon Campaign! * - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Newbie question: startup wicketapplication with loginform
See also the Wicket Guide: http://wicket.apache.org/guide/guide/chapter3.html#chapter3_3 On Tue, Nov 26, 2013 at 10:36 AM, Seçil Aydın techlove...@gmail.com wrote: Hi, you can also view the below example code: http://www.wicket-library.com/wicket-examples/authentication1/wicket/bookmarkable/org.apache.wicket.examples.authentication1.SignIn?0 - Wicket-Java -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Newbie-question-startup-wicketapplication-with-loginform-tp4662641p4662685.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
Re: client timezone and flickering
Hello Martin, I finally was able implement this feature :) Could you please take a look at it? https://github.com/solomax/ajax-client-info/blob/master/src/main/java/org/ajax/ClientInfoBehavior.java If it is generally OK I can try to create pull request Unfortunately it was impossible for me to reuse existent BrowserInfoForm without modifications :( What I have changed is: 1) extract javascript from html to *.js file (to be able to use it in my code) 2) split submitForm into 2 methods: fill+submit 3) make the form accessible outside the class https://github.com/solomax/ajax-client-info/blob/master/src/main/java/org/ajax/BrowserInfoForm.java Will wait for feedback from you :) On Wed, Sep 11, 2013 at 3:27 PM, Maxim Solodovnik solomax...@gmail.comwrote: Will try :) On Wed, Sep 11, 2013 at 3:20 PM, Martin Grigorov mgrigo...@apache.orgwrote: Implement it and attach it to a ticket. On Wed, Sep 11, 2013 at 11:15 AM, Maxim Solodovnik solomax...@gmail.com wrote: Would be nice to have WebSession#getAjaxClientInfo out of the box :) On Wed, Sep 11, 2013 at 2:17 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, By default Wicket redirects temporarily to a special page where JavaScript extracts the info and sends it back to the server. You may need custom solution that does this logic with Ajax in the background. On Tue, Sep 10, 2013 at 7:43 PM, infiniter infini...@gmail.com wrote: has anyone been able to get around the flicker issue when getting the client timezone from WebSession#getClientInfo in a painless way? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/client-timezone-and-flickering-tp4661284.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 -- WBR Maxim aka solomax -- WBR Maxim aka solomax -- WBR Maxim aka solomax