Re: Executing AjaxEvent reset form inputs during Wicket test

2020-06-01 Thread Sven Meier
Hard to tell, the code looks fine to me :/ Have fun Sven On 01.06.20 15:09, leodali83 wrote: Hello Sven, actually it helps a bit, some error feedback messages related to the 2 input fields on which I set the value just after instantiation of FormTester disappered. Therefore, test fails again

Re: Executing AjaxEvent reset form inputs during Wicket test

2020-06-01 Thread leodali83
Hello Sven, actually it helps a bit, some error feedback messages related to the 2 input fields on which I set the value just after instantiation of FormTester disappered. Therefore, test fails again signaling the second dropdown (e.g. "secondDropDownSelect") is required, which actu

Re: Executing AjaxEvent reset form inputs during Wicket test

2020-06-01 Thread Sven Meier
Wicket 8. Now i'm testing a form containing 2 DropDownChoice, the selection of the first one should refresh elements to be choose on the second through the Ajax "change" event. When i submit my form and I test feedback messages displayed during the process, the form seems

Executing AjaxEvent reset form inputs during Wicket test

2020-06-01 Thread leodali83
Hello everybody, I'm developing a web application built on Wicket 8. Now i'm testing a form containing 2 DropDownChoice, the selection of the first one should refresh elements to be choose on the second through the Ajax "change" event. When i submit my form and I test feedbac

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Francesco Chicchiriccò
equest().setMethod("get"); > tester.getRequest().setParameter("select", page.option1.getValue()); > ... > > > > Regards. > > > > > On Fri, Jan 10, 2020 at 9:31 AM Francesco Chicchiriccò < > > ilgro...@apache.org> > > > wrote

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Martin Grigorov
; ilgro...@apache.org> > > wrote: > > > > > Hi there, > > > it seems we have some issues with Wicket Tester, after upgrading to > 8.7.0 > > > from 8.6.1. > > > > > > In particular, due to the change [1] for WICKET-6708, we have found &

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Francesco Chicchiriccò
8.7.0 > > from 8.6.1. > > > > In particular, due to the change [1] for WICKET-6708, we have found that > > MockWebRequest is not behaving as expected; no troubles occur instead > > during normal operations with HttpServletRequest. > > > > The test failure

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Martin Grigorov
we have some issues with Wicket Tester, after upgrading to 8.7.0 > from 8.6.1. > > In particular, due to the change [1] for WICKET-6708, we have found that > MockWebRequest is not behaving as expected; no troubles occur instead > during normal operations with HttpServletRequest. > &

Test errors after upgrading to Wicket 8.7.0

2020-01-09 Thread Francesco Chicchiriccò
test failures occur because MockWebRequest's method is (correctly) set to POST but parameters are submitted with URL, when using DropDownChoice with onChange behavior [2]. Of course, such situation was fine with code prior to [1] but not working anymore: I have verified that expected s

Re: wicket-core and util OSGI wiring problem with junit.framework (provided test environment and fix)

2018-09-05 Thread SUBRA
Duplicate http://apache-wicket.1842946.n4.nabble.com/wicket-core-and-util-OSGI-wiring-problem-with-junit-framework-with-test-environment-td4680840.html -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

wicket-core and util OSGI wiring problem with junit.framework (provided test environment and fix)

2018-09-05 Thread Subrahmanyam Sistha
.0): missing requirement [org.apache.wicket.core [11](R 11.0)] osgi.wiring.package; (osgi.wiring.package=junit.framework) Unresolved requirements: [[org.apache.wicket.core [11](R 11.0)] osgi.wiring.package; (osgi.wiring.package=junit.framework)] Follow the video Test Environment execution video Iss

Re: wicket-core and util OSGI wiring problem with junit framework with test environment

2018-09-05 Thread Martin Grigorov
ket-core bundle, by using start wicket-core ID > > org.osgi.framework.BundleException: Unable to resolve > org.apache.wicket.core > [11](R 11.0): missing requirement [org.apache.wicket.core [11](R 11.0)] > osgi.wiring.package; (osgi.wiring.package=junit.framework) Unresolved > requi

