alievmirza commented on a change in pull request #418:
URL: https://github.com/apache/ignite-3/pull/418#discussion_r740778773
##########
File path:
modules/metastorage-client/src/integrationTest/java/org/apache/ignite/internal/metastorage/client/ITMetaStorageServiceTest.java
##########
@@ -602,6 +601,25 @@ public void testRangeNext() {
assertEquals(EXPECTED_RESULT_ENTRY, cursor.iterator().next());
}
+ /**
+ * Tests {@link MetaStorageService#range(ByteArray, ByteArray, long)}'s
cursor exceptional case.
+ */
+ @Test
+ public void testRangeNextNoSuchElementException() {
+ when(mockStorage.range(EXPECTED_RESULT_ENTRY.key().bytes(),
null)).thenAnswer(invocation -> {
Review comment:
this is a valid case when the cursor on the server side is not found
##########
File path:
modules/metastorage-client/src/integrationTest/java/org/apache/ignite/internal/metastorage/client/ITMetaStorageServiceTest.java
##########
@@ -602,6 +601,25 @@ public void testRangeNext() {
assertEquals(EXPECTED_RESULT_ENTRY, cursor.iterator().next());
}
+ /**
+ * Tests {@link MetaStorageService#range(ByteArray, ByteArray, long)}'s
cursor exceptional case.
+ */
+ @Test
+ public void testRangeNextNoSuchElementException() {
+ when(mockStorage.range(EXPECTED_RESULT_ENTRY.key().bytes(),
null)).thenAnswer(invocation -> {
Review comment:
this is a valid case when the cursor on the server side is not found,
for example
--
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]