use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportNewHAConfFile.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportNewHAConfFile(ServerInfo)}
* .
*/
public void testIsSupportNewHAConfFile() {
EnvInfo envInfo = new EnvInfo();
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.0.1150)");
ServerInfo serverInfo = new ServerInfo();
serverInfo.setConnected(true);
serverInfo.setEnvInfo(envInfo);
boolean support = CompatibleUtil.isSupportNewHAConfFile(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.4.0.1150)");
envInfo.setOsInfo(FileUtil.OsInfoType.NT.toString());
support = CompatibleUtil.isSupportNewHAConfFile(serverInfo);
assertFalse(support);
support = CompatibleUtil.isSupportNewHAConfFile(null);
assertFalse(support);
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportNLucene.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportNLucene(ServerInfo)}
* .
*/
public void testIsSupportNLucene() {
EnvInfo envInfo = new EnvInfo();
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.0.1150)");
ServerInfo serverInfo = new ServerInfo();
serverInfo.setConnected(true);
serverInfo.setEnvInfo(envInfo);
boolean support = CompatibleUtil.isSupportNLucene(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.4.0.1150)");
envInfo.setOsInfo(FileUtil.OsInfoType.NT.toString());
support = CompatibleUtil.isSupportNLucene(serverInfo);
assertTrue(support);
support = CompatibleUtil.isSupportNLucene(null);
assertFalse(support);
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportHA.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportHA(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportHA() {
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.isSupportHA(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.2.1150)");
envInfo.setOsInfo(FileUtil.OsInfoType.LINUX.toString());
support = CompatibleUtil.isSupportHA(serverInfo);
assertTrue(support);
support = CompatibleUtil.isSupportHA(null);
assertFalse(support);
envInfo.setOsInfo(FileUtil.OsInfoType.NT.toString());
support = CompatibleUtil.isSupportHA(serverInfo);
assertFalse(support);
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportLogPageSize.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportLogPageSize(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportLogPageSize() {
EnvInfo envInfo = new EnvInfo();
envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.2.1150)");
ServerInfo serverInfo = new ServerInfo();
serverInfo.setConnected(true);
serverInfo.setEnvInfo(envInfo);
boolean support = CompatibleUtil.isSupportLogPageSize(serverInfo);
assertTrue(support);
}
use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportPlanAndParamDump.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportPlanAndParamDump(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportPlanAndParamDump() {
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.isSupportPlanAndParamDump(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.2.1150)");
support = CompatibleUtil.isSupportPlanAndParamDump(serverInfo);
assertTrue(support);
}
Aggregations