This isn't working as I expect it. If an exception is thrown inside the FacesRequest(){}; and the exception isn't propagated into the test class. Tests that should fail due to exceptions are not failing..
The only way seems to be to create a try/catch-block inside each method of FacesRequest.. but that does not look nice. Does not work as I exptected: | public void test() throws Exception { | new FacesRequest() { | @Override | protected void updateModelValues() throws Exception { | setValue("#{invalidcomponent.blabla}", "me is monkey. me likes to swing treez."); | } | | }.run(); | } | Does work as exptected but adds much jitter code to the tests: | public void test() throws Exception { | new FacesRequest() { | @Override | protected void updateModelValues() throws Exception { | try{ | setValue("#{invalidcomponent.blabla}", "me is monkey. me likes to swing treez."); | catch(exception e){ | Fail("test failed", e); | } | } | | }.run(); | } | Is this the intended behaviour? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088720#4088720 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088720 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user