use of org.ballerinalang.model.values.BInteger in project ballerina by ballerina-lang.
the class AssertTest method testAssertStringArrayEquals3.
@Test(expectedExceptions = BLangRuntimeException.class, expectedExceptionsMessageRegExp = ".*expected " + "\\[\"A\", \"b\", \"C\"\\] but found \\[\"A\", \"B\", \"C\"\\].*")
public void testAssertStringArrayEquals3() {
BValue[] args = { new BInteger(3) };
BTestUtils.invoke(compileResult, "testAssertStringArrayEquals", args);
}
use of org.ballerinalang.model.values.BInteger in project ballerina by ballerina-lang.
the class SQLActionsTest method testNullINParameters.
@Test(groups = "ConnectorTest", enabled = false)
public void testNullINParameters() {
BValue[] returns = BRunUtil.invoke(result, "testNullINParameters");
BInteger retValue = (BInteger) returns[0];
Assert.assertEquals(retValue.intValue(), 1);
}
use of org.ballerinalang.model.values.BInteger 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.BInteger 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.BInteger 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);
}
Aggregations