Re: Accessing username from Page Unit test

2007-12-19 Thread Igor Vaynberg
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 the Wicket - User mailing list archive at Nabble.com

Accessing username from Page Unit test

2007-12-18 Thread Ravi_116
has become very painful. I would not like to use AuthenticatedWebApplication, but dummy up the MockWebSession for unit testing my pages. Ravi -- View this message in context: http://www.nabble.com/Accessing-username-from-Page---Unit-test-tp14411574p14411574.html Sent from the Wicket - User

Re: Accessing username from Page Unit test

2007-12-18 Thread Igor Vaynberg
-username-from-Page---Unit-test-tp14411574p14411574.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

How can i test if a modal window is presented

2007-11-26 Thread Newgro
Hi *, i would like to test (WicketTester) if my modal error window is displayed. I tried isVisible, but it's always true. While debugging i saw that if the window has to be displayed, the contentpanel has a generatedMarkupId 0. But this property is not accessible. So how can i know

RE: Making ExternalLink invisible: test for what?

2007-10-12 Thread Chris Colman
] Sent: Wednesday, 3 October 2007 4:36 PM To: users@wicket.apache.org Subject: Re: Making ExternalLink invisible: test for what? why not use the setVisible method? link.setVisible(StringUtils.isNotBlank(url) StringUtils.isNotBlank(...)); Martijn On 10/3/07, Chris Colman [EMAIL PROTECTED

Making ExternalLink invisible: test for what?

2007-10-02 Thread Chris Colman
classes using an anonymous class with overridden isVisible method: add( new ExternalLink(externallink, http://; + content.getUrl(), contentList.getUrl()) { public boolean isVisible() { WHAT DO I TEST

Re: Making ExternalLink invisible: test for what?

2007-10-02 Thread Igor Vaynberg
(), contentList.getUrl()) { public boolean isVisible() { WHAT DO I TEST FOR HERE TO CHECK IF A NON NULL AND NON BLANK URL WAS PROVIDED BY content.getUrl

RE: Making ExternalLink invisible: test for what?

2007-10-02 Thread Chris Colman
a http:// in front of it making a trivial test not possible. -igor On 10/2/07, Chris Colman [EMAIL PROTECTED] wrote: I have content that I render that may or may not have a URL associated with it. I don't want to display anything if the URL is blank. I use ExternalLink for the URLs

Re: Making ExternalLink invisible: test for what?

2007-10-02 Thread Igor Vaynberg
? getUrl(), getDisplay()? Actually the display text is more valuable because it doesn't have the http:// prefix so I can do a simple null or blank text whereas the URL will always have a http:// in front of it making a trivial test not possible. -igor On 10/2/07, Chris Colman [EMAIL

Failing test org.apache.wicket.markup.html.image.ImageTest

2007-09-21 Thread Martin Funk
month svn info ./jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/image/ImageTest.java [...] Letzte geänderte Rev: 543933 Letztes Änderungsdatum: 2007-06-03 18:18:27 +0200 (So, 03 Jun 2007) [...] and I've definitely seen it running in that timespan. Following patch would fix the test

Re: Failing test org.apache.wicket.markup.html.image.ImageTest

2007-09-21 Thread Gwyn Evans
Hi, I'm not 100% sure, but after a quick look, I'd say that it's possible that the following fix changed the test return. Cross-posted to dev@ to see if anyone's got any comments... Revision: 575980 Author: ivaynberg Date: 15/09/2007 22:09:08 Message: WICKET-974: Image#getResource always

Displaying images and Test from DB

2007-09-06 Thread Aaron Hutchings
Is there something like listview that I configure for displaying text and images? I do not need any sorting .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Displaying images and Test from DB

2007-09-06 Thread Jonathan Locke
you can build your own component very easily. listview can contain labels and/or images in any way you desire. Aaron Hutchings wrote: Is there something like listview that I configure for displaying text and images? I do not need any sorting ..

Re: Loading global resources in test?

2007-08-22 Thread Erik Underbjerg
by: java.util.MissingResourceException: Unable to find resource: MODEL_RELEASED for component: MODEL_RESOURCE is a string constant defined in MyApplication.properties, and it works fine when I run the app in the normal way. The tests are run a subclass of WicketTester, in src/test/java/base with the initialization method

Re: Loading global resources in test?

2007-08-21 Thread Erik Underbjerg
is a string constant defined in MyApplication.properties, and it works fine when I run the app in the normal way. The tests are run a subclass of WicketTester, in src/test/java/base with the initialization method: public void initialize() { getResourceSettings().addStringResourceLoader(new

Re: Loading global resources in test?

2007-08-21 Thread Igor Vaynberg
constant defined in MyApplication.properties, and it works fine when I run the app in the normal way. The tests are run a subclass of WicketTester, in src/test/java/base with the initialization method: public void initialize() { getResourceSettings().addStringResourceLoader(new

Re: Loading global resources in test?

2007-08-21 Thread Erik Underbjerg
to find resource: MODEL_RELEASED for component: MODEL_RESOURCE is a string constant defined in MyApplication.properties, and it works fine when I run the app in the normal way. The tests are run a subclass of WicketTester, in src/test/java/base with the initialization method: public void initialize

Re: Loading global resources in test?

2007-08-21 Thread Igor Vaynberg
: Unable to find resource: MODEL_RELEASED for component: MODEL_RESOURCE is a string constant defined in MyApplication.properties, and it works fine when I run the app in the normal way. The tests are run a subclass of WicketTester, in src/test/java/base with the initialization method

Loading global resources in test?

2007-08-20 Thread Erik Underbjerg
Hello, I have just moved some localized string resources to a myApplication.properties file, because they need to accessed by different panels and pages, and it works fine. However, when running my unit tests with WicketTester, it can't find the resources in myApplication.properties. I

Re: Loading global resources in test?

2007-08-20 Thread Igor Vaynberg
it should probably be MyApplication.properties unless you have myApplication.java -igor On 8/20/07, Erik Underbjerg [EMAIL PROTECTED] wrote: Hello, I have just moved some localized string resources to a myApplication.properties file, because they need to accessed by different panels

<    1   2   3   4   5