wicket-core and util OSGI wiring problem with junit framework with test environment

2018-09-05 Thread SUBRA
sgi.wiring.package; (osgi.wiring.package=junit.framework)] Follow the video Test Environment execution video Issue.swf <http://apache-wicket.1842946.n4.nabble.com/file/t375090/Issue.swf> manifest video Reason.swf <http://apache-wicket.1842946.n4.nabble.com/file/t375090/Reason.swf> *Fi

Re: What should I use to perform the crawler test?

2018-01-26 Thread Gabriel Landon
Hi Sokab, I usually use Selenium with a "By" class using the wicketPath. Here's the code I use : WicketBy.java Regards, Gabriel -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html --

What should I use to perform the crawler test?

2018-01-24 Thread Sokab
Hi everyone. I have to write a crowler test for wicket application (wildfly server). Do You think Jsoup is enough?I tried to log in to my application to use Jsoup, for example the code on this page http://www.scrapingauthority.com/2016/08/16/web-scraping-in-java-with-jsoup/ but I had many problems

Re: Wicket is #3 in the JSON perf test by TechEmpower

2017-03-24 Thread Tobias Soloschenko
this led to these good numbers. > After fixing the errors the difference between round 13 and 14 are: > > Framework Test Type Old RPS New RPSChange in RPS > Old Rank New RankChange in Rank > > wicket json 328,388

Re: Wicket is #3 in the JSON perf test by TechEmpower

2017-03-24 Thread Martin Grigorov
It was too good to be true :-) TechEmpower said that they've had some mistake in the way they executed the tests and this led to these good numbers. After fixing the errors the difference between round 13 and 14 are: Framework Test Type Old RPS New RPSChange in RPS

Re: Wicket is #3 in the JSON perf test by TechEmpower

2017-03-23 Thread Martin Grigorov
> Would be interesting to run this performance test Wicket with speed patch > #6177 > > https://issues.apache.org/jira/browse/WICKET-6177 > > 2017-03-23 15:58 GMT+02:00 Marcel Barbosa Pinto : > > > That is really good! > > > > On Thu, Mar 23, 2017 at 5:

Re: Wicket is #3 in the JSON perf test by TechEmpower

2017-03-23 Thread Martin Makundi
Would be interesting to run this performance test Wicket with speed patch #6177 https://issues.apache.org/jira/browse/WICKET-6177 2017-03-23 15:58 GMT+02:00 Marcel Barbosa Pinto : > That is really good! > > On Thu, Mar 23, 2017 at 5:47 AM, Andrea Del Bene > wrote: > > >

Re: Wicket is #3 in the JSON perf test by TechEmpower

2017-03-23 Thread Marcel Barbosa Pinto
> > > wrote: > > >> Hi, > > >> > > >> Somehow Wicket finished at 3rd position at the last preview run of > > >> TechEmpower framework tests :-) > > >> https://www.techempower.com/benchmarks/previews/round14/# > > section=data-

Re: Wicket is #3 in the JSON perf test by TechEmpower

2017-03-23 Thread Andrea Del Bene
gt;: > > > > WOW > > > >> On Wed, Mar 22, 2017 at 10:12 PM, Martin Grigorov > wrote: > >> Hi, > >> > >> Somehow Wicket finished at 3rd position at the last preview run of > >> TechEmpower framework tests :-) > >> https://ww

Re: Wicket is #3 in the JSON perf test by TechEmpower

2017-03-22 Thread Tobias Soloschenko
e last preview run of >> TechEmpower framework tests :-) >> https://www.techempower.com/benchmarks/previews/round14/#section=data-r14&hw=ph&test=json >> >> At plaintext test we are at #18: >> https://www.techempower.com/benchmarks/previews/round14/#section=data-

Re: Wicket is #3 in the JSON perf test by TechEmpower

