Re: How test modal windows with wicket tester?

2009-09-10 Thread Martin Makundi
Yes.. you need to check the panel INSIDE the modal panel. And a hint: avoid using string paths to the maximum... you'll have more flexibility in refactoring. Just do like this: MessageTabs tabs = (MessageTabs) tester.getLastRenderedPage(); Panel panel = tabs.getPanel(); Company company =

Re: How test modal windows with wicket tester?

2009-09-09 Thread Per Lundholm
/** * Execute a close on a modal window. */ private void executeClose() { ModalWindow window = (ModalWindow) tester.getComponentFromLastRenderedPage(MODAL); tester.clickLink(MODAL + :content:closeOK, true); ListIBehavior behaviors =

Re: How test modal windows with wicket tester?

2009-09-09 Thread Martin Makundi
Be careful.. that will execute all callbacks, not just close callback. This is safer: public void executeModalWindowCloseCallback(ModalWindow modalWindow) { for (IBehavior behavior : modalWindow.getBehaviors()) { if (behavior instanceof AbstractDefaultAjaxBehavior) { String

How test modal windows with wicket tester?

2009-09-08 Thread Denis Kandrov
I have dashboard, that have modal windows for adding comments and view dashboard message. How can I get this modal window for testing with wicket tester? And how to check that modal window is opened? Denis. - To unsubscribe,

Re: How test modal windows with wicket tester?

2009-09-08 Thread Martin Makundi
Hi! There is nothing special in testing modal windows. It is just a panel with a panel inside. You can use tester.assertVisible... THe only trick is if you have windowCloseCallbacks.. you need to invoke those manually using tester.executeBehavior... ** Martin 2009/9/8 Denis Kandrov

[OT] Test Driven Scaffolding

2009-09-02 Thread James Perry
I thought fellow Wicket users would be interested in my article: http://www.theserverside.com/news/thread.tss?thread_id=57443 Cheers, James.

Re: Nial Darbey: ClassCast exception when invoking MySession.get() from Maven test phase

2009-08-25 Thread Nial Darbey
Igor,thanks for that. Yes, the solution was in passing the DummyApplication to the WicketTester constructor. Nial 2009/8/20 Igor Vaynberg igor.vaynb...@gmail.com are you making wicket tester instantiate your own application class? -igor On Thu, Aug 20, 2009 at 3:09 AM, Nial

Nial Darbey: ClassCast exception when invoking MySession.get() from Maven test phase

2009-08-20 Thread Nial Darbey
Hi everyone,I have subclassed the WebSession class as recommended in Wicket in Action and I override the public static get() method to return Session.get() cast to MyWebSession as follows: public static MyWebSession get() { return (MyWebSession) Session.get(); } This of course works as expected

Re: Nial Darbey: ClassCast exception when invoking MySession.get() from Maven test phase

2009-08-20 Thread Witold Czaplewski
Try public static MyWebSession get() { return (MyWebSession) WebSession.get(); } Witold Am Thu, 20 Aug 2009 12:09:00 +0200 schrieb Nial Darbey nialdar...@gmail.com: Hi everyone,I have subclassed the WebSession class as recommended in Wicket in Action and I override the public

Re: Nial Darbey: ClassCast exception when invoking MySession.get() from Maven test phase

2009-08-20 Thread Igor Vaynberg
are you making wicket tester instantiate your own application class? -igor On Thu, Aug 20, 2009 at 3:09 AM, Nial Darbeynialdar...@gmail.com wrote: Hi everyone,I have subclassed the WebSession class as recommended in Wicket in Action and I override the public static get() method to return

SV: Test Methods for Querying Component Tree

2009-07-10 Thread Wilhelmsen Tor Iver
To address this, I wrote some code that gets the component tree, and either returns a List, or a string with the components' id's and classes. It can be found at http://gist.github.com/144041. Is this useful to anyone? Is there a better way for me to view the component tree at runtime/test

Test Methods for Querying Component Tree

2009-07-09 Thread Keith Bennett
be found at http://gist.github.com/144041. Is this useful to anyone? Is there a better way for me to view the component tree at runtime/test time? Thanks, Keith - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Different parameters passed in test and runtime

2009-07-07 Thread Daniele Dellafiore
in the page MyStartPage... add(new BookmarkablePageLink(new, MyTargetPage.class, new PageParameters(action=new))); in the test: tester.startPage(MyStartPage.class); tester.clickLink(new); adding a system out, in the MyTargetPAge constructor, parameters have this value: action

Source checkout and test

2009-07-03 Thread Mathias Nilsson
Hi, I'm very new to this source checkout and was wondering the following. I need to change some things in wicket-extensions ajax.upload. How can I check out the code and make a dependecy in my pom to the checkout version?

Re: Source checkout and test

2009-07-03 Thread Bas Vroling
you can checkout the source using svn, see here for more details: http://wicket.apache.org/building-from-svn.html when you have checked out the sources, you can modify them and run mvn install. This will build and place the modified wicket version in your local maven repository. On 3 Jul,

test

2009-06-04 Thread Daniele
test test test test - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: test

2009-06-04 Thread Johan Compagner
nope doesnt work On Thu, Jun 4, 2009 at 17:18, Daniele sdaniel...@tiscalinet.it wrote: test test test test - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: test

2009-06-04 Thread Daniele
Johan Compagner ha scritto: nope doesnt work On Thu, Jun 4, 2009 at 17:18, Daniele sdaniel...@tiscalinet.it wrote: I have problem sendind response to post another post: Delivery Status Notification - These recipients of your message have been processed by the mail server:

Re: test

2009-06-04 Thread Johan Compagner
so the message exactly tells you what the problem is (message too big for system) On Thu, Jun 4, 2009 at 17:23, Daniele sdaniel...@tiscalinet.it wrote: Johan Compagner ha scritto: nope doesnt work On Thu, Jun 4, 2009 at 17:18, Daniele sdaniel...@tiscalinet.it wrote: I have problem

Re: test

2009-06-04 Thread Daniele
Johan Compagner ha scritto: so the message exactly tells you what the problem is (message too big for system) I try to cut alot of message, but nothing appened, so, as you can see in my last message Re: TreeTable with image I edit message as new and retry

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-06-02 Thread Antony Stubbs
done, and improved, with junit test :) https://issues.apache.org/jira/browse/WICKET-2306 igor.vaynberg wrote: maybe you should paste it into a jira issue so we can commit it into code. -igor On Thu, May 28, 2009 at 7:36 PM, Antony Stubbs antony.stu...@gmail.com wrote: And here's

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-05-31 Thread Igor Vaynberg
...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-05-28 Thread Antony Stubbs
- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-05-28 Thread Antony Stubbs
://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23773322.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-05-28 Thread Antony Stubbs
://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23773356.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How to test for a redirect after form submit, eg. setting RedirectRequestTarget?

2009-05-27 Thread Jörn Zaefferer
Thanks Igor! After figuring out that onRequestTargetSet is called afterwards again with null as an argument (probably on closing the RequestCycle), it worked. Jörn On Tue, May 26, 2009 at 6:03 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: subclass requestcycle, override onrequesttargetset

Re: How to test for a redirect after form submit, eg. setting RedirectRequestTarget?

2009-05-26 Thread David Brown
@wicket.apache.org Sent: Monday, May 25, 2009 10:32:40 AM GMT -06:00 US/Canada Central Subject: How to test for a redirect after form submit, eg. setting RedirectRequestTarget? Hi, in one of my Wicket unit tests I'd like to assert that after a successful submit, a RedirectRequestTarget was set. Its not even

Re: How to test for a redirect after form submit, eg. setting RedirectRequestTarget?

2009-05-26 Thread Igor Vaynberg
subclass requestcycle, override onrequesttargetset (may only be in 1.4) and set some flag when you see the redirect, or add it to some list you have visibility into. -igor On Mon, May 25, 2009 at 8:32 AM, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Hi, in one of my Wicket unit tests

How to test for a redirect after form submit, eg. setting RedirectRequestTarget?

2009-05-25 Thread Jörn Zaefferer
Hi, in one of my Wicket unit tests I'd like to assert that after a successful submit, a RedirectRequestTarget was set. Its not even necessary to check the exact URL of that redirect, just that it happens. I can't find any support for that via WicketTester, and

Re: Building 1.3.6 from the source, test failures

2009-05-19 Thread Martin Dietze
On Mon, May 18, 2009, Martijn Dashorst wrote: [quote order fixed] On Mon, May 18, 2009 at 4:49 PM, Martin Dietze d...@fh-wedel.de wrote: �I just checked out wicket 1.3.6 from the svn, changed into the wicket-1.3.6 directory, ran `mvn package' and ran across these Don't run the tests with

Re: Building 1.3.6 from the source, test failures

2009-05-19 Thread Martijn Dashorst
http://lmgtfy.com/?q=wicket+java+6+fails+unit+tests gives you: https://issues.apache.org/jira/browse/WICKET-708 And in comment [1] Juergen says: This is due to java 1.6. The hashmap hash code implementation has changed which leads to a different internal sequence of values within the map.

Re: Building 1.3.6 from the source, test failures

2009-05-19 Thread Martin Dietze
On Tue, May 19, 2009, Martijn Dashorst wrote: http://lmgtfy.com/?q=wicket+java+6+fails+unit+tests gives you: https://issues.apache.org/jira/browse/WICKET-708 And in comment [1] Juergen says: This is due to java 1.6. The hashmap hash code implementation has changed which leads to a

Building 1.3.6 from the source, test failures

2009-05-18 Thread Martin Dietze
Hi, I just checked out wicket 1.3.6 from the svn, changed into the wicket-1.3.6 directory, ran `mvn package' and ran across these test failures: Failed tests: test_1(org.apache.wicket.markup.html.header.testing.HeaderTest) testRenderHomePage_7

Re: Building 1.3.6 from the source, test failures

2009-05-18 Thread Martijn Dashorst
Don't run the tests with java 6 Martijn On Mon, May 18, 2009 at 4:49 PM, Martin Dietze d...@fh-wedel.de wrote: Hi,  I just checked out wicket 1.3.6 from the svn, changed into the wicket-1.3.6 directory, ran `mvn package' and ran across these test failures: Failed tests:  test_1

Workaround for a test?

2009-05-17 Thread Martin Makundi
Hi! Anybody know a workaround for these two executeAjaxEvent bugs? 1. https://issues.apache.org/jira/browse/WICKET-2261 2. https://issues.apache.org/jira/browse/WICKET-2274 ** Martin - To unsubscribe, e-mail:

Re: System test for a Wicket based web application. Do you do it? How?

2009-05-14 Thread Günther Enthaler
promising. Can you please provide some small snippets howto use it in correlation with wicket? -- View this message in context: http://www.nabble.com/System-test-for-a-Wicket-based-web-application.-Do-you-do-it--How--tp23513449p23539242.html Sent from the Wicket - User mailing list archive

Re: System test for a Wicket based web application. Do you do it? How?

2009-05-13 Thread Günther Enthaler
I've been using http://storytestiq.solutionsiq.com/ STiQ for integration testing on my current project. It's a mashup of Selenium Fitnesse. It makes for a really comfortable test construction running environment. I've used JUnit driven Selenium tests in the past, but the tests were

Re: System test for a Wicket based web application. Do you do it? How?

2009-05-13 Thread Per Newgro
Hello Günther, stiq looks very promising. Can you please provide some small snippets howto use it in correlation with wicket? Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

System test for a Wicket based web application. Do you do it? How?

2009-05-12 Thread Kent Larsson
Hi, For my last project (not using Wicket) I used HtmlUnit to simulate a web browser and for each use case go through all the important branches. It worked well and the system test caught a lot of errors as it exercised the whole system quite thoroughly. I had a common base class for my JUnit

Re: System test for a Wicket based web application. Do you do it? How?

2009-05-12 Thread Clint Popetz
and the system test caught a lot of errors as it exercised the whole system quite thoroughly. I had a common base class for my JUnit based HtmlUnit tests where I had defined helper some methods which made the tests read pretty much like normal English (ie clickButton, fillTextField etc

TabbedPanel issue in test

2009-05-11 Thread Chiradeep Chhaya
Hi, Am seeing a weird issue with tabbedpanel when running tests. I have a fair few pages that use tabbed panels. Howeve on certain pages the panel ID I see through debugcomponenttree is -1 and the test fails when I assert anything on an individual tab with a mesage that the component specified

Re: How to test AjaxFormChoiceComponentUpdatingBehavior for Radio Button

2009-05-04 Thread Marat Radchenko
() ); tester.processRequestCycle(cycle); } Yep, it looks weird. But works. If you have less hacky solutions, please, tell us. 2009/4/30 Jeffrey S. Schwartz jschwa...@citytechinc.com: I have the same question as the reader from this email: http://www.nabble.com/How-to-test

Re: How to test AjaxFormChoiceComponentUpdatingBehavior for Radio Button

2009-04-29 Thread Schwame
I have the same question as the below reader. I scoured the mailing lists, wiki and the javadoc. I have attached a quick-start application that shows the problem. When I run the application the AjaxFormChoiceComponentUpdatingBehavior works as expected! However, when I run the unit test

Re: test page rendering

2009-03-11 Thread Swanthe Lindgren
the markupfile, the test is still passed. Is this correct or might there be something else I have done wrong? //Swanthe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: test page rendering

2009-03-11 Thread Igor Vaynberg
page can render properly. The WicketTester.assertRenderedPage() looks like a good approach but it doesnt seam to care about the HTML. If I remove a wicket:id from the markupfile, the test is still passed. Is this correct or might there be something else I have done wrong? //Swanthe

test page rendering

2009-03-10 Thread Swanthe Lindgren
the markupfile, the test is still passed. Is this correct or might there be something else I have done wrong? //Swanthe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

RE: test page rendering

2009-03-10 Thread Jeremy Thomerson
Message- From: Swanthe Lindgren swanthe.lindg...@megasol.se Sent: Tuesday, March 10, 2009 5:12 AM To: users@wicket.apache.org Subject: test page rendering Hi all I have begun unit testing my wicket pages and one of the most basic tests I want to do is to make sure each and every page can render

Re: test page rendering

2009-03-10 Thread Igor Vaynberg
each and every page can render properly. The WicketTester.assertRenderedPage() looks like a good approach but it doesnt seam to care about the HTML. If I remove a wicket:id from the markupfile, the test is still passed. Is this correct or might there be something else I have done wrong

Howto test attribute of fragment markup?

2009-02-21 Thread Per Newgro
Hi *, I added to a panel two fragments. The ajax response looks like attchement. I would like to check if the attribute class for tag pnlHeader1 is as expected. But the TagTester only gives me the component tag with same id. Can i extract the CDATA area to? PS: I surely can parse the markup

How to test AjaxFormChoiceComponentUpdatingBehavior for Radio Button

2009-02-04 Thread techisbest
buttons. I am having difficulty creating a Wicket test for this behavior. I can not seem to invoke the behavior when selecting a new button via the FormTester for the panel containing the form. I saw one thread here that suggested (by the user asking the original question) using

Re: unit test for dropdownchoice with ajax

2009-02-01 Thread Timo Rantalaiho
On Tue, 23 Dec 2008, tbt wrote: formTester.submit(); If you submit the form with Ajax, you should use WicketTester.executeAjaxEvent in the test instead. Anyway, it seems like there might be a bug. If you can debug some more and/or produce a quickstart that reproduces

Re: How to test Ajax Submit Button on A form

2009-02-01 Thread Timo Rantalaiho
rag...@directi schrieb: Can any one please help me with testing an AjaxSubmitButton on a form. ... On Sat, 17 Jan 2009, Per Newgro wrote: You have to call submit at the end. Otherwise the call of executeAjaxEvent has no data in form. Nope, you can submit directly with executeAjaxEvent if

Re: Howto test clicking a CheckboxMultipleChoice

2009-01-23 Thread Newgro
Should i add an RFE here? Cheers Per -- View this message in context: http://www.nabble.com/Howto-test-clicking-a-CheckboxMultipleChoice-tp21601616p21625574.html Sent from the Wicket - User mailing list archive at Nabble.com

Howto test clicking a CheckboxMultipleChoice

2009-01-22 Thread Newgro
://www.nabble.com/Howto-test-clicking-a-CheckboxMultipleChoice-tp21601616p21601616.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

How to test Ajax Submit Button on A form

2009-01-17 Thread rag...@directi
-to-test-Ajax-Submit-Button-on-A-form-tp21514401p21514401.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: How to test Ajax Submit Button on A form

2009-01-17 Thread Per Newgro
rag...@directi schrieb: Can any one please help me with testing an AjaxSubmitButton on a form. I am using tester.executeAjaxEvent to call the event. But I am not sure how to set the data on the form and submit the data while using an ajax submit button There is a form tester FormTester

Re: unit test for dropdownchoice with ajax

2009-01-16 Thread hkesler
I am having the same issue with multiple drop downs with ajax, when trying to unit test. tbt wrote: Hi I have coded two dropdown boxes similar to the example provided at http://http://www.wicket-library.com/wicket-examples/ajax/choice.1 The hotel dropdown is populated once a country

unit test for dropdownchoice with ajax

2008-12-23 Thread tbt
Hi I have coded two dropdown boxes similar to the example provided at http://http://www.wicket-library.com/wicket-examples/ajax/choice.1 The hotel dropdown is populated once a country is selected via ajax. This works fine and now i am writing a unit test for it. The code is as follows

Testing with jetty embedded in test + httpunit

2008-11-23 Thread Jan Kriesten
Hi, running a Wicket application with jetty:run works just fine. Now I thought it should be possible to launch an embedded jetty within a test and have httpunit run against it. Written the test and starting up the internal jetty: Everything seems to be fine, application is launched

Re: Testing with jetty embedded in test + httpunit

2008-11-23 Thread Jan Kriesten
grml - problem solved. Sometimes one's just too stupid... :-( Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Test the http status code from WicketTester

2008-11-13 Thread Magnus Forsberg
Hi all, I have a case where I need to assert a certain http status code from a Wicket page. The status code is set by throwing an AbortWithWebErrorCodeException since I want to display an error message. I have tried checking the WicketTester#getServletResponse().getStatus() but it remains on 200

Howto assign ResourceBundle to component in unit-test?

2008-10-12 Thread Per Newgro
Hi *, i try to test a component which displays some strings getting localized by a higher ranking component. AFAIK wicket uses a hierarchical process to get the appropriate string. Normally the component under test will be added to a panel and this provides the appropriate properties file

FREE Online Test at www.yfrindia.com

2008-09-03 Thread Youth
http://www.yfrindia.com/ Take FREE online TEST, read FREE articles, download FREE presentation, use FREE source code, useful links, competition updates, free ONLINE TEST TESTS, http://www.yfrindia.com/resources/Tests free APTITUDE TEST, English Test, Computer Test, Mechanical Test, Electronics

FREE test www.yfrindia.com

2008-08-28 Thread nishantmishra
http://www.yfrindia.com/ Take FREE online TEST, read FREE articles, download FREE presentation, use FREE source code, useful links, competition updates, free ONLINE TEST TESTS, http://www.yfrindia.com/resources/Tests free APTITUDE TEST, English Test, Computer Test, Mechanical Test, Electronics

please ignore - test.

2008-08-12 Thread Wayne Pope
test

how to test multiple submits on the form

2008-08-11 Thread ElSe
this article - http://cwiki.apache.org/WICKET/wicket-and-jmeter-with-regular-expressions.html began to write test plan and suddenly met the problem: I can't write regular expression to submit form to the server. It is easy when there is one submit button but what should I do if there are several

Re: how to test multiple submits on the form

2008-08-11 Thread Igor Vaynberg
/WICKET/multiple-submit-buttons.html to create the form in my application. All works well. But now I have to organize load testing of my application. I have read this article - http://cwiki.apache.org/WICKET/wicket-and-jmeter-with-regular-expressions.html began to write test plan and suddenly

BEA WebLogic Serialization Test

2008-07-09 Thread Eric Glass
Hi, We have started to integrate Wicket pages into our application that is running on a cluster of BEA WebLogic servers. To make sure that the user's session is serializable we implemented a serialization test provided by a BEA WebLogic engineer right into our application. If the test finds any

Re: BEA WebLogic Serialization Test

2008-07-09 Thread Eric Glass
Hi Igor, I have created Jira issue Wicket-1741. Eric Glass igor.vaynberg wrote: please create jira issues -- View this message in context: http://www.nabble.com/BEA-WebLogic-Serialization-Test-tp18365534p18367013.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Problem test RadioChoice

2008-06-30 Thread Fabien D.
); } }); -- View this message in context: http://www.nabble.com/Problem-test-RadioChoice-tp18196023p18198138.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Problem test RadioChoice

