-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathtestCall.java
More file actions
24 lines (18 loc) · 751 Bytes
/
Copy pathtestCall.java
File metadata and controls
24 lines (18 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package test.oracle;
/*
* Date: 13-10-31
*/
import gudusoft.gsqlparser.EDbVendor;
import gudusoft.gsqlparser.TGSqlParser;
import gudusoft.gsqlparser.stmt.TCallStatement;
import junit.framework.TestCase;
public class testCall extends TestCase {
public void test1(){
TGSqlParser sqlparser = new TGSqlParser(EDbVendor.dbvoracle);
sqlparser.sqltext = "CALL dbms_java.set_output(2000)";
assertTrue(sqlparser.parse() == 0);
TCallStatement callStatement = (TCallStatement)sqlparser.sqlstatements.get(0);
assertTrue(callStatement.getRoutineName().toString().equalsIgnoreCase("dbms_java.set_output"));
assertTrue(callStatement.getArgs().getExpression(0).toString().equalsIgnoreCase("2000"));
}
}