tkalkirill commented on code in PR #892:
URL: https://github.com/apache/ignite-3/pull/892#discussion_r904920107


##########
modules/page-memory/src/test/java/org/apache/ignite/internal/pagememory/PageMemoryTestUtils.java:
##########
@@ -25,15 +25,12 @@
  */
 public class PageMemoryTestUtils {
     /**
-     * Returns mocked instance of {@link PageMemoryDataRegion}.
+     * Returns mocked instance of {@link DataRegion}.
      *
-     * @param persistent Data region.
      * @param pageMemory Page memory.
      */
-    public static PageMemoryDataRegion newDataRegion(boolean persistent, 
PageMemory pageMemory) {
-        PageMemoryDataRegion mock = mock(PageMemoryDataRegion.class);
-
-        when(mock.persistent()).thenReturn(persistent);
+    public static <T extends PageMemory> DataRegion<T> newDataRegion(T 
pageMemory) {
+        DataRegion<T> mock = mock(DataRegion.class);

Review Comment:
   Fix it



-- 
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-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to