You can use PowerMock to register a mock via
WebApplication#newAjaxRequestTarget()
On Fri, Nov 30, 2012 at 4:16 PM, Tom Norton
tomwnorton.mailing.li...@gmail.com wrote:
Is it possible to test that appendJavascript is called on wicket 1.5?
Thanks,
Tom
--
Martin Grigorov
jWeekend
to test that appendJavascript is called on wicket 1.5?
Thanks,
Tom
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/
via
WebApplication#newAjaxRequestTarget()
On Fri, Nov 30, 2012 at 4:16 PM, Tom Norton
tomwnorton.mailing.li...@gmail.com wrote:
Is it possible to test that appendJavascript is called on wicket 1.5?
Thanks,
Tom
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http
tomwnorton.mailing.li...@gmail.com wrote:
Is it possible to test that appendJavascript is called on wicket 1.5?
Thanks,
Tom
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/
--
Martin Grigorov
jWeekend
Training
...@gmail.com wrote:
Is it possible to test that appendJavascript is called on wicket
1.5?
Thanks,
Tom
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/
--
Martin Grigorov
jWeekend
Training
.nabble.com/Test-project-tp4653437p4653613.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
Thanks, works like expected. You right. If i throw another exception
(ex. IAE) the assertion on rendered page is working. So checking the
last response status seems to be natural.
Per
-
To unsubscribe, e-mail:
Hi,
Additionally you need to : tester.executeBehavior() otherwise
WicketTester is not used at all in your test.
On Thu, Nov 1, 2012 at 10:49 PM, vineet semwal vineetsemwa...@gmail.com wrote:
hi,
this is expected behavior,
AbortWithHttpErrorCodeException doesn't respond with
InternalErrorPage
hi martin,
you missed his test abortRenderingOnUsage()
tester.executeBehavior() doesn't fit his case,
also tester#executeBehavior(AbstractAjaxBehavior behavior)
On Fri, Nov 2, 2012 at 1:49 PM, Martin Grigorov mgrigo...@apache.org wrote:
Hi,
Additionally you need to : tester.executeBehavior
Hi,
i try to unit test a custom behavior. But i was wondering what's the
right way to test it.
I provide some code to explain my mind mismatch. The behavior shall
interrupt the rendering
of a component. I would like to answer this with a 404. Calling the
behavior method directly
results
(tester.getLastResponse().getErrorMessage(),
This is for testing) ;
On Thu, Nov 1, 2012 at 11:54 PM, Per Newgro per.new...@gmx.ch wrote:
Hi,
i try to unit test a custom behavior. But i was wondering what's the right
way to test it.
I provide some code to explain my mind mismatch. The behavior shall
/2si4vvbmxo4fqxg/TestUI.zip
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Test-project-tp4653437.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail
://apache-wicket.1842946.n4.nabble.com/Test-project-tp4653437.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
we are using wicket 1.5.7.
We have a simple test for each wicket page to assert rendering like
this:
WicketTester.assertRenderedPage(Page.class);
In our module we have 52 tests w.r.t wicket pages.
It takes so long to run these tests.
Please give suggestion
tests ?
On Mon, Oct 22, 2012 at 9:10 AM, Arunachalam Sibisakkaravarthi
arunacha...@mcruncher.com wrote:
Hai,
Here we are using wicket 1.5.7.
We have a simple test for each wicket page to assert rendering like
this:
WicketTester.assertRenderedPage(Page.class
...@mcruncher.com wrote:
Hai,
Here we are using wicket 1.5.7.
We have a simple test for each wicket page to assert rendering like
this:
WicketTester.assertRenderedPage(Page.class);
In our module we have 52 tests w.r.t wicket pages.
It takes so long
, Arunachalam Sibisakkaravarthi
arunacha...@mcruncher.com wrote:
Hai,
Here we are using wicket 1.5.7.
We have a simple test for each wicket page to assert rendering like
this:
WicketTester.assertRenderedPage(Page.class);
In our module we have 52 tests w.r.t
Hai,
Here we are using wicket 1.5.7.
We have a simple test for each wicket page to assert rendering like this:
WicketTester.assertRenderedPage(Page.class);
In our module we have 52 tests w.r.t wicket pages.
It takes so long to run these tests.
Please give suggestion to improve test
Hi,
Do you call wicketTester.destroy() at the end of your tests ?
On Mon, Oct 22, 2012 at 9:10 AM, Arunachalam Sibisakkaravarthi
arunacha...@mcruncher.com wrote:
Hai,
Here we are using wicket 1.5.7.
We have a simple test for each wicket page to assert rendering like
...@mcruncher.com wrote:
Hai,
Here we are using wicket 1.5.7.
We have a simple test for each wicket page to assert rendering like this:
WicketTester.assertRenderedPage(Page.class);
In our module we have 52 tests w.r.t wicket pages.
It takes so long to run these tests.
Please give
wicketTester.destroy() at the end of your tests ?
On Mon, Oct 22, 2012 at 9:10 AM, Arunachalam Sibisakkaravarthi
arunacha...@mcruncher.com wrote:
Hai,
Here we are using wicket 1.5.7.
We have a simple test for each wicket page to assert rendering like this:
WicketTester.assertRenderedPage
now.
And the question: does someone has an experience with managing this id in
such tests ? Is there some way to get the page version dynamically from
somewhere (previews page ?) or ignore it completely ?
I can try calculating it somehow but it will be test structure dependent and
for every test
What exactly do you mean by 'quickstart' ?
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
A mini application that reproduces the problem. See
http://wicket.apache.org/start/quickstart.html
On Tue, Aug 28, 2012 at 8:21 AM, JCoder i...@jcoder.de wrote:
What exactly do you mean by 'quickstart' ?
-
To unsubscribe,
What exactly do you mean by 'quickstart' ?
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Hi Vineet,
thanks for the reply. The line
tester.getServletRequest().setParameter(myParam, testParam);
But now Im breaking my head with the next issue. If you look at my first post,
Im trying to do a test where a second page is rendered after a submit on an
AjaxButton. The test code looks like
that test looks ok to me ,please attach a quickstart
On Mon, Aug 20, 2012 at 12:23 PM, JCoder i...@jcoder.de wrote:
Hi Vineet,
thanks for the reply. The line
tester.getServletRequest().setParameter(myParam, testParam);
But now Im breaking my head with the next issue. If you look at my first
Hi Vineet,
wickettester#ajaxEvent(button,onclick) is what I already tried. And it
worked better but not finally finsihed.
The cause of the next problem is that I need to provide some request parameter
for this request since my application reads request and throws an exception if
it can't find
why are you attaching a new ajaxformsubmitbehavior to an ajaxbutton
,it already has it's own ?
if you want to pass some request parameter ,you can set it to the
request by tester.getRequest().setParameter(key,value)
On Fri, Aug 17, 2012 at 12:09 PM, JCoder i...@jcoder.de wrote:
Hi Vineet,
Well it turns out that reflective call of a method failes.
I run into WicketRuntimeException in RequestListenerInterface.invoke(Page,
Component).
The button to submit is an instance of AjaxButton. Does this make a difference
in initializing the test?
Regards,
Y
Furthermore, I found out that my test code calls public void onSubmit();
instead of calling the overridden protected void onSubmit(AjaxRequestTarget
target, Form? form);
These overriden methods reside in my anonymous inner subclass of AjaxButton
that is expected behavior try
wickettester#ajaxEvent(button,onclick) or it's path equivalent
On Thu, Aug 16, 2012 at 7:00 PM, JCoder i...@jcoder.de wrote:
Furthermore, I found out that my test code calls public void onSubmit();
instead of calling the overridden protected void onSubmit
...@jcoder.de wrote:
Furthermore, I found out that my test code calls public void onSubmit();
instead of calling the overridden protected void onSubmit(AjaxRequestTarget
target, Form? form);
These overriden methods reside in my anonymous inner subclass of AjaxButton
Hi all,
Im working at a basic Unit Test that looks like this:
1. tester.assertRenderedPage(FirstPage.class);
2. FormTester formTester = tester.newFormTester(myForm);
3. formTester.submit(myButton);
4. tester.assertRenderedPage(SecondPage.class);
All lines work as expected. Only line 4 fails. I
Hi,
Put a breakpoint in the button's onSubmit() method and see whether it
is actually called.
It could be that you need to call formTester.submit(myForm:myButton);
On Mon, Aug 13, 2012 at 5:18 PM, JCoder i...@jcoder.de wrote:
Hi all,
Im working at a basic Unit Test that looks like this:
1
[mailto:mgrigo...@apache.org]
Sent: Monday, August 13, 2012 11:53 AM
To: users@wicket.apache.org
Subject: Re: Basic JUnit Test
Hi,
Put a breakpoint in the button's onSubmit() method and see whether it is
actually called.
It could be that you need to call formTester.submit(myForm:myButton);
On Mon, Aug 13
At first sight I would say that your problem could be related to a
different Locale used during unit test. You should compare the output of
'myData.getAmount()' when is called during testing and when is called
running on Jetty server.
I have a integration test case:
FormTester
flatfiles or just
database?
The last commits were 2008, so I am aware of it being not so wide spreaded.
But I hope that some guys who worked on it are still around here... ;-)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Elephas-Blog-Engine-how-to-setup-a-test-repo
-how-to-setup-a-test-repo-tp4597689p4597714.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
message will be added to the discussion below:
http://apache-wicket.1842946.n4.nabble.com/Elephas-Blog-Engine-how-to-setup-a-test-repo-tp4597689p4597714.html
To unsubscribe from Elephas Blog Engine: how to
setup a test repo, click here
Gidday
when I add password field with minimumLength and the user enters an shorter
password it is displayed in the feedback panel in cleartext
is there a work around for this ?
e.g.
form.add(new
PasswordTextField(pass).add(StringValidator.minimumLength(8)).setLabel(new
ModelString(Password:)));
override the validator message to not show the value...
-igor
On Wed, Feb 15, 2012 at 3:11 PM, pblakez pbla...@gmail.com wrote:
Gidday
when I add password field with minimumLength and the user enters an shorter
password it is displayed in the feedback panel in cleartext
is there a work
ok that works thanks igor
cheers pb...
On Thu, Feb 16, 2012 at 10:22 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:
override the validator message to not show the value...
-igor
On Wed, Feb 15, 2012 at 3:11 PM, pblakez pbla...@gmail.com wrote:
Gidday
when I add password field with
:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/how-to-test
in context:
http://apache-wicket.1842946.n4.nabble.com/how-to-test-the-wicket-panel-tp4368407p4383536.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
);
wicketTester.assertComponent(:panelid,PanelA.class);
but that doesn't work. The test fails with this message:
junit.framework.AssertionFailedError: component 'CreatePage' is not
type:PanelA
Am I using the AssertComponent in a wrong way?
How else can I perform a test like that?
Could you point me to a good
(CreatePage.class);
wicketTester.assertRenderedPage(CreatePage.class);
wicketTester.assertComponent(:panelid,PanelA.class);
but that doesn't work. The test fails with this message:
junit.framework.AssertionFailedError: component 'CreatePage' is not
type:PanelA
Am I using the AssertComponent
);
wicketTester.assertComponent(:panelid,PanelA.class);
but that doesn't work. The test fails with this message:
junit.framework.AssertionFailedError: component 'CreatePage' is not
type:PanelA
Am I using the AssertComponent in a wrong way?
How else can I perform a test like that?
Could you point me to a good
PanelA(id);
else
p = new PanelB(id);
add(p);
I've tried something like this:
wicketTester.startPage(CreatePage.class);
wicketTester.assertRenderedPage(CreatePage.class);
wicketTester.assertComponent(:panelid,PanelA.class);
but that doesn't work. The test fails
/how-to-test-the-wicket-panel-tp4368407p4368407.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
for page
please tell me how to access the paginationfirst button in the testpanel
regards,
aki
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/how-to-test-the-wicket-panel-tp4368407p4368407.html
Sent from the Users forum mailing list archive at Nabble.com
Hi!
We are using wicket-1.4.8.
We have a lot of unit tests and it takes long time to run them. To reduce
running time at multi-core systems we decided to run them parallel in
multiple threads.
I use this
Hi,
Some people ran 1.5.x core tests in parallel with JUnit/Surefire
parallel support and the problems they had were related with setting
current Locale with Locale.setDefault(), i.e. JVM wide. Some tests
expect specific i18n-ized results and due to changed Locale they
failed.
Improvements in
I didn't mean that I want to run core tests.
I need to run junits for wicket-based web applications in 3-4 parallel
threads. We have a lot of tests based on WicketTester and it takes a lot of
time to run them. Parallel running reduces execution time significantly.
But as far as I can see it's
Wicket tests also use WicketTester :-)
You can create simple application to experiment with.
2011/12/22 Vervenko Pavel willcode4f...@tut.by:
I didn't mean that I want to run core tests.
I need to run junits for wicket-based web applications in 3-4 parallel
threads. We have a lot of tests
well im talking about 1.5.3, and it is not like you startPanel and it
works, as it will try to call constructor with one parameter of the string
type. If your panel has constructor with more than only id then you cant
simply use it.
so i guess this was a case where ITesterPanelSource was useful
ues tester.startcomponentinpage(new myPanel(a,b))
On Sun, Nov 27, 2011 at 4:11 PM, kamiseq kami...@gmail.com wrote:
well im talking about 1.5.3, and it is not like you startPanel and it
works, as it will try to call constructor with one parameter of the string
type. If your panel has
sorry typo *use* :)
2011/11/27 vineet semwal vineetsemwal1...@gmail.com:
ues tester.startcomponentinpage(new myPanel(a,b))
On Sun, Nov 27, 2011 at 4:11 PM, kamiseq kami...@gmail.com wrote:
well im talking about 1.5.3, and it is not like you startPanel and it
works, as it will try to call
ok I think I was blind yesterday ;] and I need to admit that javadoc is
correct and says exactly the same thing (to use startComponentInPage(C
component)
thanks ;]
pozdrawiam
Paweł Kamiński
kami...@gmail.com
pkaminski@gmail.com
__
its not just your fault ,i think tester.startpanel should have been
totally deprecated ie. all overloaded versions of startpanel
On Sun, Nov 27, 2011 at 4:41 PM, kamiseq kami...@gmail.com wrote:
ok I think I was blind yesterday ;] and I need to admit that javadoc is
correct and says exactly the
for me this does not works either in 1.5.3 as inner test page has no markup
pozdrawiam
Paweł Kamiński
kami...@gmail.com
pkaminski@gmail.com
__
the javadoc of ITesterPanelSource says Depreced since no longer needed in
1.5.3
can you give examples?
pozdrawiam
Paweł Kamiński
kami...@gmail.com
pkaminski@gmail.com
__
tester.startpanel(panel)?
-igor
On Sat, Nov 26, 2011 at 3:57 PM, kamiseq kami...@gmail.com wrote:
the javadoc of ITesterPanelSource says Depreced since no longer needed in
1.5.3
can you give examples?
pozdrawiam
Paweł Kamiński
kami...@gmail.com
pkaminski@gmail.com
I just used tester.startPanel(new xxpanel(x,y));
It worked for me. Make sure that this panel has a .html file associated with
it. Also make sure that you don't have any mock objects for the parent page
or for this panel. Just keep the test case as simple as possible. Let me
know if you still have
Hello,
In our project, we have some panels and we embed those panels
dynamically to pages.
public class DoublePanel extends Panel {
public DoublePanel(String id, Panel leftPanel, Panel rightPanel) {
.
}
}
I am not sure how to write unit test just for this class without a webpage
Additional Information:
Using Apache-Wicket - 1.5.3
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-test-just-a-panel-using-apache-wicket-tp4097990p4097993.html
Sent from the Users forum mailing list archive at Nabble.com
create a simple page that acts as a wrapper for the panel (as an inner
class of the test perhaps) and use that to test
-igor
On Tue, Nov 22, 2011 at 4:11 PM, sudeivas sureshkumar@gmail.com wrote:
Additional Information:
Using Apache-Wicket - 1.5.3
--
View this message in context
, leftPanel, rightPanel));
}
}
@Before
public void init() {
tester = new WicketTester();
}
@Test
public void testDoublePanel() {
tester.startPage(new TestPage());
}
}
But still I am getting the same exception,
java.lang.NullPointerException
serialVersionUID = 1L;
public TestPage() {
super();
add(new DoublePanel(double, leftPanel, rightPanel));
}
}
@Before
public void init() {
tester = new WicketTester();
}
@Test
public void testDoublePanel
Hi all,
when I upgrade my application from wicket version 1.4.17 to version 1.4.18,
there is one test which fails.
When I test application manually, there is no problem, so I think there is a
problem inside the test.
this is the test which failed with 1.4.18 :
@Test
public void
with setters on mockservletrequest and looking
at the source of Include component to see how it uses them.
if you cannot get it to do what you want then this component may not
work in the test environment. as the last resort you can toggle its
visibility if its running in a testcase.
-igor
On Wed
Igor,
thanks a lot!
I was thinking of putting some check whether it's a test code into
production code, but that idea seems a bit whacky :)
Will play with MockServletRequest...
thanks again
Alexander
On 08/25/2011 10:48 AM, Igor Vaynberg wrote:
the include component tries to construct
I saw similar post about 2 years ago, but seems that the question was
left unaswered.
http://wicket-users.markmail.org/message/o6ub7gjxrheevlo4?q=test+include
I have a page with Include, works fine, however when testing I get:
org.apache.wicket.util.resource.ResourceStreamNotFoundException
test :
TagTester tagFemme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:femme);
TagTester tagHomme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:homme);
TagTester tagMixte =
tester.getTagByWicketId(formCreationQuestionnaire:genre:mixte
we can see that radio button with wicket:id=femme have tag checked.
But in my test :
TagTester tagFemme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:femme);
TagTester tagHomme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:homme);
TagTester
checked.
But in my test :
TagTester tagFemme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:femme);
TagTester tagHomme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:homme);
TagTester tagMixte =
tester.getTagByWicketId(formCreationQuestionnaire:genre:mixte
In my unit test, I try to check what radio is selected, but I don't find
how...
You may check out http://wicketpagetest.sourceforge.net which will work
for this use case.
-
To unsubscribe, e-mail: users-unsubscr
It works well when I don't provide the complete path !
Thank you a lot Mike !
();
}
}
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
() {
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
Not exactly...
JUnit calls @Before and @After for each test method. That's why...
*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*
On Sat, Aug 20, 2011 at 1:59 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:
When you reuse the application instance across tests you are also reusing
its
Oh... sorry Igor... :-)
*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*
On Sat, Aug 20, 2011 at 2:20 PM, Bruno Borges bruno.bor...@gmail.comwrote:
Not exactly...
JUnit calls @Before and @After for each test method. That's why...
*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com
, new ModelString(f)));
genre.add(new RadioString(homme, new ModelString(h)));
genre.add(new RadioString(mixte, new ModelString(b)));
form.add(genre);
This radiogroup match the genreDestinataire field in Questionnaire Entity
(with a CompoundPropertyModel).
In my unit test, I
Entity
(with a CompoundPropertyModel).
In my unit test, I try to check what radio is selected, but I don't find
how...
I can get Model Object from radioGroup like this :
String genreObtenu =
((RadioGroupString)form.get(genreDestinataire)).getDefaultModelObjectAsString();
but it works even
(tagHomme.hasAttribute(checked));
Assert.assertFalse(tagMixte.hasAttribute(checked));
but my tagTester are always null ! I checked path many times, and I tried
other way to instantiate tagTester, but without success.
I already used TagTester in other test before without problem, and I really
don't understand
test before without problem, and I really
don't understand why it is always null here...
Can you provide output from WicketTester.debugComponentTree()?
Mike
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
I add WicketTester.debugComponentTrees() in my test juste before
assertNotNull which failed like this :
TagTester tagFemme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:femme);
TagTester tagHomme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:homme
Am 19.08.2011 16:38, schrieb Mathilde Pellerin:
I add WicketTester.debugComponentTrees() in my test juste before
assertNotNull which failed like this :
TagTester tagFemme =
tester.getTagByWicketId(formCreationQuestionnaire:genre:femme);
TagTester tagHomme
hum, yes and no... I mean, page is loaded by an ajax response (AjaxLink),
but then there is no Ajax.
This is the entire test, maybe it can help :
@SuppressWarnings(unchecked)
@Test @Transactional @Rollback
public void testStory23_TA21_VerificationInitialisationBoutonsRadio
2011 18:38:43 +0200
Von: Mathilde Pellerin mathilde.pelle...@statlife.fr
An: users@wicket.apache.org
Betreff: Re: how to test what radio is checked in a radiogroup?
hum, yes and no... I mean, page is loaded by an ajax response (AjaxLink),
but then there is no Ajax.
This is the entire test
2011 18:38:43 +0200
Von: Mathilde Pellerin mathilde.pelle...@statlife.fr
An: users@wicket.apache.org
Betreff: Re: how to test what radio is checked in a radiogroup?
hum, yes and no... I mean, page is loaded by an ajax response (AjaxLink),
but then there is no Ajax.
This is the entire
Welcome to wicket Shunmuga
Did you check the website http://wicket.apache.org already. It's all there.
Check the wiki, component examples and books section.
Hope you have fun with wicket
Cheers
Per
-
To unsubscribe, e-mail:
hej,
I ve found something something like this
http://blog.yanivkessler.com/2010/06/writing-unit-tests-for-guicey-wicket.htmlbut
I think there should be some easier way to setup guice DI. I tried to
use AtUnit but it doesnt work with webpages( I get
*org.apache.wicket.WicketRuntimeException:
There
If you talk about wickettester test then I setup it the same way I do
it for running in web container - thru
IComponentInstantiationListener.
I just pass different Giuce module which setups mock services.
You can see it in www.jweekend.com/dev/LegUp guice quickstart.
On Wed, Jun 22, 2011 at 3:28
ok, then I think I just took the wrong turn ;] I dont know why they bother
themselves with custom testRunner
pozdrawiam
Paweł Kamiński
kami...@gmail.com
pkaminski@gmail.com
__
Hi all,
I have a modal window with a login form inside that works fine when I test
it manually.
I try to test it with wicket tester since yesterday. I saw in some mails of
this list that there is nothing special in testing modal windows.
I tried this :
tester.startPage(AccueilPage.class
Hi Mathilde,
maybe the form id you use in test is not correct. How do you add form to
modalWindow? Can you attach code?
Hi all,
I have a modal window with a login form inside that works fine when I test
it manually.
I try to test it with wicket tester since yesterday. I saw in some mails
a null pointer
when I try to get it with modalWindow.get(errorMsg);
2011/5/26 Andrea Del Bene adelb...@ciseonweb.it
Hi Mathilde,
maybe the form id you use in test is not correct. How do you add form to
modalWindow? Can you attach code?
Hi all,
I have a modal window with a login
that form id is correct.
It is the same problem with FeedBackPanel errorMsg : I get a null pointer
when I try to get it with modalWindow.get(errorMsg);
2011/5/26 Andrea Del Bene adelb...@ciseonweb.it
Hi Mathilde,
maybe the form id you use in test is not correct. How do you add form
Form id is corret, but remember that form and feedback panel are not
added directly to modal window. They are inside ConnexionContentPanel
which in turn is added to modalwindow.
In your test you should be able to access form calling getContent()
before get(loginForm), i.e
101 - 200 of 420 matches
Mail list logo