2008-06-30 Thread Igor Vaynberg
. In my test class i use the method select on the FormTester, but is seems like the onSelectionChanged method is never called. I have looked at the select code and it seems like there have been made some logic for a DropDownChoice. Does this only work for a DropDown or am i doing something

Re: Error in test when use Include

2008-06-29 Thread Maurice Marrink
Include(analytics, js/analytics_ + getLocale().getLanguage() + .js)); i have these javascript files in folder src/main/webapp/js and i copied it also to src/test/webapp/js it works in application but test for this page throws error: 4547 [main] ERROR org.apache.wicket.RequestCycle - Unable

Re: Wicket : Navigation Test Case Failure

2008-05-03 Thread Izak Wessels
, iwessels [EMAIL PROTECTED] wrote: Hello all, I am trying to write a test case to simulate that when the user clicks on a button, they are navigated to a new page. // Test Case public void testProgramPageNavigation() { WicketTester tester = new WicketTester(); FormTester formTester

Wicket : Navigation Test Case Failure

2008-05-02 Thread iwessels
Hello all, I am trying to write a test case to simulate that when the user clicks on a button, they are navigated to a new page. // Test Case public void testProgramPageNavigation() { WicketTester tester = new WicketTester(); FormTester formTester = tester.newFormTester(programForm

