- priority: 5 --> 8
public AuthorizationResponse authorize(AuthorizationRequest arg0);
public class AuthorizationRequest {
int customerId;
public setCustomerId(int customerId){
this.customerId = customerId;
}
public getCustomerId(){
return customerId;
}
}
This will work;
!|GenericHessianServiceFixture|
|key|getAuthorizeResponse|
|setOperationName|authorize|
|set|arg0.customerId|1|
|invoke||
|check|response||
|check|response.responseStatusCode|1|
The following will not;
!|SelectFixture|
|key|fetchedCustomerId|
|set|sql|select 1 from dual|
|invoke||
|check|response||
|check|response.rows.size()|1|
|check|response.rows[0].columns[0]|1|
!|GenericHessianServiceFixture|
|key|getAuthorizeResponse|
|setOperationName|authorize|
|set|arg0.customerId|${fetchedCustomerId.response.rows[0].columns[0].intValue()}|
|invoke||
|check|response||
|check|response.responseStatusCode|1|
The exception message given;
Expression fetchedCustomerId.response.rows[0].columns[0].intValue() returns a object(java.lang.Integer) that is not int type.