The ApplicationStateManager is injected by TapestryModule.class you will
either need to add this module to the registry or mock the service in a
test module (eg using mockito). Or, you might choose to split your own
module into smaller logical groups (eg core and web) for easier testing.
You might
Hi All,
I'm trying to unit test services (these are already existing services) and
facing a few challenges. I have a "ProjectService" which extends a
baseService and this base service has another service which is injected
into it.
Interface IProjectService {
Event getEvents(Long key)
}
Projec
> Actually, I taught OOP at graduate-level courses. ;)
Well I attended those Nothing much to say about. But maybe yours are
better than the one I needed to attend.
Also newInstance works just fine. Even on private static classes. No access
restriction here. Also having no default constructor s
On Tue, 24 Sep 2013 13:18:25 -0300, Martin Kersten
wrote:
Well its a bug. I dont habe any constructor at all. Calm down and relax.
You dont need ans. Just call Class.newInstance and you are fine. That is
pro.level OOP. :-)
In the next message in this thread you said there was no accessible
Ok I found out what happends. The class is a private static class and so
the default constructor is private too. Boomer. You can still pass the
class along and issue newInstance on it. What a funny thing. So I just
check for it and do the newInstance myself and do field injection myself.
If I add a
Well its a bug. I dont habe any constructor at all. Calm down and relax.
You dont need ans. Just call Class.newInstance and you are fine. That is
pro.level OOP. :-)
Am 24.09.2013 14:34 schrieb "Thiago H de Paula Figueiredo" <
thiag...@gmail.com>:
> On Tue, 24 Sep 2013 08:57:41 -0300, Martin Kerste
On Tue, 24 Sep 2013 08:57:41 -0300, Martin Kersten
wrote:
Also the IOC needs a public constructor for autobuild. Fine I dont have
any... . Would have been a bug report. But I wont mind... .
That's not a bug, that OOP and Java working as they should. How could any
code instantiate a class
Also the IOC needs a public constructor for autobuild. Fine I dont have
any... . Would have been a bug report. But I wont mind... .
2013/9/24 Thiago H de Paula Figueiredo
> On Tue, 24 Sep 2013 04:13:27 -0300, Martin Kersten <
> martin.kersten...@gmail.com> wrote:
>
> Thats it. Simple straight
On Tue, 24 Sep 2013 04:13:27 -0300, Martin Kersten
wrote:
Thats it. Simple straight forward and does the job. And I only use it for
some spare situations where I have to or just dont know what the given
implementation will look like
since I will have processing tasks that do not use the dat
Well I might have misunderstood the user guide here but the following is
true by checking the code:
1. The first (!) encountered constructor with a given annotation is choosen.
Since the JVM makes no statement about the ordering of methods (and
constructors) in the class definition after the
On Mon, 23 Sep 2013 17:07:54 -0300, Martin Kersten
wrote:
Yeah thats what I was thinking about exactly. This way I can get rid of
the pesti constructor injection.
Pesti? What is that? If you were talking Brazilian Portuguese, I'd knew. :D
Does anyone knows if the autobuild / build proces
Well I knew that with the constructor it is exactly what the internal
method createMethodInvocationPlan is doing. The sad thing is I have to
recreate it since its internal.
This ignore Inject works for me since I use autobild method of the regitry.
PS: Everyone is aware of the @Autobuild method?
You can still use a constructor/constructor injection when registering your
service in your module, if you want. (In fact the auto binding looks for
the constructor with the most parameters, if none are marked with @Inject.)
Or, you can use Field Injection. Not sure if you can use both, probably
Thanks daniel. I will check the testify stuff in a real example.
2013/9/23 Daniel Jue
> I don't have spare minutes at the moment, I just want to drop these links
> for you to look at (if you haven't seen them already). Hope it helps.
>
> http://blog.tapestry5.de/index.php/2010/11/16/improved-t
I don't have spare minutes at the moment, I just want to drop these links
for you to look at (if you haven't seen them already). Hope it helps.
http://blog.tapestry5.de/index.php/2010/11/16/improved-testing-facilities/
and then this one
http://blog.tapestry5.de/index.php/2010/11/18/find-your-el
Yeah thats what I was thinking about exactly. This way I can get rid of the
pesti constructor injection.
Does anyone knows if the autobuild / build process fails if a property
annotated @inject could not be injected? Kind of should be but I am quite
not sure... .
2013/9/23 Daniel Jue
> You'll
You'll probably find better examples online, but in my Test classes I
usually have a method like this:
private MyDAO dao;
@BeforeClass
public void beforeClass() {
// TODO Auto-generated constructor stub
System.out.println("MyDAOTest");
Registry registry;
RegistryBuilder builder = new RegistryBui
Is there anything to aid me with the usual service test. Currently I use
constructors to ease setup of the services. I will try out providing a test
module setting up the services and use tapestry IOC to create those. Should
have done so more early on, but wanted it simple first. But now when I hav
http://tapestryxpath.sourceforge.net/ implements XPath over Tapestry
Element objects.
On Mon, 23 Sep 2013 14:34:34 -0300, Daniel Jue wrote:
I don't have spare minutes at the moment, I just want to drop these links
for you to look at (if you haven't seen them already). Hope it helps.
http:/
Problems nope. I just habe to overhowle the system and wonder what people
nicht use. I will check your base clase out. Thanks for sharing.
Am 23.09.2013 18:12 schrieb "Dmitry Gusev" :
> I use JUnit for unit testing with T5 services, and TestNG for (smoke)
> integration testing my apps with URLs.
>
I use JUnit for unit testing with T5 services, and TestNG for (smoke)
integration testing my apps with URLs.
All my JUnit test classes inherited from BaseIntegrationTest (
https://gist.github.com/dmitrygusev/6672859),
all TestNG classes inherited from a copy of SeleniumTestCase with with this
patc
I want some real hands on experiences. So please if you have any please
provide.
I am currently reworking the testing settup since the maven stuff is to
slow for my program test cycle.
Since I wont use testng I need to rewrite some test code. I need to do unit
testing in java
since I program in j
1045711.n5.nabble.com/Testing-Tapestry-without-Seleinum-tp5717383p5717390.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional comm
7;d rather just try to test this outside of Selenium.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Testing-Tapestry-without-Seleinum-tp5717383p5717387.html
Sent from the Tapestry - User mailing list archiv
page outside of Selenium?
> If so, how did you set something that is marked @Property?
>
> Thanks!
> Melanie
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Testing-Tapestry-without-
uld allow me to circumvent using Selenium to set
them via the slider).
Has anyone out there tried testing a page outside of Selenium?
If so, how did you set something that is marked @Property?
Thanks!
Melanie
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Testing-T
ember 2011 18:55
To: Tapestry users
Subject: Re: testing Tapestry applications (in general)
2011/11/04 15:01, Markus Johnston:
> We very much would like to start writing view and controller tests. I
> was wondering what other Tapestry users are doing, as far as testing
> is concerned. Wha
2011/11/04 15:01, Markus Johnston:
> We very much would like to start writing view and controller tests. I was
> wondering what other Tapestry users are doing, as far as testing is
> concerned. What problems have you run into? What tools or approaches have
> you found that work especially well?
Thanks for the info. I'll probably check out newer versions of HTMLUnit
then, to see if it is an option for us.
On Fri, Nov 4, 2011 at 12:48 PM, Kalle Korhonen
wrote:
> On Fri, Nov 4, 2011 at 10:25 AM, Markus Johnston
> wrote:
> > I've found HTMLUnit, in the past to be utterly awful. At least
On Fri, Nov 4, 2011 at 10:25 AM, Markus Johnston wrote:
> I've found HTMLUnit, in the past to be utterly awful. At least with our
> web app (lots of ajax) HTMLUnit struggled and I ran into a lot of bugs.
Yeah, I've heard that a few times and my own experience in the past
was also that HTMLUnit c
I've found HTMLUnit, in the past to be utterly awful. At least with our
web app (lots of ajax) HTMLUnit struggled and I ran into a lot of bugs.
On Fri, Nov 4, 2011 at 9:18 AM, Kalle Korhonen
wrote:
> Your mileage may vary but for my perspective, see
>
> http://docs.codehaus.org/display/TYNAMO/20
Your mileage may vary but for my perspective, see
http://docs.codehaus.org/display/TYNAMO/2010/07/30/Full+web+integration+testing+in+a+single+JVM.
For service level tests, I tend to use Mockito a lot.
Kalle
On Fri, Nov 4, 2011 at 7:01 AM, Markus Johnston wrote:
> We have been struggling (in my
We have been struggling (in my opinion) with a strategy to properly and
completely test our web application (developed using Tapestry). We have
some unit tests, but they are all centered on the code closer to the model.
We have very few, if any, view and controller tests. We made some
attempts i
yes. I actually sorted the problem. I had forgotten to include servet api as
a provided dependency in my pom.xml.
Thanks Mark.
Julien.
2011/7/14 Mark
> Do you actually have a page in com.cheetah.web.pages that is called
> CreateJobPosting that you can view in a web browser when the app is
> runn
Do you actually have a page in com.cheetah.web.pages that is called
CreateJobPosting that you can view in a web browser when the app is
running?
Mark
On Tue, Jul 12, 2011 at 12:11 PM, Julien Martin wrote:
> *public class CreateJobPosting{
>
> @Test
> public void test1() {
> String
Hello,
I am trying to follow the unit testing tutorial provided here:
http://tapestry.apache.org/unit-testing-pages-or-components.html and I am
not able to run the tests from Intellij. Here is what I get:
*com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4
tests.CreateJobPosting
log
On Thu, Jan 27, 2011 at 1:54 AM, Ulrich Stärk wrote:
> Since these are edit or delete links this would be ambigous. I guess there
> will be dozens of links called edit on that page.
Hm. So do you know anything about the item you are trying to delete
or edit? If you know the id, you can work that
Since these are edit or delete links this would be ambigous. I guess there will be dozens of links
called edit on that page.
On 26.01.2011 15:49, Mark wrote:
On Wed, Jan 26, 2011 at 5:14 AM, Matias Moran wrote:
But, the problem here is that I don't know the position in the Grid of the
eleme
On Wed, Jan 26, 2011 at 5:14 AM, Matias Moran wrote:
> But, the problem here is that I don't know the position in the Grid of the
> elements. So, is there a way to iterate the rows of a Grid, looking for a
> particular element?
Do you know the name of the link? Can you use something like:
clic
ate the rows of a Grid, looking for a
particular element?
Thanks for the responses! Cheers!
Matias.
--- El mar 25-ene-11, Mark escribió:
> De: Mark
> Asunto: Re: Testing Tapestry webapps with Selenium
> Para: "Tapestry users"
> Fecha: martes, 25 de enero de 2011, 20:36
;
>>
>> --- El mar 25-ene-11, Thiago H. de Paula Figueiredo
>> escribió:
>>
>> > De: Thiago H. de Paula Figueiredo
>> > Asunto: Re: Testing Tapestry webapps with Selenium
>> > Para: "Tapestry users"
>> > Fecha: mar
; if there is no other solution, it is better than nothing.
>
> Thanks again! Greetings!
>
> Matias.
>
>
> --- El mar 25-ene-11, Thiago H. de Paula Figueiredo
> escribió:
>
> > De: Thiago H. de Paula Figueiredo
> > Asunto: Re: Testing Tapestry webapps with
gueiredo
> Asunto: Re: Testing Tapestry webapps with Selenium
> Para: "Tapestry users"
> Fecha: martes, 25 de enero de 2011, 17:57
> On Tue, 25 Jan 2011 17:51:53 -0200,
> Matias Moran
> wrote:
>
> > The code generated by Selenium is something like
> this:
>
On Tue, 25 Jan 2011 17:51:53 -0200, Matias Moran
wrote:
The code generated by Selenium is something like this:
selenium.click("//a[@id='modifyUserLink']/div");selenium.waitForPageToLoad("3");
When inside a loop, if you don't provide the id for your ActionLinks,
they'll generate differ
Thanks for the quick response!
Here is a piece of the code I'm trying to test:
The code generated by Selenium is something like this:
selenium.click("//a[@id='modifyUserLink']/div");selenium.waitForPageToLoad("3");
But it always fails, giving the err
On Tue, 25 Jan 2011 17:20:38 -0200, Matias Moran
wrote:
Dear Tapestry users, how are you?
Hi!
One of those issues appear when trying to click on an actionLink inside
a Grid component, lets say a link to Delete or Modify one of the rows.
The error is always the same:
"com.thoughtworks
Yes, it is possible. If you provide your code, probably we'll be able to
help you.
On Tue, Jan 25, 2011 at 8:20 PM, Matias Moran wrote:
> Dear Tapestry users, how are you?
>
> I'm writing because in the last few days we have been implementing
> integration tests using Selenium, but we have found
Dear Tapestry users, how are you?
I'm writing because in the last few days we have been implementing integration
tests using Selenium, but we have found a few issues that I'm not sure if these
are our mistakes, or maybe it is not possible to be tested.
One of those issues appear when trying to
Hugo,
Have you run into any snags using this in the past month?
Carlos
--
View this message in context:
http://www.nabble.com/Integration-testing-Tapestry-4-applications-tf3927683.html#a12283397
Sent from the Tapestry - User mailing list archive at Nabble.com
Yes, I had the same impression. Also JNDI is not in jetty but in jetty-plus.
On 15/06/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
Regarding the JNDI lookup, i actually don't know if it's even possible
like this, because the tapestry-test library still uses Jetty 5. Even if
it did use Jetty, i don'
Regarding the JNDI lookup, i actually don't know if it's even possible
like this, because the tapestry-test library still uses Jetty 5. Even if
it did use Jetty, i don't think the tapestry-test API allows you to add
resources.
m...i'll have to dig a little more into that...
Renat Zubairov
Hi
Nice approach, however we are using Cruise Control that runs HTTPUnit
based tests on the reference environment where latest version of the
subsystem was recently reinstalled (also by cruise control, maven and
cargo).
This has an advantage of the independent database schema (our
reference envir
Thought i'd share my experience with this.
Hope to get some comments with improvement and more ideas.
http://blogs.logical-software.com/roller/logicalme/entry/1
Cheers,
Hugo
Thanks for you advice. I think I'm a bit further forward.
viewProductDetail is actually a Tapestry component and is instantiated
using the com.javaforge.tapestry.testng.TestBase; library.
I have removed the expect call from my testGetSaving method and moved
the replay/verify to my setUp metho
Hmm .I can't pinpoint the exact problem but if it were up to me I would
start out by changing things to look more like:
public void setUp() {
...
webRequest = createMock(WebRequest.class);
expect(webRequest.getSession(true)).andReturn(webSession);
...
}
public void testGetSaving
Hi,
Thanks for you quick reply.
Sorry, my fault, I must have deleted these while removing my sysouts for
this post.
I have tried using these but unfortunately receive the same exception. I
have also done several searches on google, which seems to suggest the
exception is caused by the omiss
You still need to call the replay() / verify() easymock methods, which can
be examined further here:
http://easymock.org/EasyMock2_2_Documentation.html
I think getSession(boolean) also returns a value - so you'd have to define
what that return value is with a statement like:
expect(webRequest.g
Hi All,
We have recently upgrading one of our apps to Tapestry 4.1 and I have
been asked to write some unit tests for the existing components.
I am new to Tapestry, TestNG and Easymock, so please bear with me.
I am trying to get the test to run through an if statement, but I keep
getting the
> Detlef
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Montag, 27. November 2006 15:05
> To: users@tapestry.apache.org
> Subject: RE: Perfomance Testing Tapestry App
>
> I second that advice. After 30-45 minu
-75A89AA36495&displaylang=en
Although it is from Microsoft, it is a really nice tool.
Cheers,
Detlef
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Montag, 27. November 2006 15:05
To: users@tapestry.apache.org
Subject: RE: Perfomance Testing Tapestry App
I se
: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, November 23, 2006 9:17 AM
To: users@tapestry.apache.org
Subject: RE: Perfomance Testing Tapestry App
I would highly recommend Jakarta JMeter. You can use it as a proxy to
record some user actions, and then play back as many users as you
more.
-Greg
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Dennis Sinelnikov
Sent: Wednesday, November 22, 2006 10:48 PM
To: users@tapestry.apache.org
Subject: Perfomance Testing Tapestry App
Hey guys,
I have some performance requirements and would like to gather
news [mailto:[EMAIL PROTECTED] Behalf Of Dennis Sinelnikov
Sent: Wednesday, November 22, 2006 10:48 PM
To: users@tapestry.apache.org
Subject: Perfomance Testing Tapestry App
Hey guys,
I have some performance requirements and would like to gather input from
the tapestry community on what is the
22, 2006 10:48 PM
To: users@tapestry.apache.org
Subject: Perfomance Testing Tapestry App
Hey guys,
I have some performance requirements and would like to gather input from
the tapestry community on what is the right approach. For example, how
do I properly simulate X number of users? I have
Hey guys,
I have some performance requirements and would like to gather input from
the tapestry community on what is the right approach. For example, how
do I properly simulate X number of users? I have some UIs that require
user input. I guess I can tailor http requests.
Any guidance/lin
f
HtmlUnit.
Forwarded Message
From: Marc Guillemot <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [Htmlunit-user] Testing Tapestry
Date: Fri, 10 Nov 2006 10:01:10 +0100
I can't say anything on tapestry but htmlunit's AJAX sup
FYI, for people using HtmlUnit with 4.1 and Tacos. Marc is the author of
HtmlUnit.
Forwarded Message
From: Marc Guillemot <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [Htmlunit-user] Testing Tapestry
Date: Fri, 10 Nov 2006 10:01:10 +0
now. It is really nice
to
> > > work
> > > with, especially with Hivemind tightly integrated ... hence I get to
> > > easily
> > > unit test my POJOs (domain objects, etc).
> > >
> > > However, I still have problem unit testing the Tapestry pa
gt; > application. I did try to use HtmlUnit, but that that's more like
> > integration testing. It requires the tomcat and database server to be
> > running. I am wondering what are other Tapestry users are doing to
"unit
> > testing" Tapestry pages without need to use
still have problem unit testing the Tapestry pages of the
> application. I did try to use HtmlUnit, but that that's more like
> integration testing. It requires the tomcat and database server to be
> running. I am wondering what are other Tapestry users are doing to "unit
> t
ication. I did try to use HtmlUnit, but that that's more like
integration testing. It requires the tomcat and database server to be
running. I am wondering what are other Tapestry users are doing to "unit
testing" Tapestry pages without need to use the servlet container ? This
would m
use HtmlUnit, but that that's more like
integration testing. It requires the tomcat and database server to be
running. I am wondering what are other Tapestry users are doing to "unit
testing" Tapestry pages without need to use the servlet container ? This
would make development much fa
72 matches
Mail list logo