Re: Wicket : Navigation Test Case Failure

2008-05-02 Thread Maurice Marrink
, I am trying to write a test case to simulate that when the user clicks on a button, they are navigated to a new page. // Test Case public void testProgramPageNavigation() { WicketTester tester = new WicketTester(); FormTester formTester = tester.newFormTester(programForm

Re: Wicket : Navigation Test Case Failure

2008-05-02 Thread Izak Wessels
where you tell wicket which page to load, so i am just checking. Maurice On Fri, May 2, 2008 at 6:14 PM, iwessels [EMAIL PROTECTED] wrote: Hello all, I am trying to write a test case to simulate that when the user clicks on a button, they are navigated to a new page. // Test Case

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-26 Thread James Carman
the Spring injector inject it doesn't really test what's going to be going on in production anyway. If it were me, I'd provide setters for my dependencies and just set them that way with my mock objects. It can be pretty use fully for several purposes, one could be using mock

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-26 Thread Nino Saturnino Martinez Vazquez Wael
to a Spring context and then having the Spring injector inject it doesn't really test what's going to be going on in production anyway. If it were me, I'd provide setters for my dependencies and just set them that way with my mock objects. It can be pretty use fully for several purposes, one

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-26 Thread Jorge Gallardo
(SpringWebApplication.java:77) if the attribute is null searchs for the ContextLoaderListener (configured in the web.xml) and of course is not there because we are running a test. Answering to James and Nino, I prefer to have the beans injected by spring because is cleaner and more understandable. Setting

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2008-04-25 Thread Frank Bille
On Thu, Apr 24, 2008 at 8:10 PM, qk [EMAIL PROTECTED] wrote: 1. after the page was rendered using WicketTester.startPage(), the real content (the one that returned by getLazyLoadComponent()) was not loaded by default. I always got an empty panel. Is there a way that I can have the real

Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread Jorge Gallardo
(); addComponentInstantiationListener(new SpringComponentInjector(this, mockContext)); } public AnnotApplicationContextMock getMockContext() { return mockContext; } } And defined an abstract Test class: public abstract class BaseWicketTest extends TestCase { protected

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread James Carman
Why are you using the Spring injector to inject your dependencies? Can you not manually inject your dependencies? Adding stuff manually to a Spring context and then having the Spring injector inject it doesn't really test what's going to be going on in production anyway. If it were me, I'd

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
James Carman wrote: Why are you using the Spring injector to inject your dependencies? Can you not manually inject your dependencies? Adding stuff manually to a Spring context and then having the Spring injector inject it doesn't really test what's going to be going on in production anyway

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
easymock to test in someplaces) or wicket persistence template(just uses injected beans): http://cwiki.apache.org/WICKET/blog-tutorial.html https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-persistence-template Jorge Gallardo wrote: Hi everyone, I'm setting up an app

