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, whic

Re: Executing AjaxEvent reset form inputs during Wicket test

2020-06-01 Thread Sven Meier
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 to have lost all the other field setted

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 feedback messages

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Francesco Chicchiriccò
etMethod("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
o...@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

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Francesco Chicchiriccò
> 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 failures occur be

Re: Test errors after upgrading to Wicket 8.7.0

2020-01-10 Thread Martin Grigorov
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 that > MockWebRequest is not behaving as expected; no troubles occur instead > during normal operations with HttpServletRequest. &g

Test errors after upgrading to Wicket 8.7.0

2020-01-09 Thread Francesco Chicchiriccò
. The 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 submit

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
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 > Old Rank New RankChange in Rank > > wicket json

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 Old

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

2017-03-23 Thread Martin Grigorov
gt; 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 <marcel.po...@gmail.com>: > > > That is really good! > > > > On Thu

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 <marcel.po...@gmail.com>: > That is really good! > > On Thu, Mar 23, 2017 at 5:47 AM, Andrea De

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

2017-03-23 Thread Marcel Barbosa Pinto
rigorov < > mgrigo...@apache.org> > > wrote: > > >> Hi, > > >> > > >> Somehow Wicket finished at 3rd position at the last preview run of > > >> TechEmpower framework tests :-) > > >> https://www.techempower.com/benchmarks/preview

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

2017-03-23 Thread Andrea Del Bene
om>: > > > > WOW > > > >> On Wed, Mar 22, 2017 at 10:12 PM, Martin Grigorov <mgrigo...@apache.org> > wrote: > >> Hi, > >> > >> Somehow Wicket finished at 3rd position at the last preview run of > >> TechEmpower framework tests

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

2017-03-22 Thread Tobias Soloschenko
; 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=ph=json >> >> At plaintext test we are at #18: >> https://www.techempower.co

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

2017-03-22 Thread Martijn Dashorst
json > > At plaintext test we are at #18: > https://www.techempower.com/benchmarks/previews/round14/#section=data-r14=ph=plaintext > > Too bad that the new MySQL JDBC driver v.6 failed at their servers, > otherwise I'd expect good results there too. > https://github.com/TechEmpowe

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=ph=json At plaintext test we are at #18: https://www.techempower.com/benchmarks/previews/round14/#section=data-r14=ph

Re: Test Page renders with Nested Panel

2017-02-14 Thread David Beer
). > 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 haven't used those since > very long time. >

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 convert

Re: Test Page renders with Nested Panel

