Search in sources :

Example 1 with EzyRequestAppErrorResponse

use of com.tvd12.ezyfoxserver.response.EzyRequestAppErrorResponse in project ezyfox-server by youngmonkeys.

the class EzyRequestAppErrorResponseTest method test.

@Test
public void test() {
    EzyErrorParams params = new EzyErrorParams();
    params.setError(EzyRequestAppError.HAS_NOT_ACCESSED);
    EzyRequestAppErrorResponse response = new EzyRequestAppErrorResponse(params);
    assert response.getCommand() == EzyCommand.APP_REQUEST_ERROR;
    assert response.getParams() == params;
    response.release();
}
Also used : EzyErrorParams(com.tvd12.ezyfoxserver.response.EzyErrorParams) EzyRequestAppErrorResponse(com.tvd12.ezyfoxserver.response.EzyRequestAppErrorResponse) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Example 2 with EzyRequestAppErrorResponse

use of com.tvd12.ezyfoxserver.response.EzyRequestAppErrorResponse in project ezyfox-server by youngmonkeys.

the class EzyRequestAppController method newRequestAppErrorResponse.

protected EzyResponse newRequestAppErrorResponse() {
    EzyErrorParams params = new EzyErrorParams();
    params.setError(EzyRequestAppError.HAS_NOT_ACCESSED);
    return new EzyRequestAppErrorResponse(params);
}
Also used : EzyErrorParams(com.tvd12.ezyfoxserver.response.EzyErrorParams) EzyRequestAppErrorResponse(com.tvd12.ezyfoxserver.response.EzyRequestAppErrorResponse)

Aggregations

EzyErrorParams (com.tvd12.ezyfoxserver.response.EzyErrorParams)2 EzyRequestAppErrorResponse (com.tvd12.ezyfoxserver.response.EzyRequestAppErrorResponse)2 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1