2017-03-22 Thread Martijn Dashorst
WOW On Wed, Mar 22, 2017 at 10:12 PM, Martin Grigorov wrote: > Hi, > > Somehow Wicket finished at 3rd position at the last preview run of > TechEmpower framework tests :-) > https://www.techempower.com/benchmarks/previews/round14/#section=data-r14&hw=ph&test=json > >

Wicket is #3 in the JSON perf test by TechEmpower

2017-03-22 Thread Martin Grigorov
Hi, Somehow Wicket finished at 3rd position at the last preview run of TechEmpower framework tests :-) https://www.techempower.com/benchmarks/previews/round14/#section=data-r14&hw=ph&test=json At plaintext test we are at #18: https://www.techempower.com/benchmarks/previews/round14/#sect

Re: Test Page renders with Nested Panel

2017-02-14 Thread David Beer
with Java EE. > If you use CDI then take a look at > https://github.com/apache/wicket/tree/master/wicket-cdi- > 1.1/src/test/java/org/apache/wicket/cdi > I have no idea how to test @EJB and @Stateless. I haven't used those since > very long time. > > Martin Grigorov &g

Re: Test Page renders with Nested Panel

2017-02-14 Thread Martin Grigorov
Hi, I thought you want to use Spring (because the branch name mentions it). You can do the same with Java EE. If you use CDI then take a look at https://github.com/apache/wicket/tree/master/wicket-cdi-1.1/src/test/java/org/apache/wicket/cdi I have no idea how to test @EJB and @Stateless. I

Re: Test Page renders with Nested Panel

2017-02-13 Thread David Beer
Hi Martin Thanks for the PR. So the solution is to remove JavaEE EJB references rather than to use them and test them. Understand Spring doesn't care about EJB but and vice versa. I am only using spring for the security layer and JavaEE for everything else. So does @SpringBean just conver

Re: Test Page renders with Nested Panel

2017-02-13 Thread Martin Grigorov
/mtgrigorov On Mon, Feb 13, 2017 at 10:05 PM, David Beer wrote: > Hi Martin > > It appears there was an error when I tried to push the code. I am trying to > test AdminPage, and failing to inject the mock from the application > context. > > AdminPage > https://github.com/dmbee

Re: Test Page renders with Nested Panel

2017-02-13 Thread David Beer
Hi Martin It appears there was an error when I tried to push the code. I am trying to test AdminPage, and failing to inject the mock from the application context. AdminPage https://github.com/dmbeer/wicket-7-spring-security/blob/wicket-7-test-spring-security/src/main/java/com/copperarrow/pages

Re: Test Page renders with Nested Panel

2017-02-13 Thread Martin Grigorov
hanks for the pointers some left over code from refactoring. I have > created an example project located here > <https://github.com/dmbeer/wicket-7-spring-security/tree/ > wicket-7-test-spring-security> > under branch wicket-7-test-spring-security. I am still struggling to get >

Re: Test Page renders with Nested Panel

2017-02-11 Thread David Beer
Hi Martin Thanks for the pointers some left over code from refactoring. I have created an example project located here <https://github.com/dmbeer/wicket-7-spring-security/tree/wicket-7-test-spring-security> under branch wicket-7-test-spring-security. I am still struggling to get the mock

Re: Test Page renders with Nested Panel

2017-02-09 Thread Martin Grigorov
on { > super.setUp(); > usersDataProvider = mock(UsersDataProvider.class); > adminViewPage = new AdminViewPage(); > doNothing().when(usersDataProvider).checkDAO(); > when(usersDataProvider.size()).thenReturn(0L); > This usersDataProvider is not really used by UsersTablePanel.java bec

Test Page renders with Nested Panel

2017-02-09 Thread David Beer
sersDataProvider.class); adminViewPage = new AdminViewPage(); doNothing().when(usersDataProvider).checkDAO(); when(usersDataProvider.size()).thenReturn(0L); tester = getTester(); tester.startPage(adminViewPage); } @Test public void renderSuccessfully() throws Exception { tester.assertRenderedPage(AdminViewPage.class); } } Any pointers would be great. Thanks David

Silk Test for wicket appplication

