Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
98b8f100
Commit
98b8f100
authored
12 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
MINOR : Removed dead code
SVN: 28364
parent
7a40fd11
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
screening/sourceTest/java/ch/systemsx/cisd/openbis/screening/systemtests/TransformedImageRepresentationsTest.java
+0
-16
0 additions, 16 deletions
...ning/systemtests/TransformedImageRepresentationsTest.java
with
0 additions
and
16 deletions
screening/sourceTest/java/ch/systemsx/cisd/openbis/screening/systemtests/TransformedImageRepresentationsTest.java
+
0
−
16
View file @
98b8f100
...
@@ -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
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment