Search in sources :

Example 1 with EzyPluginInfoResponse

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

the class EzyPluginInfoResponseTest method test.

@Test
public void test() {
    EzySimplePluginSetting setting = new EzySimplePluginSetting();
    setting.setName("test");
    EzyPluginInfoParams params = new EzyPluginInfoParams();
    params.setPlugin(setting);
    assert params.getPlugin() == setting;
    EzyPluginInfoResponse response = new EzyPluginInfoResponse(params);
    assert response.getParams() == params;
    response.serialize();
    response.release();
}
Also used : EzyPluginInfoResponse(com.tvd12.ezyfoxserver.response.EzyPluginInfoResponse) EzyPluginInfoParams(com.tvd12.ezyfoxserver.response.EzyPluginInfoParams) EzySimplePluginSetting(com.tvd12.ezyfoxserver.setting.EzySimplePluginSetting) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzyPluginInfoParams (com.tvd12.ezyfoxserver.response.EzyPluginInfoParams)1 EzyPluginInfoResponse (com.tvd12.ezyfoxserver.response.EzyPluginInfoResponse)1 EzySimplePluginSetting (com.tvd12.ezyfoxserver.setting.EzySimplePluginSetting)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1