Re: Basic DAO-"Service"-Test-Setup

2012-02-10 Thread Kalle Korhonen
gt; be a more intuitive and easier way to setup testing. This is my first > contact with an IoC-Container so maybe its a very basic question: > > What I want to test: DAOs configured as tapestry-services using hibernate. > My question: how can these services be tested easily? > My Pro

Basic DAO-"Service"-Test-Setup

2012-02-10 Thread stebac
my first contact with an IoC-Container so maybe its a very basic question: What I want to test: DAOs configured as tapestry-services using hibernate. My question: how can these services be tested easily? My Problem: The implementation of the DAO is using a hibernate Session to accomplish all tasks

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread Taha Hafeez Siddiqi
try-release-version} > > > > org.hibernate > hibernate > 3.2.2.ga > > > > org.hibernate > hibernate-annotations > 3.2.1.ga > > > > c3p0 > c3p0 > 0.9.0 >

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread tompeter
ry tapestry-hibernate ${tapestry-release-version} org.hibernate hibernate 3.2.2.ga org.hibernate hibernate-annotations 3.2.1.ga c3p0 c3p0 0.9.0 geronimo-spec geronimo

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread tompeter
.1.ga c3p0 c3p0 0.9.0 geronimo-spec geronimo-spec-jta 1.0-M1 test mysql mysql-connector-java 3.1.12 org.apache.tapestry tapestry-yuicompressor ${tapestry-release-ve

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread Thiago H. de Paula Figueiredo
On Wed, 08 Feb 2012 14:48:09 -0200, tompeter wrote: Hi Thiago, Hi! I don't understand how this could happen, as packaging the application with maven (with outcommented test) to a war file creates a working application. This doesn't mean you have wrong dependencies. Your s

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread tompeter
Hi Thiago, thanks a lot for your reply! I don't understand how this could happen, as packaging the application with maven (with outcommented test) to a war file creates a working application. Could you give me a hint where I might have messed it up? Thanks a lot! Tom -- View this messa

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread Thiago H. de Paula Figueiredo
On Wed, 08 Feb 2012 13:37:48 -0200, tompeter wrote: Hi everyone, Hi! java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.Re

Unit-Test and HibernateSessionSource

2012-02-08 Thread tompeter
Hi everyone, I am currently trying to test a Tapestry page. The page Instantiation already fails because of hibernate errors. I have remapped configuration for the test, so that no hibernate session needs to be injected. still, i have the following error output: Failed tests: simple_test

Re: PageTester can't init JPAModule when run mvn test

2011-12-16 Thread Igor Drobiazko
The message "No PersistenceProvider implementation available in the runtime environment." means that no JPA implementor like EclipseLink is not available on the classpath. On Fri, Dec 16, 2011 at 10:50 AM, Bo Gao wrote: > Hi, > How can I test my services using TestNG? > &g

PageTester can't init JPAModule when run mvn test

2011-12-16 Thread Bo Gao
Hi, How can I test my services using TestNG? I use PageTester to start tapestry and call getService to get my service instance. This works when I run in a main function. But I write some test class use TestNG, when I call mvn test in shell. I get the following Exceptions. &qu

Re: 2 test failures building tapestry-core trunk

2011-08-12 Thread Howard Lewis Ship
I've been seeing this intermittently as well; it is a timing problem since the content fades out shortly after being added. Not sure how to fix it without simply removing the test entirely. On Fri, Aug 12, 2011 at 11:27 AM, Jon Williams wrote: > Hi Tapestrians, > > I've b

2 test failures building tapestry-core trunk

2011-08-12 Thread Jon Williams
y provider when clearing the provider. This may indicate that you have multiple IoC Registries. [INFO] log Shutdown hook executing 1338 tests completed, 2 failures FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':tapestry-core:test'. #1 *ajax_se

Re: Exception starting filter test

2011-08-07 Thread pradeeppantula
Hi Raj, Is your problem solved. I'm also facing similar issues while deployment in jboss5.1.0. Please help me in this regard, -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-starting-filter-test-tp3407524p4673436.html Sent from the Tapestry - User mailing

Re: Grinder stress test

2011-07-11 Thread atcach
This made the Trick ! Thank you very much !! Regards ! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grinder-stress-test-tp4564501p4575010.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Grinder stress test

2011-07-08 Thread Josh Canfield
Ajax support requires JavaScript. Test request.isXHR in your method before returning a multi zone update. On Jul 8, 2011 5:02 AM, "atcach" wrote: > Hi, > I'm doing some stress testing with grinder on a tapestry 5 project with > multizones. > I have multiple forms in th

Re: Grinder stress test

2011-07-08 Thread Andreas Andreou
http://tawus.wordpress.com/2011/04/16/tapestry-magic-2-ajax-with-graceful-degradation/ On Fri, Jul 8, 2011 at 16:16, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Jul 2011 09:02:18 -0300, atcach wrote: > >> Hi, > > Hi! > >> classpath:com/tida/servir/pages/ABMUsuario.tml, line 85]}]. Return t

Re: Grinder stress test

2011-07-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Jul 2011 09:02:18 -0300, atcach wrote: Hi, Hi! classpath:com/tida/servir/pages/ABMUsuario.tml, line 85]}]. Return type org.apache.tapestry5.ajax.MultiZoneUpdate can not be handled. Tapestry only handles AJAX-related return types (MultiZoneUpdate included) if the request has t