unit test of AjaxLazyLoadPanel and ModalWindow

2008-04-24 Thread qk
://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p16851306.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

How to test setResponsePage

2008-04-20 Thread Ned Collyer
Hi, I'd like to unit test a setResponsePage from inside one of my panels using the wicket tester. I have an EditPanel, which on submit of its form calls setResponsePage(SomeComplexPage.class, someParameters) I only want to test the Panel's behaviour (ie, does the form behave correctly

Re: How to test setResponsePage

2008-04-20 Thread Ned Collyer
) formTester.submit() Obviously early days at the moment :) Rgds Ned -- View this message in context: http://www.nabble.com/How-to-test-setResponsePage-tp16802302p16803012.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How to test setResponsePage

2008-04-20 Thread Frank Bille
-- View this message in context: http://www.nabble.com/How-to-test-setResponsePage-tp16802302p16803012.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: I have an error when try to test submit using FormTester

2008-04-09 Thread Tomasz Prus
Can You give mi more details how remove the UrlCompressingWebRequestProcessor because i don't have any idea?

Re: I have an error when try to test submit using FormTester

2008-04-09 Thread lars vonk
the UrlCompressingWebRequestProcessor from your WebApplication, but maybe there is a better solution. Hopes this helps, Lars On Wed, Apr 9, 2008 at 12:37 PM, Tomasz Prus [EMAIL PROTECTED] wrote: I have test and formTester.submit(); throws an error: java.lang.NumberFormatException: For input string: p:form