2017-01-17 Thread durairaj t
Unable to run the recorded Silk Test scripts in the Silk Test tool and getting the following message in the scripts. "id81_hf_0" := "" , // hidden, unchanged, value: "" "idf_hf_0" := "" , // hidden, u

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-31 Thread Thorsten Schöning
Guten Tag Martin Grigorov, am Mittwoch, 30. März 2016 um 15:54 schrieben Sie: > Please create a patch / Pull Request and a ticket. https://issues.apache.org/jira/browse/WICKET-6133 Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-S

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Tobias Soloschenko
I also think that this are bugs of the tests. The specific test receive a different locale then the environment and so different resources are compared. You can see it in the Base64 encoded image test. kind regards Tobias > Am 30.03.2016 um 15:45 schrieb Martin Grigorov : > > If

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Thorsten Schöning
Guten Tag Martin Grigorov, am Mittwoch, 30. März 2016 um 15:45 schrieben Sie: > If I try to build Wicket 7.x with de_DE locale the build fails at > wicket-core: Not on Windows BTW, I'm building on Ubuntu and Windows and the wicket-spring problem is currently only on Windows, while the wicket-core

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Martin Grigorov
my shell script invoking the build. Today the test is failing the > whole morning. > > Now after upgrading Maven I additionally tried without a .m2 folder > and the tests pass. Another execution directly afterwards with the > same commands and such, only a present .m2 folder now, the t

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Martin Grigorov
e Foundation\Maven\bin\.. > > Java version: 1.7.0_80, vendor: Oracle Corporation > > Java home: C:\Program Files\Java\jdk1.7.0_80\jre > > Default locale: de_DE, platform encoding: Cp1252 > > OS name: "windows 8.1", version: "6.3", arch: "amd64&

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Thorsten Schöning
anymore, that I removed skipping of the tests from my shell script invoking the build. Today the test is failing the whole morning. Now after upgrading Maven I additionally tried without a .m2 folder and the tests pass. Another execution directly afterwards with the same commands and such, only a

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Martin Grigorov
.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; >> 2015-11-10T17:41:47+01:00) >> > Maven home: C:\Program Files\Apache Software Foundation\Maven\bin\.. >> > Java version: 1.7.0_80, vendor: Oracle Corporation >> > Java home: C:\Program Files\Java\jdk1.7.0_80\jre &g

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Thorsten Schöning
00) > Maven home: C:\Program Files\Apache Software Foundation\Maven\bin\.. > Java version: 1.7.0_80, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk1.7.0_80\jre > Default locale: de_DE, platform encoding: Cp1252 > OS name: "windows 8.1", version: "

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Thorsten Schöning
Guten Tag Martin Grigorov, am Mittwoch, 30. März 2016 um 12:42 schrieben Sie: > The tests pass successfully here and at the CI server. > Which version of JDK and Maven do you use? What is the system locale ? "mvn --version" should provide all requested info: > Apache Maven 3.1.1 (0728685237757ff

Re: Test with IMarkupResourceStreamProvider and using IMarkupResourceStreamProvider for input

2016-03-30 Thread Martin Grigorov
Hi, On Wed, Mar 30, 2016 at 11:08 AM, andre seame wrote: > Hello, > > 1°) According the advices of this mailing list, I try to use > IMarkupResourceStreamProvider as described in > > https://ci.apache.org/projects/wicket/guide/7.x/guide/single.html#advanced_5 > > When using something like: > > p

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Martin Grigorov
I try to build 7.3.0.0-SNAPSHOT from source, but there's at least the > following failing test. Skipping the tests builds OK and the results > seem to work, but that shouldn't be necessary, right? > > [...] > > Tests run: 4, Failures: 0, Errors: 0, Skipp

Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Thorsten Schöning
Hi all, I try to build 7.3.0.0-SNAPSHOT from source, but there's at least the following failing test. Skipping the tests builds OK and the results seem to work, but that shouldn't be necessary, right? [...] > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.39

Test with IMarkupResourceStreamProvider and using IMarkupResourceStreamProvider for input

