Skip to content
Snippets Groups Projects
Commit de8e3134 authored by cramakri's avatar cramakri
Browse files

LMS-1415 Fixed test for data set search.

SVN: 15043
parent 5e454cfe
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,10 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.locator.Pe
import ch.systemsx.cisd.openbis.generic.client.web.client.application.locator.SearchLocatorResolver;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.locator.ViewLocator;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.locator.ViewLocatorResolverRegistry;
import ch.systemsx.cisd.openbis.generic.client.web.client.dto.IResultSetConfig;
import ch.systemsx.cisd.openbis.generic.client.web.client.dto.ListSampleDisplayCriteria;
import ch.systemsx.cisd.openbis.generic.client.web.client.exception.UserFailureException;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DetailedSearchCriteria;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind;
/**
......@@ -275,17 +277,13 @@ public class ViewLocatorResolverRegistryTest extends AssertJUnit
});
ViewLocator locator = new ViewLocator("action=SEARCH&entity=DATA_SET");
ViewLocator locator =
new ViewLocator("action=SEARCH&entity=DATA_SET&data_set_type=HCS_IMAGE");
OpenViewAction action = new OpenViewAction(registry, locator);
action.execute();
try
{
action.openInitialTabUnderExceptionHandlerForTest();
fail("Only SAMPLE is supported by the search link mechanism right now.");
} catch (UserFailureException expected)
{
// Do nothing -- this should happen
}
// Can't test this any further because the request to open the search disappears into
// GWT/GXT land.
context.assertIsSatisfied();
}
......
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