use of com.cubrid.cubridmanager.core.common.socket.TreeNode in project cubrid-manager by CUBRID.
the class DropTriggerTaskTest method testReceive.
public void testReceive() throws Exception {
String filepath = this.getFilePathInPlugin("/com/cubrid/cubridmanager/core/cubrid/trigger/task/test.message/droptrigger_receive");
String msg = Tool.getFileContent(filepath);
TreeNode node = MessageUtil.parseResponse(msg);
task.setResponse(node);
boolean success = task.isSuccess();
assertTrue(success);
}
use of com.cubrid.cubridmanager.core.common.socket.TreeNode in project cubrid-manager by CUBRID.
the class ModelUtilTest method testgetTriggerList.
public void testgetTriggerList() {
TreeNode node = new TreeNode();
ModelUtil.getTriggerList(node);
TreeNode child = new TreeNode();
child.add("open", "triggerinfo");
child.add("close", "triggerinfo");
node.addChild(child);
ModelUtil.getTriggerList(node);
}
use of com.cubrid.cubridmanager.core.common.socket.TreeNode in project cubrid-manager by CUBRID.
the class ModelUtilTest method testGetClassList.
public void testGetClassList() {
TreeNode node = new TreeNode();
node.add("open", "systemclass");
node.add("close", "systemclass");
node.add("open", "userclass");
node.add("close", "userclass");
ModelUtil.getClassList(node);
}
use of com.cubrid.cubridmanager.core.common.socket.TreeNode in project cubrid-manager by CUBRID.
the class ModelUtilTest method testGetSuperClass.
public void testGetSuperClass() {
TreeNode node = new TreeNode();
node.add("open", "class");
node.add("close", "class");
ModelUtil.getSuperClass(node);
}
use of com.cubrid.cubridmanager.core.common.socket.TreeNode in project cubrid-manager by CUBRID.
the class AlterTriggerTaskTest method testReceiveError.
public void testReceiveError() throws Exception {
String filepath = this.getFilePathInPlugin("/com/cubrid/cubridmanager/core/cubrid/trigger/task/test.message/altertrigger_receive_error");
String msg = Tool.getFileContent(filepath);
TreeNode node = MessageUtil.parseResponse(msg);
task.setResponse(node);
boolean success = task.isSuccess();
assertFalse(success);
}
Aggregations