Skip to content
Snippets Groups Projects
Commit 720493ba authored by felmer's avatar felmer
Browse files

ShareIdManagerTest fixed

SVN: 20279
parent f9220e01
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ import ch.systemsx.cisd.common.exceptions.EnvironmentFailureException; ...@@ -32,6 +32,7 @@ import ch.systemsx.cisd.common.exceptions.EnvironmentFailureException;
import ch.systemsx.cisd.common.logging.BufferedAppender; import ch.systemsx.cisd.common.logging.BufferedAppender;
import ch.systemsx.cisd.openbis.dss.generic.shared.Constants; import ch.systemsx.cisd.openbis.dss.generic.shared.Constants;
import ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService; import ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService;
import ch.systemsx.cisd.openbis.generic.shared.dto.DataSetShareId;
import ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO; import ch.systemsx.cisd.openbis.generic.shared.dto.SimpleDataSetInformationDTO;
/** /**
...@@ -64,12 +65,12 @@ public class ShareIdManagerTest extends AssertJUnit ...@@ -64,12 +65,12 @@ public class ShareIdManagerTest extends AssertJUnit
context.checking(new Expectations() context.checking(new Expectations()
{ {
{ {
allowing(service).listDataSets(); allowing(service).listDataSetShareIds();
SimpleDataSetInformationDTO ds1 = new SimpleDataSetInformationDTO(); DataSetShareId ds1 = new DataSetShareId();
ds1.setDataSetCode(DS1); ds1.setDataSetCode(DS1);
SimpleDataSetInformationDTO ds2 = new SimpleDataSetInformationDTO(); DataSetShareId ds2 = new DataSetShareId();
ds2.setDataSetCode(DS2); ds2.setDataSetCode(DS2);
ds2.setDataSetShareId("2"); ds2.setShareId("2");
will(returnValue(Arrays.asList(ds1, ds2))); will(returnValue(Arrays.asList(ds1, ds2)));
} }
}); });
......
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