2016-03-30 Thread andre seame
Hello, 1°) According the advices of this mailing list, I try to use IMarkupResourceStreamProvider as described in https://ci.apache.org/projects/wicket/guide/7.x/guide/single.html#advanced_5 When using something like: public class AutoMarkupGenPanel extends Panel implements IMarkupResourceStre

Re: How to test drop down by changing value multiple times?

2016-01-29 Thread bilguun
Thank you Martin, Yeah, that was absolutely one that I needed. It works great now! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-test-drop-down-by-changing-value-multiple-times-tp4673468p4673473.html Sent from the Users forum mailing list archive at

Re: How to test drop down by changing value multiple times?

2016-01-28 Thread Sven Meier
er.assertLabel("panel:form:subAccounts:0:accounts:0:budgeted", "$2,115"); In this case, second one should be failed because of that it supposed to show $2,116 instead of $2,115 but it's not. I guess second select("year", 2) is not working. Do you have any idea

Re: How to test drop down by changing value multiple times?

2016-01-28 Thread Martin Grigorov
elect("year", 2); > tester.assertLabel("panel:form:subAccounts:0:accounts:0:budgeted", > "$2,115"); > > In this case, second one should be failed because of that it supposed to > show $2,116 instead of $2,115 but it's not. I guess second select(&

How to test drop down by changing value multiple times?

2016-01-28 Thread bilguun
it's not. I guess second select("year", 2) is not working. Do you have any idea how to do this kind of test? Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-test-drop-down-by-changing-value-multi

Re: Jsession Test Question

2015-12-10 Thread Martin Grigorov
Hi, WicketTester *simulates* a browser and a web server. In a normal setup the web server (like Tomcat) generates and encodes the jsessionid in the url. WicketTester creates a Wicket Session for the test(s) and there is no need of transferring jsessionid in the url/cookie. You can use

RE: Jsession Test Question

2015-12-10 Thread Ephraim Rosenfeld
g the URL I would try the latter first, just printing out what the request and response data have. - Ephraim -Original Message- From: Lois GreeneHernandez [mailto:lgreenehernan...@knoa.com] Sent: Thursday, December 10, 2015 2:51 PM To: users@wicket.apache.org Subject: Jsession Test Ques

Re: Jsession Test Question

2015-12-10 Thread Richard W. Adams
The short answer is no. The session ID is not part of the URL. The long answer is, you can test for the session ID if you have access to the HTTP request object. From: Lois GreeneHernandez To: "users@wicket.apache.org" Date: 12/10/2015 01:50 PM Subject: Jse

Jsession Test Question

2015-12-10 Thread Lois GreeneHernandez
Hi All, Is it possible to write a unit test or a pojo that tests an request url for the presence of a jsessionid? My application Is java/wicket. Our test system is testNG and wicket tester. Thanks Lois

Wicket page test 3.0.1 is now available (for Wicket 7.0 and 6.x)

2015-08-26 Thread Kent Tong
Dear all, Wicket page test 3.0.1 is now available. It now works with Wicket 7 (and 6.x) and can reliably wait for the loading of the response page. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. It's avai

Re: Wicket 6 - test ajax component.

2015-07-22 Thread gump lee
Thanks for your reply. I would try to use other testing method to test my component. On Jul 21, 2015 4:47 PM, "andrea del bene" wrote: > Hi, > > I don't think it's possible to send a specific key as this requires > JavaScript code to be executed. But you can tes

Re: Wicket 6 - test ajax component.

2015-07-21 Thread andrea del bene
Hi, I don't think it's possible to send a specific key as this requires JavaScript code to be executed. But you can test AJAX events: //simulate an AJAX "click" event tester.executeAjaxEvent("label", "click"); See 'Testing AJAX events' in

Wicket 6 - test ajax component.

2015-07-20 Thread gump lee
Dear All, Is it possible to write a unit test with WicketTester which I need to send Enter key to an AJAX component? Best regards, Gump

Re: Wicket page test 3.0.0 is now available (for Wicket 6.x)

