use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportNoUseStatistics.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportNoUseStatistics(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportNoUseStatistics() {
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.isSupportNoUseStatistics(serverInfo);
assertFalse(support);
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testGetBrokerAccessModeValue.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#GetBrokerAccessModeValue(ServerInfo)
* )} .
*/
public void testGetBrokerAccessModeValue() {
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 mode = CompatibleUtil.getBrokerAccessModeValue(serverInfo);
assertEquals(mode, "string(RW|RO|SO)");
envInfo.setServerVersion("CUBRID 2008 R2.0(8.4.0.1150)");
envInfo.setOsInfo(FileUtil.OsInfoType.LINUX.toString());
mode = CompatibleUtil.getBrokerAccessModeValue(serverInfo);
assertEquals(mode, "string(RW|RO|SO|PHRO)");
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportNewBrokerParamPropery1.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportNewBrokerParamPropery1(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportNewBrokerParamPropery1() {
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.isSupportNewBrokerParamPropery1(serverInfo);
assertFalse(support);
support = CompatibleUtil.isSupportNewBrokerParamPropery1(null);
assertFalse(support);
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testgetSupportedPageSize.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#getSupportedPageSize(ServerInfo)
* )} .
*/
public void testgetSupportedPageSize() {
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[] pageSizes = CompatibleUtil.getSupportedPageSize(serverInfo);
assertEquals(pageSizes.length, 5);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.4.0.1150)");
pageSizes = CompatibleUtil.getSupportedPageSize(serverInfo);
assertEquals(pageSizes.length, 3);
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportGetParamDump.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportGetParamDump(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportGetParamDump() {
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.isSupportGetParamDump(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.2.1150)");
support = CompatibleUtil.isSupportGetParamDump(serverInfo);
assertTrue(support);
}
Aggregations