use of com.tvd12.ezyfoxserver.response.EzyAccessAppErrorResponse in project ezyfox-server by youngmonkeys.
the class EzyAccessAppErrorResponseTest method test.
@Test
public void test() {
EzyErrorParams params = new EzyErrorParams();
params.setCode(1);
params.setMessage("m");
params.setError(EzyAccessAppError.MAXIMUM_USER);
assert params.getCode() == EzyAccessAppError.MAXIMUM_USER.getId();
assert params.getMessage().equals(EzyAccessAppError.MAXIMUM_USER.getMessage());
EzyAccessAppErrorResponse response = new EzyAccessAppErrorResponse(params);
response.release();
}
use of com.tvd12.ezyfoxserver.response.EzyAccessAppErrorResponse in project ezyfox-server by youngmonkeys.
the class EzyAccessAppController method newAccessAppErrorResponse.
protected EzyResponse newAccessAppErrorResponse(EzyIAccessAppError error) {
EzyErrorParams params = new EzyErrorParams();
params.setError(error);
return new EzyAccessAppErrorResponse(params);
}
Aggregations