2015-02-23 Thread Tobias Soloschenko
Thanks for sharing the information! kind regards Tobias > Am 24.02.2015 um 07:08 schrieb Kent Tong : > > Dear all, > > Wicket page test 3.0.0 is now available. It now works with Wicket 6.x and > Selenium 2. It is a library allowing you to unit test your Wicket pages > ea

Wicket page test 3.0.0 is now available (for Wicket 6.x)

2015-02-23 Thread Kent Tong
Dear all, Wicket page test 3.0.0 is now available. It now works with Wicket 6.x and Selenium 2. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. It's available from maven central. Check out the tutorial at

Re: RenderStrategy REDIRECT_TO_RENDER lets fail Test with startComponentInPage

2014-08-20 Thread Dirk Forchel
Yes I can, the quickstart is already attached (see above). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RenderStrategy-REDIRECT-TO-RENDER-lets-fail-Test-with-startComponentInPage-tp4667101p4667103.html Sent from the Users forum mailing list archive at Nabble.com

Re: RenderStrategy REDIRECT_TO_RENDER lets fail Test with startComponentInPage

2014-08-20 Thread Martin Grigorov
changed the RenderStrategy from REDIRECT_TO_BUFFER to > REDIRECT_TO_RENDER one of our tests fails. Actually I could not figure out > why the markup is not found although it is created, but the test fails with > a MarkupNotFoundException. I'm wondering why? &

RenderStrategy REDIRECT_TO_RENDER lets fail Test with startComponentInPage

2014-08-20 Thread Dirk Forchel
Hi, after I have changed the RenderStrategy from REDIRECT_TO_BUFFER to REDIRECT_TO_RENDER one of our tests fails. Actually I could not figure out why the markup is not found although it is created, but the test fails with a MarkupNotFoundException. I'm wondering why? Here is the stack

Re: TDD - End to End acceptance test - how to set form field values

2014-06-02 Thread Martin Grigorov
the first thing the book suggest is to write an acceptance test for > each feature. > > The simple feature I want to test is a user login. > > Here are my steps to take: > 1 create organisation > 2 create user >2.a set username >2.b set passwo

TDD - End to End acceptance test - how to set form field values

2014-06-02 Thread lucast
Dear Forum, I'm trying to (retro) fit TDD into my Wicket project (Wicket Spring Hibernate) after reading "growing object-oriented software guided by tests" by Steve Freeman and Nat Pryce. One of the first thing the book suggest is to write an acceptance test for each feature. The

Re: Wicket CDI application junit test

2014-04-17 Thread Duke
Hi Stepan! Do you try DeltaSpike yourself? I try to run cdi in tests just like in this guide <http://struberg.wordpress.com/2012/03/27/unit-testing-strategies-for-cdi-based-projects/> . And weld-se is failed in a simple test debuuging on a cdiContainer.boot(); with many WELD-001409 exce

Re: Wicket CDI application junit test

2014-04-15 Thread Duke
Found some info in mail archives. I will try to upgrade gf4 with weld 2.1.x as I read. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-application-junit-test-tp4665366p4665416.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket CDI application junit test

2014-04-15 Thread Duke
hat with wicket-cdi1.1 it will be easer to write tests, and later I will whatever migrate to glassfish4.0. Thats why I try to create a simple test application with wicket-cdi 1.1 from wicket v6.14 and Glassfish4.0, to understand what is necessary to do in migration. Can't build this simple app

Re: Wicket CDI application junit test

2014-04-15 Thread Martin Grigorov
If I remove any injections, fail remains. It disappers only if I remove > { new CdiConfiguration().configure(this); } in Application.init(), but my > injections are nulls in this case. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/

Re: Wicket CDI application junit test

2014-04-15 Thread Duke
igure(this); } in Application.init(), but my injections are nulls in this case. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-application-junit-test-tp4665366p4665412.html Sent from the Users forum mailing list archive at

Re: Wicket CDI application junit test

