This content has been marked as final.
Show 5 replies
-
1. Re: SeamTest article
phantasmo Sep 23, 2009 10:31 AM (in response to blabno)The link to the sources is dead...
-
-
3. Re: SeamTest article
leonardo.viragine Sep 23, 2009 4:04 PM (in response to blabno)Hi,
Congratulations for your article, docs about SeamTest are very rare.
I have a doubt, if you allow me...:P
How can I pass a parameter in "invokeAction"??
In my case,something like this:
invokeAction("#{idiomaManager.save(idioma)}");
Is it possible??,I´ve tried:
setValue("#{idioma}",idioma) //idioma has been already created...
invokeAction("#{idiomaManager.save(idioma)}");
And I got null on the idiomaManager.save...
Thanks in advance
Leonardo Luiz Viragine -
4. Re: SeamTest article
blabno Sep 23, 2009 4:51 PM (in response to blabno)Very good question. I should add this to my article. The soulution is present in seam examples : jpa/src/org/jboss/seam/example/jpa/test/BookingTest.java
String id = new FacesRequest("/main.xhtml") { @Override protected void invokeApplication() throws Exception { HotelBookingAction hotelBooking = (HotelBookingAction) getInstance("hotelBooking"); DataModel hotels = (DataModel) Contexts.getSessionContext().get("hotels"); assert hotels.getRowCount()==1; hotelBooking.selectHotel( (Hotel) hotels.getRowData() ); } @Override protected void renderResponse() { Hotel hotel = (Hotel) Contexts.getConversationContext().get("hotel"); assert hotel.getCity().equals("NY"); assert hotel.getZip().equals("10011"); assert Manager.instance().isLongRunningConversation(); } }.run();
-
5. Re: SeamTest article
blabno Jun 14, 2011 7:08 AM (in response to blabno)Valid link is:
http://bernard.labno.pl/seamTestInAction