These assertions within the tests can be further simplified by using something like the following:
``` assertThatThrownBy(() -> spyPartitionedRegion.getDataRegionForWrite(keyInfo)) .isInstanceOf(TransactionException.class) .hasMessage("PartitionedRegion Transactions cannot execute on nodes with local max memory zero"); ``` [ Full content available at: https://github.com/apache/geode/pull/4598 ] This message was relayed via gitbox.apache.org for notifications@geode.apache.org