use of com.cubrid.cubridmanager.core.common.task.CommonUpdateTask in project cubrid-manager by CUBRID.
the class StartDbTaskTest method testStartDbDemo.
public void testStartDbDemo() {
if (StringUtil.isEqual(SystemParameter.getParameterValue("useMockTest"), "n"))
return;
System.out.println("<database.startdb.001.req.txt>");
CommonUpdateTask task = new CommonUpdateTask(CommonTaskName.START_DB_TASK_NAME, ServerManager.getInstance().getServer(host, monport, userName), CommonSendMsg.getCommonDatabaseSendMsg());
task.setDbName("demodb");
task.execute();
assertTrue(task.isSuccess());
assertNull(task.getErrorMsg());
}
use of com.cubrid.cubridmanager.core.common.task.CommonUpdateTask in project cubrid-manager by CUBRID.
the class StartDbTaskTest method testStartDbNotExist.
public void testStartDbNotExist() {
if (StringUtil.isEqual(SystemParameter.getParameterValue("useMockTest"), "n"))
return;
System.out.println("<database.startdb.002.req.txt>");
CommonUpdateTask task = new CommonUpdateTask(CommonTaskName.START_DB_TASK_NAME, ServerManager.getInstance().getServer(host, monport, userName), CommonSendMsg.getCommonDatabaseSendMsg());
task.setDbName("notexistdb");
task.execute();
assertFalse(task.isSuccess());
assertNotNull(task.getErrorMsg());
}
use of com.cubrid.cubridmanager.core.common.task.CommonUpdateTask in project cubrid-manager by CUBRID.
the class StopDbTaskTest method testStopDbDemo.
public void testStopDbDemo() {
if (StringUtil.isEqual(SystemParameter.getParameterValue("useMockTest"), "n"))
return;
System.out.println("<database.stopdb.001.req.txt>");
CommonUpdateTask task = new CommonUpdateTask(CommonTaskName.STOP_DB_TASK_NAME, ServerManager.getInstance().getServer(host, monport, userName), CommonSendMsg.getCommonDatabaseSendMsg());
task.setDbName("demodb");
task.execute();
assertTrue(task.isSuccess());
assertNull(task.getErrorMsg());
}
use of com.cubrid.cubridmanager.core.common.task.CommonUpdateTask in project cubrid-manager by CUBRID.
the class CheckDbTaskTest method testExistDb.
public void testExistDb() {
if (StringUtil.isEqual(SystemParameter.getParameterValue("useMockTest"), "n"))
return;
System.out.println("<database.checkdb.001.req.txt>");
CommonUpdateTask task = new CommonUpdateTask(CommonTaskName.CHECK_DATABASE_TASK_NAME, ServerManager.getInstance().getServer(host, monport, userName), CommonSendMsg.getCommonDatabaseSendMsg());
task.setDbName("demodb");
task.execute();
assertTrue(task.isSuccess());
assertNull(task.getErrorMsg());
}
use of com.cubrid.cubridmanager.core.common.task.CommonUpdateTask in project cubrid-manager by CUBRID.
the class CompactDbTaskTest method testNotExistDb.
public void testNotExistDb() {
if (StringUtil.isEqual(SystemParameter.getParameterValue("useMockTest"), "n"))
return;
System.out.println("<database.compactdb.003.req.txt>");
CommonUpdateTask task = new CommonUpdateTask(CommonTaskName.COMPACT_DATABASE_TASK_NANE, ServerManager.getInstance().getServer(host, monport, userName), CommonSendMsg.getCompactDbSendMsg());
task.setDbName("notexistdb");
task.execute();
assertFalse(task.isSuccess());
assertNotNull(task.getErrorMsg());
}
Aggregations