adelapena commented on code in PR #1891:
URL: https://github.com/apache/cassandra/pull/1891#discussion_r1108356580
##########
test/unit/org/apache/cassandra/db/CellTest.java:
##########
@@ -416,20 +416,32 @@ private Cell<?> regular(TableMetadata cfm, String
columnName, String value, long
return BufferCell.live(cdef, timestamp, ByteBufferUtil.bytes(value));
}
- private Cell<?> expiring(TableMetadata cfm, String columnName, String
value, long timestamp, int localExpirationTime)
+ private Cell<?> expiring(TableMetadata cfm, String columnName, String
value, long timestamp, long localExpirationTime)
{
return expiring(cfm, columnName, value, timestamp, 1,
localExpirationTime);
}
- private Cell<?> expiring(TableMetadata cfm, String columnName, String
value, long timestamp, int ttl, int localExpirationTime)
+ private Cell<?> expiring(TableMetadata cfm, String columnName, String
value, long timestamp, int ttl, long localExpirationTime)
{
ColumnMetadata cdef = cfm.getColumn(ByteBufferUtil.bytes(columnName));
return new BufferCell(cdef, timestamp, ttl, localExpirationTime,
ByteBufferUtil.bytes(value), null);
}
- private Cell<?> deleted(TableMetadata cfm, String columnName, int
localDeletionTime, long timestamp)
+ private Cell<?> deleted(TableMetadata cfm, String columnName, long
localDeletionTime, long timestamp)
{
ColumnMetadata cdef = cfm.getColumn(ByteBufferUtil.bytes(columnName));
return BufferCell.tombstone(cdef, timestamp, localDeletionTime);
}
+
+ private static void assertThrowsOnInvalidDeletionTime(CheckedFunction
runnable)
+ {
+ try
+ {
+ runnable.apply();
+ fail("Expected Exception was not thrown");
+ } catch (IllegalArgumentException e)
Review Comment:
```suggestion
}
catch (IllegalArgumentException e)
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]