sashapolo commented on code in PR #3399:
URL: https://github.com/apache/ignite-3/pull/3399#discussion_r1523433537


##########
modules/storage-api/src/testFixtures/java/org/apache/ignite/internal/storage/AbstractMvTableStorageTest.java:
##########
@@ -113,7 +114,40 @@ public abstract class AbstractMvTableStorageTest extends 
BaseMvStoragesTest {
 
     protected StorageHashIndexDescriptor hashIdx;
 
-    protected final CatalogService catalogService = mock(CatalogService.class);
+    private final CatalogService catalogService = mock(CatalogService.class);
+
+    protected final StorageIndexDescriptorSupplier indexDescriptorSupplier = 
new StorageIndexDescriptorSupplier() {
+        @Override
+        public @Nullable StorageIndexDescriptor get(int indexId) {
+            int catalogVersion = catalogService.latestCatalogVersion();
+
+            CatalogIndexDescriptor indexDescriptor = 
catalogService.index(indexId, catalogVersion);
+
+            if (indexDescriptor == null) {
+                return null;
+            }
+
+            CatalogTableDescriptor tableDescriptor = 
catalogService.table(indexDescriptor.tableId(), catalogVersion);
+
+            assertThat(tableDescriptor, is(notNullValue()));
+
+            return StorageIndexDescriptor.create(tableDescriptor, 
indexDescriptor);
+        }
+    };
+
+    private class TestRow {

Review Comment:
   I see IgniteTuple - I lose all of my temper and need to refactor it 
immediately



-- 
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]

Reply via email to