Skip to content
Snippets Groups Projects
Commit 515d6659 authored by brinn's avatar brinn
Browse files

[BIS-149/SP-237] Display settings for custom web UIs.

Fix unit tests.

SVN: 26355
parent 06dc6655
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ import ch.systemsx.cisd.openbis.dss.client.api.v1.IDataSetDss;
import ch.systemsx.cisd.openbis.dss.client.api.v1.IDssComponent;
import ch.systemsx.cisd.openbis.dss.client.api.v1.IOpenbisServiceFacade;
import ch.systemsx.cisd.openbis.dss.generic.shared.api.v1.NewDataSetDTO;
import ch.systemsx.cisd.openbis.generic.server.api.v1.GeneralInformationChangingService;
import ch.systemsx.cisd.openbis.generic.shared.api.v1.IGeneralInformationChangingService;
import ch.systemsx.cisd.openbis.generic.shared.api.v1.IGeneralInformationService;
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet.Connections;
......@@ -87,6 +88,13 @@ public class OpenbisServiceFacadeTest extends AssertJUnit
service = context.mock(IGeneralInformationService.class);
changingService = context.mock(IGeneralInformationChangingService.class);
dssComponent = context.mock(IDssComponent.class);
context.checking(new Expectations()
{
{
allowing(changingService).getMinorVersion();
will(returnValue(GeneralInformationChangingService.MINOR_VERSION));
}
});
openbisFacade =
new OpenbisServiceFacade(SESSION_TOKEN, service, changingService, dssComponent);
......
......@@ -50,6 +50,8 @@ public class GeneralInformationChangingService extends
AbstractServer<IGeneralInformationChangingService> implements
IGeneralInformationChangingService
{
public static final int MINOR_VERSION = 2;
@Resource(name = ch.systemsx.cisd.openbis.generic.shared.ResourceNames.COMMON_SERVER)
private ICommonServer server;
......@@ -149,7 +151,7 @@ public class GeneralInformationChangingService extends
@Override
public int getMinorVersion()
{
return 2;
return MINOR_VERSION;
}
}
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