2014-04-14 Thread Martin Grigorov
ent line with configuring of CdiConfiguration, all injections are > nulls (( > What I am doing wrong? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-application-junit-test-tp4665366p4665402.html > Sent from the Users forum mailing l

Re: Wicket CDI application junit test

2014-04-14 Thread Duke
injections are nulls (( What I am doing wrong? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-application-junit-test-tp4665366p4665402.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket CDI application junit test

2014-04-11 Thread Duke
Found your thread, David :) Many thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-application-junit-test-tp4665366p4665373.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket CDI application junit test

2014-04-11 Thread David Beer
://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-application-junit-test-tp4665366p4665371.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...

Re: Wicket CDI application junit test

2014-04-11 Thread Duke
ut it don't work. Then I found an issue about this problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-application-junit-test-tp4665366p4665371.html Sent from the Users forum mailing list archive at

Re: Wicket CDI application junit test

2014-04-11 Thread Stephan Schrader
.lookup("java:comp/BeanManager"); > > LoginPageTest.java > public class LoginPageTest { > private static WicketTester tester; > @BeforeClass > public static void setUpClass() { > tester = new WicketTester(new WebAdminApplication()); > }

Wicket CDI application junit test

2014-04-10 Thread Duke
tion()); } @AfterClass public static void tearDownClass() { } @Test public void testRenderLoginPage() { LoginPage p = tester.startPage(LoginPage.class); tester.assertRenderedPage(LoginPage.class); ... } } WebAdminApplication.java public cla

Re: Running a TestNG test suite from a wicket page

2013-12-04 Thread Martin Dietze
On Mon, December 02, 2013, Paul Bors wrote: > 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. I've got pretty strong feelings about such fr

Re: Running a TestNG test suite from a wicket page

2013-12-02 Thread Paul Bors
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 wrote: > On Sun, December 01, 2013, Martin Grigorov wr

Re: Running a TestNG test suite from a wicket page

2013-12-01 Thread Martin Dietze
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

Re: Running a TestNG test suite from a wicket page

2013-12-01 Thread Martin Grigorov
Hi, 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. In case you know/like JavaScript I'd recommend you: http://wicketinaction.com/2012/11/javascript-based-functional-testing/ We use

Re: Running a TestNG test suite from a wicket page

2013-12-01 Thread Martin Dietze
used, this very easily leads to write-only test code. I've seen this on too many occasions and no longer believe that this is a wise approach. Also one needs to consider that many applications are pretty much data-driven (e.g. my system uses a document-based data model with nearly 100 different ob

Re: Running a TestNG test suite from a wicket page

2013-11-30 Thread Martin Grigorov
lowing me to > test pieces of the code that depend on those (and other > resources). > > I've taken a brief look at the TestNG command line interface, > and it seems like doing what is being done in TestNG.main should > more or less work. Rather ugly, but seemingly without > al

Running a TestNG test suite from a wicket page

2013-11-29 Thread Martin Dietze
As in my project a number of resources are only available within the running web application (e.g. message queues and DB access are provided by the Glassfish application server), I would like to run a TestNG suite from a wicket page, thus allowing me to test pieces of the code that depend on those

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-09 Thread Martin Dietze
On Mon, September 09, 2013, Martin Dietze wrote: > No, nothing of that kind. It's just a helper to make sure noone > uses Ajax on components which are added to the markup as > "..". OK, that one is solved, too. After replacing the Application used in this test by the

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-09 Thread Martin Dietze
On Sat, September 07, 2013, Martin Grigorov wrote: > > com.mycompany.request.WicketContainerChecker.onInstantiation(WicketContainerChecker.java:48) > > > > What is this doing ? > Does it start a new thread by chance ? > Or doing something like: ThreadContext.detach() / > ThreadContext.setRequestC

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-07 Thread Martin Grigorov
On Fri, Sep 6, 2013 at 7:41 PM, Martin Dietze wrote: > On Fri, September 06, 2013, Martin Grigorov wrote: > > > 2. #testAddingAndSwitchingFields > > > > you look at the wrong test > > we cannot help you when we have the wrong source given > > Yes, sorry, I

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-06 Thread Martin Dietze
On Fri, September 06, 2013, Martin Grigorov wrote: > 2. #testAddingAndSwitchingFields > > you look at the wrong test > we cannot help you when we have the wrong source given Yes, sorry, I picked the wrong stacktrace, however they're all identical anyway. The method 'testAd

Re: Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-06 Thread Martin Grigorov
il with some exception inside Wicket. > > Since I am rather unfamiliar with the wicket test infrastructure, > I'd like to ask here, if the stuff below rings any bell with > anyone of you? Did I forget something fundamental? A missing > RequestCycle seems rather fundamental to m

Test based on AbstractWicketTest fails with "No RequestCycle is currently set"

2013-09-06 Thread Martin Dietze
test infrastructure, I'd like to ask here, if the stuff below rings any bell with anyone of you? Did I forget something fundamental? A missing RequestCycle seems rather fundamental to me, i.e. I'd expect the testing infrastructure to take care that there is one, or am I mistaken here

Re: How to unit test AttributeModifier

2013-05-09 Thread Dmitriy Neretin
icValue" > > > > > Best regards / Met vriendelijke groet, > > Kees van Dieren > Squins IT Solutions BV > Oranjestraat 30 > 2983 HS Ridderkerk > The Netherlands > Mobile: +31 (0)6 30413841 > www.squins.com > Chamber of commerce Rotterdam: 24435103 &g

Re: How to unit test AttributeModifier

2013-05-08 Thread Kees van Dieren
raat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2013/5/8 Martin Grigorov > Also check AttributeModifierTest in wicket-core/src/test/java/.. > > > On Tue, May 7, 2013 at 5:31 PM, Igor Vaynberg >wrote: &g

Re: How to unit test AttributeModifier

2013-05-07 Thread Martin Grigorov
Also check AttributeModifierTest in wicket-core/src/test/java/.. On Tue, May 7, 2013 at 5:31 PM, Igor Vaynberg wrote: > attribute modifiers are behaviors, so use > component.getbehavior(AttributeModifier.class) to get it. > > -igor > > On Tue, May 7, 2013 at 8:24 AM, Dmitri

Re: How to unit test AttributeModifier

2013-05-07 Thread Igor Vaynberg
attribute modifiers are behaviors, so use component.getbehavior(AttributeModifier.class) to get it. -igor On Tue, May 7, 2013 at 8:24 AM, Dmitriy Neretin wrote: > Hello, > > Is it possible to unit test an AttributeModifier? > > I have a simple component: > > WebMarkupCont

How to unit test AttributeModifier

2013-05-07 Thread Dmitriy Neretin
Hello, Is it possible to unit test an AttributeModifier? I have a simple component: WebMarkupContainer container = new WebMarkupContainer("containerId"); container.add(new AttributeModifier("name", "anyDynamicValue")); In the unit test: WebMarkupContainer c

Re: Best Way to Perform a Quick Test

2013-04-03 Thread Paul Bors
to Java > > development where, when I want to perform a quick test, I simply add a > > sysout to see if a certain code segment is being reached eg. > > System.out.println("Segment 1 reached") or to find out what is being > > returned by a database call eg. > >

Re: Best Way to Perform a Quick Test

2013-04-01 Thread Dan Retzlaff
code. On Mon, Apr 1, 2013 at 7:51 AM, madmax108 wrote: > Hi, I'm just beginning with Wicket Development. I've been used to Java > development where, when I want to perform a quick test, I simply add a > sysout to see if a certain code segment is being reached eg. > Sy

Best Way to Perform a Quick Test

2013-04-01 Thread madmax108
Hi, I'm just beginning with Wicket Development. I've been used to Java development where, when I want to perform a quick test, I simply add a sysout to see if a certain code segment is being reached eg. System.out.println("Segment 1 reached") or to find out what is being re

Re: Test Select2Choice with WicketTester

2013-02-14 Thread Ulf Gitschthaler
ot;:86,"text":"Magic > Show"},{"id":178,"text":"Male"},{"id":88,"text":"Mountainbiking" > },{"id":90,"text":"Museum-Archeological"},{"id":92,"text":"Museum-Art

  1   2   3   4   5   >