Search in sources :

Example 1 with EzyAccessAppResponse

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

the class EzyAccessAppResponseTest method test.

@Test
public void test() {
    EzySimpleAppSetting setting = new EzySimpleAppSetting();
    EzyAccessAppParams params = new EzyAccessAppParams();
    EzyData data = EzyEntityFactory.EMPTY_ARRAY;
    params.setData(data);
    params.setApp(setting);
    assert params.getApp() == setting;
    assert params.getData() == data;
    EzyAccessAppResponse response = new EzyAccessAppResponse(params);
    assert response.getParams() == params;
    assert response.getCommand() == EzyCommand.APP_ACCESS;
    assert response.serialize().size() > 0;
    response.release();
}
Also used : EzySimpleAppSetting(com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting) EzyAccessAppResponse(com.tvd12.ezyfoxserver.response.EzyAccessAppResponse) EzyAccessAppParams(com.tvd12.ezyfoxserver.response.EzyAccessAppParams) EzyData(com.tvd12.ezyfox.entity.EzyData) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzyData (com.tvd12.ezyfox.entity.EzyData)1 EzyAccessAppParams (com.tvd12.ezyfoxserver.response.EzyAccessAppParams)1 EzyAccessAppResponse (com.tvd12.ezyfoxserver.response.EzyAccessAppResponse)1 EzySimpleAppSetting (com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1