-
1. Re: SeamTest newbie problems
jeanluc Sep 4, 2009 7:12 PM (in response to lpiccoli.lucio.asteriski.com)in setValue() you need to pass a valid EL expression. In your case, setValue("#{ActivitySignOffForm.note}","love"); assumes there is a Seam component named ActivitySignOffForm. You haven't posted the form's code so I can't tell if the @Name annotation is indeed defining this name. Note that this name has nothing to do with the class name.
So the exception is saying there's no Seam component named ActivitySignOffForm
-
2. Re: SeamTest newbie problems
lpiccoli.lucio.asteriski.com Sep 7, 2009 1:19 AM (in response to lpiccoli.lucio.asteriski.com)
So the exception is saying there's no Seam component named ActivitySignOffFormyeah there is a class using the correct @Name annotation.
@Name("ActivitySignOffForm") public class ActivitySignOffFormAction extends ITPBaseAction { //@Logger private Log log; @In StatusMessages statusMessages; @In Actor actor; ..... public String getNote() { return note; } public void setNote(String note) { this.note = note; }
i was expecting the setValue to invoke the setNote method. but instead it seems that it cant be found.
The class is in the eclipse project so unless there is some special 'seamtest' config that i have missed i am most confused as why this doesnt work.any help is appreciated.
-lp
-
3. Re: SeamTest newbie problems
lpiccoli.lucio.asteriski.com Sep 7, 2009 8:17 AM (in response to lpiccoli.lucio.asteriski.com)can someone confirm if embedded jboss has started?
i am simply running the test class with testng with the lib/test added.
is there any other process or config that is required?
the log is below.
16:04:26,140 DEBUG [Ejb3Deployer] ********* Ejb3Deployer Begin Unit: jboss-seam-ui.jar jar: jboss-seam-ui.jar 16:04:26,182 DEBUG [Ejb3Deployment] EJB3 deployment time took: 41 16:04:26,183 DEBUG [DeployersImpl] Fully Deployed vfsjar:file:/C:/src/seamitp/lib/jboss-seam.jar!/ 16:04:26,183 DEBUG [DeployersImpl] Fully Deployed vfsjar:file:/C:/src/seamitp/lib/jboss-seam-ui.jar!/ 16:04:28,005 WARN [PersistentPermissionResolver] no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required. FAILED: testSearch java.lang.AssertionError: at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertNotNull(Assert.java:524) at org.junit.Assert.assertNotNull(Assert.java:535) at com.asteriski.itpflow.business.ReferenceBusinessTest$1.testComponents(ReferenceBusinessTest.java:23) at org.jboss.seam.mock.AbstractSeamTest$ComponentTest.run(AbstractSeamTest.java:162) at com.asteriski.itpflow.business.ReferenceBusinessTest.testSearch(ReferenceBusinessTest.java:25) ... Removed 22 stack frames