Skip to content
Snippets Groups Projects
Commit 38a4523e authored by felmer's avatar felmer
Browse files

LMS-2735 ImageSizeFeedingMaintenanceTaskTest fixed

SVN: 24093
parent bacd6ebb
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
package ch.systemsx.cisd.openbis.dss.etl; package ch.systemsx.cisd.openbis.dss.etl;
import java.awt.image.BufferedImage;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
...@@ -37,6 +36,7 @@ import ch.systemsx.cisd.openbis.dss.etl.dto.ImageTransfomationFactories; ...@@ -37,6 +36,7 @@ import ch.systemsx.cisd.openbis.dss.etl.dto.ImageTransfomationFactories;
import ch.systemsx.cisd.openbis.dss.generic.server.images.dto.RequestedImageSize; import ch.systemsx.cisd.openbis.dss.generic.server.images.dto.RequestedImageSize;
import ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService; import ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService;
import ch.systemsx.cisd.openbis.dss.generic.shared.IHierarchicalContentProvider; import ch.systemsx.cisd.openbis.dss.generic.shared.IHierarchicalContentProvider;
import ch.systemsx.cisd.openbis.dss.generic.shared.dto.Size;
import ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO; import ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO;
import ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ImgImageDatasetDTO; import ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ImgImageDatasetDTO;
import ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ImgImageZoomLevelDTO; import ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ImgImageZoomLevelDTO;
...@@ -64,13 +64,13 @@ public class ImageSizeFeedingMaintenanceTaskTest extends AssertJUnit ...@@ -64,13 +64,13 @@ public class ImageSizeFeedingMaintenanceTaskTest extends AssertJUnit
} }
@Override @Override
public BufferedImage getUnchangedImage() public Size getUnchangedImageSize()
{ {
if (width < 0) if (width < 0)
{ {
throw new RuntimeException("Negative width: " + width); throw new RuntimeException("Negative width: " + width);
} }
return new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); return new Size(width, height);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment