vibhatha commented on code in PR #39529:
URL: https://github.com/apache/arrow/pull/39529#discussion_r1456851574
##########
java/flight/flight-core/src/test/java/org/apache/arrow/flight/TestFlightService.java:
##########
@@ -149,12 +150,14 @@ public FlightInfo getFlightInfo(CallContext context,
FlightInfo flightInfo = client.getInfo(FlightDescriptor.path("test"));
Assertions.assertEquals(Optional.empty(),
flightInfo.getSchemaOptional());
Assertions.assertEquals(new Schema(Collections.emptyList()),
flightInfo.getSchema());
- Assertions.assertArrayEquals(flightInfo.getAppMetadata(),
"foo".getBytes());
+ Assertions.assertArrayEquals(flightInfo.getAppMetadata(),
"foo".getBytes(StandardCharsets.UTF_8));
Exception e = Assertions.assertThrows(
FlightRuntimeException.class,
() -> client.getSchema(FlightDescriptor.path("test")));
- Assertions.assertEquals("No schema is present in FlightInfo",
e.getMessage());
+ String expectedMessage =
"org.apache.arrow.flight.FlightRuntimeException: INVALID_ARGUMENT:" +
Review Comment:
Ah I see your point, the output looks as follows
```java
System.out.println(e.getMessage());
System.out.println(e);
System.out.println(e.toString());
```
Ouput
```bash
org.apache.arrow.flight.FlightRuntimeException: INVALID_ARGUMENT: No schema
is present in FlightInfo
org.apache.arrow.flight.FlightRuntimeException:
org.apache.arrow.flight.FlightRuntimeException: INVALID_ARGUMENT: No schema is
present in FlightInfo
org.apache.arrow.flight.FlightRuntimeException:
org.apache.arrow.flight.FlightRuntimeException: INVALID_ARGUMENT: No schema is
present in FlightInfo
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]