Search in sources :

Example 6 with TreeNode

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);
}
Also used : TreeNode(com.cubrid.cubridmanager.core.common.socket.TreeNode)

Example 7 with TreeNode

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);
}
Also used : TreeNode(com.cubrid.cubridmanager.core.common.socket.TreeNode)

Example 8 with TreeNode

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);
}
Also used : TreeNode(com.cubrid.cubridmanager.core.common.socket.TreeNode)

Example 9 with TreeNode

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);
}
Also used : TreeNode(com.cubrid.cubridmanager.core.common.socket.TreeNode)

Example 10 with TreeNode

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);
}
Also used : TreeNode(com.cubrid.cubridmanager.core.common.socket.TreeNode)

Aggregations

TreeNode (com.cubrid.cubridmanager.core.common.socket.TreeNode)142 ArrayList (java.util.ArrayList)20 HashMap (java.util.HashMap)7 Map (java.util.Map)6 Trigger (com.cubrid.common.core.common.model.Trigger)2 ServerInfo (com.cubrid.cubridmanager.core.common.model.ServerInfo)2 ServerUserInfo (com.cubrid.cubridmanager.core.common.model.ServerUserInfo)2 DbBackupInfo (com.cubrid.cubridmanager.core.cubrid.database.model.DbBackupInfo)2 DbUnloadInfo (com.cubrid.cubridmanager.core.cubrid.database.model.DbUnloadInfo)2 DbUserInfo (com.cubrid.cubridmanager.core.cubrid.user.model.DbUserInfo)2 GetExecuteCasRunnerResultInfo (com.cubrid.cubridmanager.core.logs.model.GetExecuteCasRunnerResultInfo)2 ManagerLogInfoList (com.cubrid.cubridmanager.core.logs.model.ManagerLogInfoList)2 ManagerLogInfos (com.cubrid.cubridmanager.core.logs.model.ManagerLogInfos)2 DbProcessStatusInfo (com.cubrid.cubridmanager.core.mondashboard.model.DbProcessStatusInfo)2 HADatabaseStatusInfo (com.cubrid.cubridmanager.core.mondashboard.model.HADatabaseStatusInfo)2 HAHostStatusInfo (com.cubrid.cubridmanager.core.mondashboard.model.HAHostStatusInfo)2 ReplicationInfo (com.cubrid.cubridmanager.core.replication.model.ReplicationInfo)2 ReplicationParamInfo (com.cubrid.cubridmanager.core.replication.model.ReplicationParamInfo)2 TransFileProgressInfo (com.cubrid.cubridmanager.core.replication.model.TransFileProgressInfo)2 CasAuthType (com.cubrid.cubridmanager.core.common.model.CasAuthType)1