use of com.cubrid.common.core.queryplan.PlanParser in project cubrid-manager by CUBRID.
the class PlanParserTest method testExam03.
/**
* Partitioned table
*
* @throws Exception
*/
public void testExam03() throws Exception {
String planString = loadPlanExmaple("plan03.txt");
PlanParser parser = new PlanParser();
boolean bool = parser.doParse(planString);
assertTrue(bool);
int subPlanCount = parser.countPlanTree();
assertEquals(1, subPlanCount);
for (int i = 0; i < subPlanCount; i++) {
PlanResult planRoot = parser.getPlanTree(i);
assertNotNull(planRoot);
}
}
use of com.cubrid.common.core.queryplan.PlanParser in project cubrid-manager by CUBRID.
the class PlanParserTest method testExam05.
/**
* Partitioned table
*
* @throws Exception
*/
public void testExam05() throws Exception {
String planString = loadPlanExmaple("plan05.txt");
PlanParser parser = new PlanParser();
boolean bool = parser.doParse(planString);
assertFalse(bool);
}
Aggregations