use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportNewFormatOfCMConf.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportNewFormatOfCMConf(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportNewFormatOfCMConf() {
EnvInfo envInfo = new EnvInfo();
envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.0.1150)");
ServerInfo serverInfo = new ServerInfo();
serverInfo.setConnected(true);
serverInfo.setEnvInfo(envInfo);
boolean support = CompatibleUtil.isSupportNewFormatOfCMConf(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.0.1150)");
support = CompatibleUtil.isSupportNewFormatOfCMConf(serverInfo);
assertTrue(support);
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testgetDefaultPageSize.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#getDefaultPageSize(ServerInfo)
* )} .
*/
public void testgetDefaultPageSize() {
EnvInfo envInfo = new EnvInfo();
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.0.1150)");
ServerInfo serverInfo = new ServerInfo();
serverInfo.setConnected(true);
serverInfo.setEnvInfo(envInfo);
String pageSize = CompatibleUtil.getDefaultPageSize(serverInfo);
assertEquals(pageSize, "4096");
envInfo.setServerVersion("CUBRID 2008 R2.0(8.4.0.1150)");
pageSize = CompatibleUtil.getDefaultPageSize(serverInfo);
assertEquals(pageSize, "16384");
}
Aggregations