use of com.cubrid.cubridmanager.core.common.model.ServerInfo 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);
}
use of com.cubrid.cubridmanager.core.common.model.ServerInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportSystemMonitor.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportSystemMonitor(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportSystemMonitor() {
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.isSupportSystemMonitor(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.2.1150)");
support = CompatibleUtil.isSupportSystemMonitor(serverInfo);
assertTrue(support);
}
use of com.cubrid.cubridmanager.core.common.model.ServerInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsNewBrokerDiag.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isNewBrokerDiag(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsNewBrokerDiag() {
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.isNewBrokerDiag(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.2.1150)");
support = CompatibleUtil.isNewBrokerDiag(serverInfo);
assertTrue(support);
}
use of com.cubrid.cubridmanager.core.common.model.ServerInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportBrokerOrDBStatusMonitor.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportBrokerOrDBStatusMonitor(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportBrokerOrDBStatusMonitor() {
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.isSupportBrokerOrDBStatusMonitor(serverInfo);
assertTrue(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.0.1150)");
support = CompatibleUtil.isSupportBrokerOrDBStatusMonitor(serverInfo);
assertFalse(support);
}
use of com.cubrid.cubridmanager.core.common.model.ServerInfo in project cubrid-manager by CUBRID.
the class FunctionsSupportedInfoProviderTest method testIsSupportRestorePath.
/**
* Test method for
* {@link com.cubrid.common.core.util.CompatibleUtil#isSupportRestorePath(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
* .
*/
public void testIsSupportRestorePath() {
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.isSupportRestorePath(serverInfo);
assertFalse(support);
envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.2.1150)");
support = CompatibleUtil.isSupportRestorePath(serverInfo);
assertTrue(support);
}
Aggregations