From 0fc6f44145691f1efed79152c640d15ef88f879b Mon Sep 17 00:00:00 2001 From: tpylak <tpylak> Date: Sat, 24 Apr 2010 15:04:24 +0000 Subject: [PATCH] LMS-1491 screening api: fix test program SVN: 15625 --- .../screening/client/api/v1/ScreeningClientApiTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningClientApiTest.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningClientApiTest.java index 6eceb4cb939..bb7e3ba62a1 100644 --- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningClientApiTest.java +++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningClientApiTest.java @@ -61,6 +61,11 @@ public class ScreeningClientApiTest userId)); ScreeningOpenbisServiceFacade facade = ScreeningOpenbisServiceFacade.tryCreate(userId, userPassword, serverUrl); + if (facade == null) + { + System.err.println("Cannot connect with the server, is it running?"); + return; + } List<Plate> plates = facade.listPlates(); System.out.println("Plates: " + plates); List<ImageDatasetReference> imageDatasets = facade.listImageDatasets(plates); @@ -71,7 +76,7 @@ public class ScreeningClientApiTest // test for feature vector dataset String featureVectorDatasetCode = featureVectorDatasets.get(0).getDatasetCode(); // feature - // vector + // vector IDatasetIdentifier datasetIdentifier = getDatasetIdentifier(facade, featureVectorDatasetCode); loadImages(facade, datasetIdentifier); -- GitLab