use of org.ballerinalang.model.values.BValue in project ballerina by ballerina-lang.
the class SQLActionsTest method testCallProcedureWithMultipleResultSets.
@Test(groups = "ConnectorTest")
public void testCallProcedureWithMultipleResultSets() {
BValue[] returns = BRunUtil.invoke(result, "testCallProcedureWithMultipleResultSets");
BString retValue = (BString) returns[0];
final String expected = "Peter";
BString retValue2 = (BString) returns[1];
final String expected2 = "John";
Assert.assertEquals(retValue.stringValue(), expected);
Assert.assertEquals(retValue2.stringValue(), expected2);
}
use of org.ballerinalang.model.values.BValue in project ballerina by ballerina-lang.
the class SQLActionsTest method testCreateTable.
@Test(groups = "ConnectorTest")
public void testCreateTable() {
BValue[] returns = BRunUtil.invoke(result, "testCreateTable");
BInteger retValue = (BInteger) returns[0];
Assert.assertEquals(retValue.intValue(), 0);
}
use of org.ballerinalang.model.values.BValue in project ballerina by ballerina-lang.
the class SQLActionsTest method testEmptySQLType.
@Test(groups = "ConnectorTest")
public void testEmptySQLType() {
BValue[] returns = BRunUtil.invoke(result, "testEmptySQLType");
BInteger retValue = (BInteger) returns[0];
Assert.assertEquals(retValue.intValue(), 1);
}
use of org.ballerinalang.model.values.BValue in project ballerina by ballerina-lang.
the class SQLActionsTest method testInsertTableDataWithParameters.
@Test(groups = "ConnectorTest")
public void testInsertTableDataWithParameters() {
BValue[] returns = BRunUtil.invoke(result, "testInsertTableDataWithParameters");
BInteger retValue = (BInteger) returns[0];
Assert.assertEquals(retValue.intValue(), 1);
}
use of org.ballerinalang.model.values.BValue in project ballerina by ballerina-lang.
the class SQLActionsTest method testGeneratedKeyWithColumn.
@Test(groups = "ConnectorTest")
public void testGeneratedKeyWithColumn() {
BValue[] returns = BRunUtil.invoke(result, "testGeneratedKeyWithColumn");
BString retValue = (BString) returns[0];
Assert.assertTrue(Integer.parseInt(retValue.stringValue()) > 0);
}
Aggregations