2017-02-13 Thread Martin Grigorov
Mon, Feb 13, 2017 at 10:05 PM, David Beer <david.m.b...@gmail.com> 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:/

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
wrote: > 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-secur

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
r usersDataProvider; > > private AdminViewPage adminViewPage; > > @Before > public void setUp() throws Exception { > super.setUp(); > usersDataProvider = mock(UsersDataProvider.class); > adminViewPage = new AdminViewPage(); > doNothing().when(usersDataProvider).checkDAO(); > wh

Test Page renders with Nested Panel

2017-02-09 Thread David Beer
e public void setUp() throws Exception { super.setUp(); usersDataProvider = mock(UsersDataProvider.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" := "" , // hid

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

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 <mgrigo...@apac

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

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Martin Grigorov
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
: 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: "6.3&

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Thorsten Schöning
ore, 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 pres

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Martin Grigorov
re current version of Maven: >> >> > Apache Maven 3.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 >>

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

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

Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-30 Thread Martin Grigorov
wrote: > 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, Skip

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.398

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

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

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

2016-01-28 Thread Martin Grigorov
15"); > // > > formTester.select("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

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

2016-01-28 Thread Sven Meier
abel("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 how to do this

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-multiple-t

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

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 <lgreenehernan...@knoa.com> To: "users@wicket.apache.org" <users@wicket.apache

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 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

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 available

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 an.delb...@gmail.com 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 test AJAX events

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 the userguide for more details. Andrea. On 20/07/2015 16

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

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 http

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 kent.tong...@gmail.com: 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

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 stacktrace

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? Here is the stacktrace

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

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 simple feature I

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

2014-06-02 Thread Martin Grigorov
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 password 2.c set email 2.d set organisation 3

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 exceptions

Re: Wicket CDI application junit test

2014-04-15 Thread Martin Grigorov
: 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. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Wicket CDI application junit test

2014-04-15 Thread Duke
(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 Nabble.com

Re: Wicket CDI application junit test

2014-04-15 Thread Martin Grigorov
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/Wicket-CDI-application-junit-test

Re: Wicket CDI application junit test

2014-04-15 Thread Duke
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 application yet. It fails without

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-14 Thread Duke
, 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 list archive at Nabble.com

Re: Wicket CDI application junit test

2014-04-11 Thread Stephan Schrader
class LoginPageTest { private static WicketTester tester; @BeforeClass public static void setUpClass() { tester = new WicketTester(new WebAdminApplication()); } @AfterClass public static void tearDownClass() { } @Test public void

Re: Wicket CDI application junit test

2014-04-11 Thread Duke
, but 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 Nabble.com

Re: Wicket CDI application junit test

2014-04-11 Thread David Beer
-CDI-application-junit-test-tp4665366p4665371.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

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

Wicket CDI application junit test

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

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 frameworks, bluntly

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 d...@fh-wedel.de wrote: On Sun, December 01, 2013, Martin Grigorov

Re: Running a TestNG test suite from a wicket page

2013-12-01 Thread Martin Dietze
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 object variants), and loading

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
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 help when testing

Re: Running a TestNG test suite from a wicket page

2013-11-30 Thread Martin Grigorov
allowing 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 alternative, I need to have TestNG

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 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() /

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

2013-09-09 Thread Martin Dietze
in this test by the one created to solve the other problem (related to the resources for JS and CSS), this problem disappeared. Obviously the problem I saw in the stack trace was misleading here. Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Ed

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 d...@fh-wedel.de 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 picked the wrong stacktrace

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

2013-09-06 Thread Martin Grigorov
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 me, i.e. I'd expect

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 'testAddingAndSwitchingFields

Re: How to unit test AttributeModifier

2013-05-09 Thread Dmitriy Neretin
, 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 2013/5/8 Martin Grigorov mgrigo...@apache.org Also check AttributeModifierTest in wicket-core/src/test/java

Re: How to unit test AttributeModifier

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

Re: How to unit test AttributeModifier

2013-05-08 Thread Kees van Dieren
Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2013/5/8 Martin Grigorov mgrigo...@apache.org Also check AttributeModifierTest in wicket-core/src/test/java/.. On Tue, May 7, 2013 at 5:31 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: attribute modifiers

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 container = (WebMarkupContainer

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 dmitriy.nere...@googlemail.com wrote: Hello, Is it possible to unit test an AttributeModifier? I have a simple component

Re: Best Way to Perform a Quick Test

2013-04-03 Thread Paul Bors
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. System.out.println(makeDatabasecall().toString()) and so on. I know

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 returned by a database call

Re: Best Way to Perform a Quick Test

2013-04-01 Thread Dan Retzlaff
. On Mon, Apr 1, 2013 at 7:51 AM, madmax108 lifeofna...@gmail.com 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. System.out.println

Re: Test Select2Choice with WicketTester

2013-02-14 Thread Ulf Gitschthaler
if a Select2Choice field is a required field. Up to now it always failes because the model object is null. Just a simple example test case would be nice that shows how to test Select2Choice fields in a form. On Feb 13, 2013, at 9:41 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: What exactly

Re: Test Select2Choice with WicketTester

2013-02-14 Thread Ulf Gitschthaler
,text:Volleyball},{id:190,text:Walking Tour},{id:194,text:Water Park},{id:196,text:Water Skiing},{id:192,text:Watercraft},{id:198,text:Windsurfing},{id:200,text:Wine bar},{id:202,text:Wine Tasting},{id:204,text:Zoo}],more:null} For this it uses ChoiceProvider. So, you could test user typing

  1   2   3   4   5   >