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() {
|
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