From 7a9b0490b49d960fc801875bd2b44d03dda0d2d3 Mon Sep 17 00:00:00 2001 From: anttil <anttil> Date: Fri, 5 Feb 2016 09:20:01 +0000 Subject: [PATCH] Fix CachedResultSetManagerTest SVN: 35637 --- .../server/resultset/CachedResultSetManagerTest.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/client/web/server/resultset/CachedResultSetManagerTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/client/web/server/resultset/CachedResultSetManagerTest.java index 3d7faefe890..3ce862a1fad 100644 --- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/client/web/server/resultset/CachedResultSetManagerTest.java +++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/client/web/server/resultset/CachedResultSetManagerTest.java @@ -959,25 +959,16 @@ public final class CachedResultSetManagerTest extends AssertJUnit allowing(keyGenerator).createKey(); will(returnValue(KEY)); - one(originalDataProvider).getOriginalData(maxSize); DataHolder[] rows = new DataHolder[size]; for (int i = 0; i < rows.length; i++) { rows[i] = new DataHolder(i + "-a" + i % 2); } + one(originalDataProvider).getOriginalData(Integer.MAX_VALUE); will(returnValue(Arrays.asList(rows))); - one(originalDataProvider).getHeaders(); will(returnValue(Arrays.asList())); - // if (size >= maxSize) - // { - // one(originalDataProvider).getOriginalData(Integer.MAX_VALUE); - // will(returnValue(Arrays.asList(rows))); - // one(originalDataProvider).getHeaders(); - // will(returnValue(Arrays.asList())); - // } - allowing(customColumnsProvider).getGridCustomColumn(SESSION_TOKEN, GRID_DISPLAY_ID); will(returnValue(Arrays.asList(columns))); -- GitLab