hum, I agree with you,it works :) But my problem concern the usage of tapestry testify to do unit testing on my component.
My dummy case is to understand the behavior of unit test with testify to implement it in a bigger project. -------------------------------------------------------- my dummy.tml: <?xml version="1.0" encoding="UTF-8"?> ${messageChangeWhenSubmit} -------------------------------------------------------- in my class TestDummy.java: [...] @Test public void updateValue() { Document doc = tester.renderPage("demo/dummyDemo"); Element submitButton = doc.getElementById("mySubmit"); Map<String, String> parameters = new HashMap<String, String>(); doc = tester.clickSubmit(submitButton, parameters); assertEquals(doc.getElementById("testDiv").getChildMarkup(), "!! UPDATE !!"); } -------------------------------------------------------- in my Dummy.java [...] @Persist @Property private String messageChangeWhenSubmit; @Component(id = "myForm") private Form myForm; @Property @InjectComponent private Zone myZone; @SetupRender public void init() { logger.debug("## INIT ##"); messageChangeWhenSubmit = "somethingToTest"; } @OnEvent(value = EventConstants.VALIDATE, component = "myForm") public Object launchProcess() { messageChangeWhenSubmit = "!! UPDATE !!"; return myZone; } -------------------------------------------------------- The test "updateValue" failed.. I wanted to know if it's a usage of testify and what I have to be aware of to pass the test.... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Testify-SetupRender-launched-instead-of-update-a-zone-tp4288081p4288382.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...@tapestry.apache.org