use of org.voltdb.client.ClientResponse in project voltdb by VoltDB.
the class TestLiveDDLSchemaSwitch method verifyDeploymentOnlyUAC.
void verifyDeploymentOnlyUAC() throws Exception {
int timeout = getHeartbeatTimeout();
assertEquals(org.voltcore.common.Constants.DEFAULT_HEARTBEAT_TIMEOUT_SECONDS, timeout);
ClientResponse results = m_client.updateApplicationCatalog(null, new File(m_pathToOtherDeployment));
assertEquals(ClientResponse.SUCCESS, results.getStatus());
timeout = getHeartbeatTimeout();
assertEquals(6, timeout);
}
use of org.voltdb.client.ClientResponse in project voltdb by VoltDB.
the class TestNTProcs method getStats.
// get the first stats table for any selector
final VoltTable getStats(Client client, String selector) {
ClientResponse response = null;
try {
response = client.callProcedure("@Statistics", selector);
} catch (IOException | ProcCallException e) {
fail();
}
assertEquals(ClientResponse.SUCCESS, response.getStatus());
return response.getResults()[0];
}
use of org.voltdb.client.ClientResponse in project voltdb by VoltDB.
the class TestVoltProcedure method testNullBoxedShort.
public void testNullBoxedShort() {
ClientResponse r = call(BoxedShortProcedure.class);
assertEquals(null, BoxedShortProcedure.arg);
assertEquals(ClientResponse.SUCCESS, r.getStatus());
}
use of org.voltdb.client.ClientResponse in project voltdb by VoltDB.
the class TestVoltProcedure method testNullPointerException.
public void testNullPointerException() {
ClientResponse r = call(NPEProcedure.class);
assertEquals(ClientResponse.UNEXPECTED_FAILURE, r.getStatus());
System.out.println(r.getStatusString());
assertTrue(r.getStatusString().contains("java.lang.NullPointerException"));
}
use of org.voltdb.client.ClientResponse in project voltdb by VoltDB.
the class TestVoltProcedure method testNullInteger.
public void testNullInteger() {
ClientResponse r = call(IntegerProcedure.class);
assertEquals(VoltType.NULL_INTEGER, IntegerProcedure.arg);
assertEquals(ClientResponse.SUCCESS, r.getStatus());
}
Aggregations