I have an error when try to test submit using FormTester

2008-04-09 Thread Tomasz Prus
I have test and formTester.submit(); throws an error: java.lang.NumberFormatException: For input string: p:form at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source

Re: I have an error when try to test submit using FormTester

2008-04-09 Thread lars vonk
According to that Thread I was referring it was probably caused by the fact the newRequestCycleProcessor method in the WebApplication class was overridden to return the UrlCompressingWebRequestProcessor. Did you override that method as well? On Wed, Apr 9, 2008 at 1:25 PM, Tomasz Prus [EMAIL

Re: I have an error when try to test submit using FormTester

2008-04-09 Thread Tomasz Prus
Thank You very many :) I overide method newRequestCycleProcessor in my MockApplication and submit works now for me: @Override protected IRequestCycleProcessor newRequestCycleProcessor() { IRequestCycleProcessor newRequestCycleProcessor = super.newRequestCycleProcessor();

Test failures due to incorrect order of attributes

2008-03-01 Thread Henrik Lundahl
Hi When building wicket-1.3-SNAPSHOT I get some test failures with messages all similar to this: style type=text/css id=org-apache-wicket-ajax-MockComponent1-0 --- style id=org-apache-wicket-ajax-MockComponent1-0 type=text/css It seems like the element attributes have come in the wrong order

Re: Test failures due to incorrect order of attributes

2008-03-01 Thread James Carman
Lundahl [EMAIL PROTECTED] wrote: Hi When building wicket-1.3-SNAPSHOT I get some test failures with messages all similar to this: style type=text/css id=org-apache-wicket-ajax-MockComponent1-0 --- style id=org-apache-wicket-ajax-MockComponent1-0 type=text/css It seems

Re: Test failures due to incorrect order of attributes

2008-03-01 Thread Henrik Lundahl
, because the ordering of HashMaps(?) changed in java6 (or something like that). the tests should pass fine with java5. Gerolf On Sat, Mar 1, 2008 at 5:45 PM, Henrik Lundahl [EMAIL PROTECTED] wrote: Hi When building wicket-1.3-SNAPSHOT I get some test

How to make Eclipse 3.3 run JUnit4 Test?

2008-02-28 Thread MYoung
Sorry for being way off topic here but I couldn't find the answer with my search. I would be very grateful if someone give me some help with this. Basically I have the JUnit 4.4 jar in my Build Path, I decorated my test methods with @Test, code compile with no error. But when I try to run

Re: How to make Eclipse 3.3 run JUnit4 Test?

2008-02-28 Thread MYoung
Never mind. I found the answer. RunOpen Run Dialog... and change to JUnit4 runner. -- View this message in context: http://www.nabble.com/How-to-make-Eclipse-3.3-run-JUnit4-Test--tp15748485p15752427.html Sent from the Wicket - User mailing list archive at Nabble.com

How to load application resource properties on Junit test

2008-02-01 Thread Marco Aurélio Silva
Hi all I'm writing some test cases for my wicket application, and I got the follow exception: Caused by: java.util.MissingResourceException: Unable to find resource: home for component: pathway:repeater:i_want_to:stepLink:stepColor at wicket.Localizer.getString(Localizer.java:262

Re: Accessing username from Page Unit test

2007-12-19 Thread Ravi_116
Igor, Thanks for the reply. How can i set the MockWebSession on the session object ? Is there an api available through wicket tester to set mockwebsession ? Ravi -- View this message in context: http://www.nabble.com/Accessing-username-from-Page---Unit-test-tp14411574p14419916.html Sent from

<    1   2   3   4   5   >