You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/11/01 12:42:30 UTC
[GitHub] [ignite-3] AMashenkov commented on a change in pull request #408: IGNITE-15754: Fix marshaller exception handling
AMashenkov commented on a change in pull request #408:
URL: https://github.com/apache/ignite-3/pull/408#discussion_r740181595
##########
File path: modules/table/src/test/java/org/apache/ignite/internal/table/RecordBinaryViewOperationsTest.java
##########
@@ -410,4 +413,17 @@ void assertEqualsValues(SchemaDescriptor schema, Tuple expected, Tuple actual) {
@NotNull private TableImpl createTableImpl(SchemaDescriptor schema) {
return new TableImpl(new DummyInternalTableImpl(), new DummySchemaManagerImpl(schema), null);
}
+
+ public <T extends Throwable> void assertThrowsWithCause(Class<T> expectedType, Executable executable) {
Review comment:
I think we should check a public exception here and error code, once we will introduce codes and public exceptions.
So, an assertThrowsWithCause must be replaced to junit assertThrows with a correct public exception.
We check a cause here, which is an internal exception, as a temporal solution unless we have public classes and error codes.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org