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
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
-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
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
]
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
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
(),
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
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
? 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
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
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
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]
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 ..
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
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
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
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
: 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
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
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
401 - 420 of 420 matches
Mail list logo