Grinder stress test

2011-07-08 Thread atcach
.tapestry5.ajax.MultiZoneUpdate can not be handled. Can anybody help me in any direction ? Regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grinder-stress-test-tp4564501p4564501.html Sent from the Tapestry - User mailing list archive at

Re: XHR request to return a test/xml payload

2011-04-04 Thread Richard Hill
> > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/XHR-request-to-return-a-test-xml-payload-tp4277254p4277254.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > ---

Re: XHR request to return a test/xml payload

2011-04-04 Thread David Uttley
l payload. I need to > dynamically make the URL string in the browser to send to the server. What > should the format of that URL be? > > Thanks > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/XHR-request-to-return-a-test-xml-payload-t

Re: XHR request to return a test/xml payload

2011-04-04 Thread Thiago H. de Paula Figueiredo
On Sat, 02 Apr 2011 01:53:47 -0300, coriolisguy wrote: Hi All, Hi! I have an ajax request that needs to return a text/xml payload. Return a StreamResponse (TextStreamResponse will probably be useful to you. I need to dynamically make the URL string in the browser to send to the serve

Re: XHR request to return a test/xml payload

2011-04-03 Thread based2
http://code.google.com/p/tapestry-addons/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/XHR-request-to-return-a-test-xml-payload-tp4277254p4278996.html Sent from the Tapestry - User mailing list archive at Nabble.com

XHR request to return a test/xml payload

2011-04-01 Thread coriolisguy
-test-xml-payload-tp4277254p4277254.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Re: Exception starting filter test

2011-03-07 Thread raj1jaiswal
Hi, Thanks for reply.I have done same think whatever you suggested me but i still getting same exception.Please anybody provide me solution. Thanks Raj Jaiswal MCA SCJP1.6. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-starting-filter-test

Re: Exception starting filter test

2011-03-07 Thread Michal Gruca
://tapestry-users.832.n2.nabble.com/Exception-starting-filter-test-tp6083791p6096738.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For

Re: Exception starting filter test

2011-03-06 Thread raj1jaiswal
t;app", but you can use any name you want. Tapestry uses this to determine what module class name to look for . Please find solution, Thanks in Advance Raj Jaiswal MCA SCJP1.6 -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-starting-filter-test-tp3407524p34

Re: Exception starting filter test

2011-03-06 Thread raj1jaiswal
Hi bobharner , Thanks for reply. Raj jaiswal MCA SCJP. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-starting-filter-test-tp3407524p3411937.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Exception starting filter test

2011-03-06 Thread Bob Harner
://tapestry.1045711.n5.nabble.com/file/n3410456/web.xml web.xml > Hi, > I have attached web.xml. > Thanks > Raj jaiswal > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Exception-starting-filter-test-tp3407524p3410456.html > Sent

Re: Exception starting filter test

2011-03-04 Thread raj1jaiswal
http://tapestry.1045711.n5.nabble.com/file/n3410456/web.xml web.xml Hi, I have attached web.xml. Thanks Raj jaiswal -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-starting-filter-test-tp3407524p3410456.html Sent from the Tapestry - User mailing list archive at

Re: Exception starting filter test

2011-03-04 Thread Gillespie59
Can you send to us your web.xml . Emmanuel -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-starting-filter-test-tp3407524p3409390.html Sent from the Tapestry - User mailing list archive at Nabble.com

Exception starting filter test

2011-03-02 Thread raj1jaiswal
Hi, I am developing very small program in tapestry its running fine but i am getting below exception.Please anybody help to solve this problem. Exception starting filter test java.lang.NullPointerException at org.apache.tapestry5

Re: Test Selenium with Tapestry 5.2.4

2011-02-07 Thread Gillespie59
Thanks Mark We have just found the solution. I had the wrong testng version in my pom.xml . -- View this message in context: http://tapestry.1045711.n5.nabble.com/Test-Selenium-with-Tapestry-5-2-4-tp3370957p3374542.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Test Selenium with Tapestry 5.2.4

2011-02-07 Thread Mark
t; > I really thank to all of you! > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Test-Selenium-with-Tapestry-5-2-4-tp3370957p3373989.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --

Re: Test Selenium with Tapestry 5.2.4

2011-02-07 Thread Gillespie59
Does anyone have a solution to my problem ? I really thank to all of you! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Test-Selenium-with-Tapestry-5-2-4-tp3370957p3373989.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: How to test ActivationRequestParameter using PageTester

2011-01-23 Thread Taha Hafeez
Hi What i do is create a main test page say "TestIndex" Now say I have a page PageNeedingContext and it needs a context, I add this to my TestIndex page Page Needing Context Now my test will be something like @BeforeClass public void init() { pageTester = new

Re: How to test ActivationRequestParameter using PageTester

2011-01-23 Thread Angelo C.
if the page contains some injected services, how to use PageTester with this kind of page? thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-test-ActivationRequestParameter-using-PageTester-tp3353447p3353466.html Sent from the Tapestry - User mailing list

Re: How to test ActivationRequestParameter using PageTester

2011-01-23 Thread Taha Hafeez
Hi When I have to test a page with context parameter, I create another page say Index which has a page link to this page along with the context Page to Test and then load Index page and click on the pagelink Hope it helps regards Taha On Sun, Jan 23, 2011 at 1:44 PM, Jun Tsai wrote: >

How to test ActivationRequestParameter using PageTester

2011-01-23 Thread Jun Tsai
hi, page(scala): class Start{ @ActivationRequestParameter("name") private var name:String = _ def onActivate():Object={ return new TextStreamResponse("text/plain",name) } } test (scala): val appPackage = "mq.api"; val appNa

How to test a redirection

2011-01-07 Thread Taha Hafeez
Hi I have a secured page which when requested without authentication redirects to a login page. I want to test this using PageTester. I tried pageTester.renderPageAndReturnResponse().getRedirectURI() but it returns null. Now I am testing by checking the content of the returned page... Is there

Re: T5 page request return blank layout under heavy load test

2010-12-02 Thread dennisdeo81
Turn out to be "-XX:+UseCompressedOops" cause the problem. Problem solved. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-page-request-return-blank-layout-under-heavy-load-test-tp3277134p3289579.html Sent from the Tapestry - User mailing list archive at

Re: T5 page request return blank layout under heavy load test

2010-11-26 Thread Kalle Korhonen
message in context: > http://tapestry.1045711.n5.nabble.com/T5-page-request-return-blank-layout-under-heavy-load-test-tp3277134p3278183.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > >

Re: T5 page request return blank layout under heavy load test

2010-11-24 Thread dennisdeo81
-return-blank-layout-under-heavy-load-test-tp3277134p3278183.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Re: T5 page request return blank layout under heavy load test

2010-11-24 Thread dennisdeo81
suggestion? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-page-request-return-blank-layout-under-heavy-load-test-tp3277134p3278118.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: T5 page request return blank layout under heavy load test

2010-11-24 Thread dennisdeo81
11.n5.nabble.com/T5-page-request-return-blank-layout-under-heavy-load-test-tp3277134p3278100.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.or

Re: T5 page request return blank layout under heavy load test

2010-11-23 Thread Kalle Korhonen
h should normally: > > Tapestry.onDOMLoaded(function() { > Tapestry.init({"linkZone":[["forgotPassword","loginZone","/duc/login.forgotpassword"]],"zone":[{"update":"show","element":"loginZone"}]}); > }

Re: T5 page request return blank layout under heavy load test

2010-11-23 Thread Thiago H. de Paula Figueiredo
On Tue, 23 Nov 2010 15:07:33 -0200, dennisdeo81 wrote: Hi, Hi! I recently have an application develop with tapestry 5.1 deploy on Weblogic + oracle database. Have you tried Tapestry 5.2(.4)? Since the 5.2 alphas, Tapestry doesn't use a page pool anymore, and this can be a factor when

T5 page request return blank layout under heavy load test

2010-11-23 Thread dennisdeo81
Also it's running on 4 vcpu, 12G memory server, so it only use nearly 50% of cpu, 40% or memory, 40 connections to the database whilst the load test. Anyone have any idea? Helps are much appreciated. Many thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.co

Re: If-test doesn't like testing a java.lang.Object for not null

2010-08-30 Thread LLTYK
bject before I actually had this event handler in place, to set off the if block (you know how that went...). -- View this message in context: http://tapestry-users.832.n2.nabble.com/If-test-doesn-t-like-testing-a-java-lang-Object-for-not-null-tp5477845p5478857.html Sent from the Tapestry Users ma

Re: If-test doesn't like testing a java.lang.Object for not null

2010-08-30 Thread Josh Canfield
esults in false just fine. But doing "obj = new Object()" > makes it explode. Oddly enough, "obj = new Integer(1)" (and presumably any > other subclass of Object), works just fine. > > > An unexpected application exception has occurred. > Render queue err

If-test doesn't like testing a java.lang.Object for not null

2010-08-30 Thread LLTYK
ender queue error in BeginRender[Page:layout.if_9]: Failure reading parameter 'test' of component Page:layout.if_9: Could not find a coercion from type java.lang.Object to type java.lang.Boolean. Available coercions: Double --> Float, Float --> Double, Long --> Boolean, Long --> Byt

Re: How to using jmockit or dbunit to test DAO (hibernate) in tapestry?

2010-08-08 Thread cleverpig
DAO extends T5DAOTestCase { ... } Enjoy this~ On Sat, Aug 7, 2010 at 4:34 AM, cleverpig wrote: > I checked out T5-hibernate-core source code,there's possible to make a > test module for hibernate-core module. > in HibernateCoreModule: > > public class HibernateCore

Re: How to using jmockit or dbunit to test DAO (hibernate) in tapestry?

2010-08-06 Thread cleverpig
I checked out T5-hibernate-core source code,there's possible to make a test module for hibernate-core module. in HibernateCoreModule: public class HibernateCoreModule { public static void bind(ServiceBinder binder) { binder.bind(HibernateTransactionDecorator.

Re: How to using jmockit or dbunit to test DAO (hibernate) in tapestry?

2010-08-05 Thread based2
http://maven.apache.org/guides/mini/guide-building-for-different-environments.html http://maven.apache.org/guides/introduction/introduction-to-profiles.html == http://tapestry.apache.org/tapestry5/tapestry-test/ http://tapestry.formos.com/projects/tapestry-testify/ ref: http://wiki.apache.org

How to using jmockit or dbunit to test DAO (hibernate) in tapestry?

2010-08-04 Thread cleverpig
JMockit allows developers to write unit and integration tests without the testability issues typically found with other mocking tools. It support hibernate mock too. Sounds like very well fit with tapestry. T5 has test ability with inject dependency itself: it can load RegistryBuilder from test

T5.2.0: Unit test using PageTester gets null pointer exception using Flash persistence.

2010-07-13 Thread Josh Canfield
I'm writing a unit test for a patch and I'm getting a NullPointerException in an interesting place. I have a property defined like this: @Property @Persist(org.apache.tapestry5.PersistenceConstants.FLASH) private static Map selected; and in method public boolean isObje

test

2010-06-26 Thread Luu Tuan Cuong
test - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Obtaining Messages reference in my test

2009-11-18 Thread Joost Schouten (ml)
t the an exception [1]. does anyone know how to obtain a reference to the Messages service from the test enviroment? Cheers, Joost [1]: java.lang.RuntimeException: No service implements the interface org.apache.tapestry5.ioc.Messages. at org.apache.tape

Re: How to write a Testify test for an onActivate() that returns a URL?

2009-10-29 Thread Paul Field
olle.hal...@gmail.com wrote on 09/10/2009 16:24:43: > I'm struggling with writing a test for a page that just redirects to an > external page. > > The page basically looks like this: > > public class Redirecter { > > @Inject > private UrlManager urlManager;

How to write a Testify test for an onActivate() that returns a URL?

2009-10-09 Thread Olle Hallin
Hi, I'm struggling with writing a test for a page that just redirects to an external page. The page basically looks like this: public class Redirecter { @Inject private UrlManager urlManager; public Object onActivate() { java.net.URL url = new URL(urlManager.getExternalUrlFor

Re: Unit test form submission

2009-09-02 Thread Ulrich Stärk
Have a look at the org.apache.tapestry5.IntegrationTests class in src/test/. Uli Sebastian Hennebrueder schrieb: Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value

Unit test form submission

2009-09-02 Thread Sebastian Hennebrueder
Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value and to test that the Hidden component throws an exception. Shall I use a PageTester http://tapestry.apache.org

Unit test form submission

2009-09-02 Thread Sebastian HennebrŸüder
Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value and to test that the Hidden component throws an exception. Shall I use a PageTester http://tapestry.apache.org

Re: Maven test of tapestry core fails

2009-09-02 Thread Sebastian Hennebrueder
0) at org.testng.TestRunner.runWorkers(TestRunner.java:712) at org.testng.TestRunner.privateRun(TestRunner.java:582) at org.testng.TestRunner.run(TestRunner.java:477) at org.testng.SuiteRunner.runTest(SuiteRunner.java:324) at org.testng.SuiteRunner.runSequentially(S

Re: Maven test of tapestry core fails

2009-09-02 Thread Howard Lewis Ship
t what exactly is going wrong. I'm guessing some > maven thing. > > Uli > > Sebastian Hennebrueder schrieb: >> >> Hello, >> if I run the mvn test in tapestry-core, I get the following test failures >> >> failed tests: >> >>  stylesheet_link(or

Re: Maven test of tapestry core fails

2009-09-02 Thread Ulrich Stärk
I ran the integration tests from within eclipse this morning and everything was fine. Try to find out what exactly is going wrong. I'm guessing some maven thing. Uli Sebastian Hennebrueder schrieb: Hello, if I run the mvn test in tapestry-core, I get the following test failures failed

Maven test of tapestry core fails

2009-09-02 Thread Sebastian Hennebrueder
Hello, if I run the mvn test in tapestry-core, I get the following test failures failed tests: stylesheet_link(org.apache.tapestry5.internal.services.PartialMarkupDocumentLinkerTest) client_field_format_validation(org.apache.tapestry5.integration.IntegrationTests

Re: Tapestry web framework evaluation and test

2009-08-14 Thread Juan E. Maya
Very nice Sebastian ! thanks! On Fri, Aug 14, 2009 at 8:24 PM, Sebastian Hennebrueder wrote: > Hello, > > I have finally finished the evaluation of Tapestry. > > I would like to thank you for your feedbacks, which helped a lot to write > the article. > > You can find the article on my website. > >

Tapestry web framework evaluation and test

2009-08-14 Thread Sebastian Hennebrueder
Hello, I have finally finished the evaluation of Tapestry. I would like to thank you for your feedbacks, which helped a lot to write the article. You can find the article on my website. http://www.laliluna.de/tapestry-webframework-evaluation-test.html It is part of the web framework series.

Re: Testify injection only works once per test

2009-07-31 Thread Paul Field
Paul Field wrote on 28/07/2009 09:35:05: > rolfst wrote on 27/07/2009 14:13:51: > > Yes there are three groups involved in the suite. > > How ever no other test from other groups are available. > > It seems that when I remove the reference to groups in my testng.x

Re: Testify injection only works once per test

2009-07-28 Thread Paul Field
rolfst wrote on 27/07/2009 14:13:51: > Hi Paul, > > Yes there are three groups involved in the suite. > How ever no other test from other groups are available. > It seems that when I remove the reference to groups in my testng.xml it > works fine. > > For now a workabl

Re: Testify injection only works once per test

2009-07-27 Thread rolfst
Hi Paul, Yes there are three groups involved in the suite. How ever no other test from other groups are available. It seems that when I remove the reference to groups in my testng.xml it works fine. For now a workable solution it looks like a bug though not sure wether testng or testify

Re: Testify injection only works once per test

2009-07-27 Thread Paul Field
rolfst wrote on 27/07/2009 13:26:23: > > @Test(groups = "rbudisplay") >public void test_rbuselection_fulltype() throws Exception >{ Oooo... it might be something to do with groups. Is your suite specifying that only certain groups are run? (my brain aches

Re: Testify injection only works once per test

2009-07-27 Thread rolfst
Hi Paul, I have this test method @Inject private TestPageResultRetriever retriever; @Inject private RBUTypeRepository repository; @Override protected void doSetUp() throws Exception { } @Test(groups = "rbudi

Re: Testify injection only works once per test

2009-07-27 Thread Christian Gruber
On Jul 27, 2009, at 6:25 AM, Paul Field wrote: If you are setting up state that you want to be fresh for each test, then you should consider using Testify's pertest scope: http://tapestry.formos.com/nightly/tapestry-testify/#Per-test_scope Ah... this is what I was thinking - thank

Re: Testify injection only works once per test

2009-07-27 Thread Paul Field
then it's best to use @BeforeMethod, since you may be > setting state on these which needs to be fresh for each test. As I understand the Tapestry IOC, it shouldn't make any difference. Generally, service objects are actually proxy objects; with non-singleton scopes the proxy object

Re: Testify injection only works once per test

2009-07-27 Thread Christian Edward Gruber
e on these which needs to be fresh for each test. cheers, Christian. On 2009-07-27, at 05:00 , Paul Field wrote: Hi Rolf, Hi I am using Testify to inject a fake repository into my testng test but I come op to a problem. when i first access the fake repository it gets injected however the se

Re: Testify injection only works once per test

2009-07-27 Thread Paul Field
Hi Rolf, > Hi I am using Testify to inject a fake repository into my testng test but I > come op to a problem. > > when i first access the fake repository it gets injected however the second > time i access the repository I get a null pointer exception. > > Now comes

Testify injection only works once per test

2009-07-26 Thread rolfst
Hi I am using Testify to inject a fake repository into my testng test but I come op to a problem. when i first access the fake repository it gets injected however the second time i access the repository I get a null pointer exception. Now comes another strange thing when i debug everything

Re: Spring, Tapestry-Test, PageTester and Extension

2009-05-29 Thread Paul Field
se fake services and I exclude the module(s) with the real services. The Fake services have extended interfaces that allow fake data to be pushed into them. Obviously, you have to be careful when the IOC container is shared by all the tests that the data you push into the fakes in one test d

Re: Spring, Tapestry-Test, PageTester and Extension

2009-05-28 Thread Geoffrey Wiseman
On Thu, May 28, 2009 at 5:18 PM, Geoffrey Wiseman < geoffrey.wise...@gmail.com> wrote: > To make this happen, I looked at a few options, an ObjectProvider (e.g. > http://wiki.apache.org/tapestry/Tapestry5SpringIntegrationAlternative1) > although tapestry-spring seems to now be using an ObjectCreat

Spring, Tapestry-Test, PageTester and Extension

2009-05-28 Thread Geoffrey Wiseman
This is a long story, so I'm going to try and get through it quickly in point form: - I have pages that have dependencies injected into them that come from Spring. - I want to be able to test those pages using tapestry-test and PageTester, possibly with the real dependencies, pos

Re: Load test results

2009-05-15 Thread Massimo Lusetti
On Thu, May 14, 2009 at 7:41 PM, Ben Gidley wrote: > Hi, > As I posted a few weeks back I have been running a series of load tests and > have come to the following key conslusions Great work, really nice to read. Thanks -- Massimo http://meridio.blogspot.com --

Re: Load test results

2009-05-14 Thread Howard Lewis Ship
Thanks for the great work; I think these were pretty great results. On Thu, May 14, 2009 at 10:41 AM, Ben Gidley wrote: > Hi, > As I posted a few weeks back I have been running a series of load tests and > have come to the following key conslusions > >   - *Tapestry is fast* - the response times

Load test results

2009-05-14 Thread Ben Gidley
Hi, As I posted a few weeks back I have been running a series of load tests and have come to the following key conslusions - *Tapestry is fast* - the response times even under load are low. It isn't alway's fastest solution but it is sufficiently fast for me to focus my tuning attention e

Re: t5: usual practice for page test

2009-05-08 Thread Peter Stavrinides
Mostly our pages are kept quite clean and simple, so we write unit tests for business logic mostly, I use JUnit and sometimes Easymock for that. > using test driven development for pages? No, (although thinking of looking at PageTester at some point) but we do some black box testing us

t5: usual practice for page test

2009-05-07 Thread Angelo Chen
Hi, I'd like to know how others do the test for page? what I'm doing now is, write the code, manually test it until it works, that's the end. how you guys do this task: 1) using test driven development for pages? 2) just write the code, write a test after it is done for SVN

Re: [integration-test apps] problems with starting them standalone

2009-05-02 Thread manuel aldana
thanks this worked. just some detailed program parameters for running with RunJetty: working-directory needs to be: /tapestry-core programm arguments (for running integration-test-application app1): app1 src/test/app1 Ulrich Stärk schrieb: IIRC there's a RunJetty class somewhere in tap

Re: [integration-test apps] problems with starting them standalone

2009-05-02 Thread manuel aldana
Just in case you browse thread for same problem and wait to have it resolved: I filed a bug under http://www.jetbrains.net/jira/browse/IDEA-22800. manuel aldana schrieb: I found the cause. It seems to be an IntelliJ thing. By default itself maven2 isn't including test-classes (test page

Re: [integration-test apps] problems with starting them standalone

2009-05-02 Thread manuel aldana
I found the cause. It seems to be an IntelliJ thing. By default itself maven2 isn't including test-classes (test pages are sitting inside src/test/java) when packaging so pages could not be found. Never the less it is weird that IntelliJ does not include them anyway, because the o

Re: [integration-test apps] problems with starting them standalone

2009-05-01 Thread Ulrich Stärk
IIRC there's a RunJetty class somewhere in tapestry-core/src/test/../integration that accepts the name of the test application to start and starts it up. This works for me. Uli manuel aldana schrieb: I am trying hard to deploy the integration test webapp from tapestry-core, but I haven&

[integration-test apps] problems with starting them standalone

2009-05-01 Thread manuel aldana
I am trying hard to deploy the integration test webapp from tapestry-core, but I haven't had succeeded so far. Loading webapp itself works (I see the ioc outputs on console). But when going to the context path I would only see a directory listing of the files of the exploded webapp.

Free-test russian xxx site

2009-01-20 Thread metro5
Free-test russian xxx site http://xxx.gamapa.ru http://xxx.gamapa.ru -- View this message in context: http://www.nabble.com/Free-test-russian-xxx-site-tp21568499p21568499.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: t:if test considers Float < 1.0 as false?

2009-01-18 Thread Howard Lewis Ship
Seems reasonable to me; the TypeCoercer is coercing Float to Integer and checking for zero, and that's a lossy coercion that rounds down. On Sun, Jan 18, 2009 at 12:59 AM, James Hillyerd wrote: > It seems that t:if considers 0.1, 0.99 as false, but 1.0 as true. > Should I file a bug? This i

Re: t:if test considers Float < 1.0 as false?

2009-01-18 Thread nillehammer
Hi James, I don't think it is an issue with the if-component. If-component just calls a method that is given in the test-attribute and evaluates whether it returns true or false. Could it be that in this method you accidencially do an Integer comparison instead of a Float comparison? G

t:if test considers Float < 1.0 as false?

2009-01-18 Thread James Hillyerd
It seems that t:if considers 0.1, 0.99 as false, but 1.0 as true. Should I file a bug? This is 5.0.18 -james -- James A. Hillyerd

Re: First try at tapestry-test with no success

2008-12-04 Thread Borut Bolčina
Hi, I created src/test/java/bb.sandbox/myapp/integration/IntegrationTests.java package bb.sandbox.myapp.integration; import org.apache.tapestry5.test.AbstractIntegrationTestSuite; import org.testng.annotations.Test; @Test(timeOut = 5, sequential = true) public class IntegrationTests

TAP5-263: Please test this one!

2008-11-04 Thread Howard Lewis Ship
, and get us well past the "why is Tapestry output broken" questions. However, being on a Mac, I don't really have a good IE test environment. I would ask that people build the latest Tapestry (or wait for tonight's nightly build) and give this a whirl, to see if it has broken a

Running cobertura Maven2 report with tapestry-test

2008-10-03 Thread Hugo Palma
I have some integration tests that use the tapestry-test module. The tests run just fine when i execute mvn test but when i execute the cobertura report the tests fail with the following error: [ERROR] TapestryIOCModule.MasterObjectProvider Construction of service MasterObjectProvider failed

Re: First try at tapestry-test with no success

2008-08-01 Thread Hugo Palma
anging the location path in the constructor to the place where maven creates the exploded war but that didn't help. Again, any ideas ? Hugo Palma wrote: This is my first try at using tapestry-test. I created a test class with a test method: public class SecurityTest extends AbstractInteg

<    1   2   3   >