use of org.apache.calcite.avatica.remote.Service.RpcMetadataResponse in project calcite-avatica by apache.
the class ErrorResponseTest method testEquality.
@Test
public void testEquality() {
final String message = "There was an error";
final int code = 23;
final String state = "a1b2c";
final AvaticaSeverity severity = AvaticaSeverity.ERROR;
final List<String> exceptions = Arrays.asList("Server Stacktrace 1", "Server Stacktace 2");
final RpcMetadataResponse metadata = new RpcMetadataResponse("localhost:8765");
assertEquals(new ErrorResponse(message, code, state, severity, exceptions, metadata), new ErrorResponse(message, code, state, severity, exceptions, metadata));
}
Aggregations