use of org.ballerinalang.model.values.BString in project ballerina by ballerina-lang.
the class SQLActionsTest method testArrayofQueryParameters.
@Test(groups = "ConnectorTest")
public void testArrayofQueryParameters() {
BValue[] returns = BRunUtil.invoke(result, "testArrayofQueryParameters");
BString retValue = (BString) returns[0];
final String expected = "Peter";
Assert.assertEquals(retValue.stringValue(), expected);
}
use of org.ballerinalang.model.values.BString in project ballerina by ballerina-lang.
the class SQLConnectorInitTest method testConnectorWithWorkers.
@Test
public void testConnectorWithWorkers() {
BValue[] returns = BRunUtil.invoke(result, "testConnectorWithWorkers");
BString retValue = (BString) returns[0];
final String expected = "[{\"FIRSTNAME\":\"Peter\"}]";
Assert.assertEquals(retValue.stringValue(), expected);
}
use of org.ballerinalang.model.values.BString in project ballerina by ballerina-lang.
the class SQLConnectorInitTest method testConnectionPoolProperties1.
@Test
public void testConnectionPoolProperties1() {
BValue[] returns = BRunUtil.invoke(result, "testConnectionPoolProperties1");
BString retValue = (BString) returns[0];
final String expected = "[{\"FIRSTNAME\":\"Peter\"}]";
Assert.assertEquals(retValue.stringValue(), expected);
}
use of org.ballerinalang.model.values.BString in project ballerina by ballerina-lang.
the class SQLConnectorInitTest method testConnectorWithDataSourceClassAndProps.
@Test
public void testConnectorWithDataSourceClassAndProps() {
BValue[] returns = BRunUtil.invoke(result, "testConnectorWithDataSourceClassAndProps");
BString retValue = (BString) returns[0];
final String expected = "[{\"FIRSTNAME\":\"Peter\"}]";
Assert.assertEquals(retValue.stringValue(), expected);
}
use of org.ballerinalang.model.values.BString in project ballerina by ballerina-lang.
the class SQLConnectorInitTest method testConnectionPoolProperties2.
@Test
public void testConnectionPoolProperties2() {
BValue[] returns = BRunUtil.invoke(result, "testConnectionPoolProperties2");
BString retValue = (BString) returns[0];
final String expected = "[{\"FIRSTNAME\":\"Peter\"}]";
Assert.assertEquals(retValue.stringValue(), expected);
}
Aggregations