Skip to content
Snippets Groups Projects
Commit 98b8f100 authored by cramakri's avatar cramakri
Browse files

MINOR : Removed dead code

SVN: 28364
parent 7a40fd11
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,6 @@ import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.PlateIdentifi ...@@ -53,7 +53,6 @@ import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.PlateIdentifi
import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.PlateImageReference; import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.PlateImageReference;
import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.WellPosition; import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.WellPosition;
import com.googlecode.jsonrpc4j.Base64;
import com.googlecode.jsonrpc4j.JsonRpcHttpClient; import com.googlecode.jsonrpc4j.JsonRpcHttpClient;
import com.googlecode.jsonrpc4j.ProxyUtil; import com.googlecode.jsonrpc4j.ProxyUtil;
...@@ -127,13 +126,6 @@ public class TransformedImageRepresentationsTest extends AbstractScreeningSystem ...@@ -127,13 +126,6 @@ public class TransformedImageRepresentationsTest extends AbstractScreeningSystem
+ "__CONVERT_2.h5ar/wA1_d1-1_cCy5.jpg"); + "__CONVERT_2.h5ar/wA1_d1-1_cCy5.jpg");
} }
private String expectedThumbnail(String dataSetCode, int size) throws IOException
{
IDataSetDss ds = screeningFacade.getDataSet(dataSetCode);
return getImageBase64(ds, "thumbnails_" + size + "x" + size
+ "__CONVERT_2.h5ar/wA1_d1-1_cCy5.jpg");
}
/** /**
* get the base64 encoded data of the image taken directly from the file system. * get the base64 encoded data of the image taken directly from the file system.
*/ */
...@@ -142,14 +134,6 @@ public class TransformedImageRepresentationsTest extends AbstractScreeningSystem ...@@ -142,14 +134,6 @@ public class TransformedImageRepresentationsTest extends AbstractScreeningSystem
return IOUtils.toByteArray(ds.getFile(pathInDataSet)); return IOUtils.toByteArray(ds.getFile(pathInDataSet));
} }
/**
* get the base64 encoded data of the image taken directly from the file system.
*/
private String getImageBase64(IDataSetDss ds, String pathInDataSet) throws IOException
{
return Base64.encodeBytes(IOUtils.toByteArray(ds.getFile(pathInDataSet)));
}
@Test @Test
public void testTransformedThumbnails() throws Exception public void testTransformedThumbnails() throws Exception
{ {
......
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