Skip to content
Snippets Groups Projects
Commit 1bb0ba2e authored by felmer's avatar felmer
Browse files

slightly improved checkLogContentForFinishedDataSetRegistration() in...

slightly improved checkLogContentForFinishedDataSetRegistration() in TransformedImageRepresentationsTest

SVN: 27913
parent 568874c9
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,6 @@ public class TransformedImageRepresentationsTest extends AbstractScreeningSystem ...@@ -101,7 +101,6 @@ public class TransformedImageRepresentationsTest extends AbstractScreeningSystem
// (resource/test-data/TransformedImageRepresentationsTest/data-set-handler.py) // (resource/test-data/TransformedImageRepresentationsTest/data-set-handler.py)
PlateIdentifier plate = new PlateIdentifier("TRANSFORMED-THUMB-PLATE", "TEST", null); PlateIdentifier plate = new PlateIdentifier("TRANSFORMED-THUMB-PLATE", "TEST", null);
List<ImageDatasetReference> imageDataSets = screeningFacade.listRawImageDatasets(Arrays.asList(plate)); List<ImageDatasetReference> imageDataSets = screeningFacade.listRawImageDatasets(Arrays.asList(plate));
System.out.println("Raw image data sets: " + imageDataSets);
List<DatasetImageRepresentationFormats> representationFormats = screeningFacade.listAvailableImageRepresentationFormats(imageDataSets); List<DatasetImageRepresentationFormats> representationFormats = screeningFacade.listAvailableImageRepresentationFormats(imageDataSets);
assertEquals(1, representationFormats.size()); assertEquals(1, representationFormats.size());
List<ImageRepresentationFormat> formats = representationFormats.get(0).getImageRepresentationFormats(); List<ImageRepresentationFormat> formats = representationFormats.get(0).getImageRepresentationFormats();
...@@ -157,11 +156,8 @@ public class TransformedImageRepresentationsTest extends AbstractScreeningSystem ...@@ -157,11 +156,8 @@ public class TransformedImageRepresentationsTest extends AbstractScreeningSystem
@Override @Override
protected boolean checkLogContentForFinishedDataSetRegistration(String logContent) protected boolean checkLogContentForFinishedDataSetRegistration(String logContent)
{ {
String pattern = "Post registration of ([0-9]*)\\. of \\1 data sets"; return super.checkLogContentForFinishedDataSetRegistration(logContent)
// matches "Post registration of n. of n data sets" && checkForFinalPostRegistrationLogEntry(logContent);
Pattern p = Pattern.compile(pattern);
Matcher m = p.matcher(logContent);
return m.find();
} }
} }
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