[jboss-user] [JBoss Seam] - Re: How to pass parameters with ComponentTest.invokeMethod

2008-01-17 Thread chawax
I gave up using reflection to call Seam component and used getInstance() method instead to get the Seam component and then call its methods as usual. So now it looks like this : @org.testng.annotations.Test ( | public void testEmploye() throws Exception { | new ComponentTest() { |

[jboss-user] [JBoss Seam] - Re: How to pass parameters with ComponentTest.invokeMethod

2008-01-16 Thread chawax
Well I read that you can't use parameters with invokeMethod. So I tried with Expressions.createMethodExpression : MethodExpressionEmploye me = Expressions.instance().createMethodExpression( | #{coreServiceEmploye.saveEmploye(employe)}, | Employe.class, | new