Skip to content
Snippets Groups Projects
Commit d62dedad authored by pkupczyk's avatar pkupczyk
Browse files

SSDM-2437 : V3 AS API - make it possible to search for samples without an...

SSDM-2437 : V3 AS API - make it possible to search for samples without an experiment - tests for datasets with/withoutSample

SVN: 34564
parent 9e916133
No related branches found
No related tags found
No related merge requests found
......@@ -192,11 +192,21 @@ public class SearchDataSetTest extends AbstractDataSetTest
}
@Test
public void testSearchWithSampleWithAnyPropertyThatContains()
public void testSearchWithSample()
{
DataSetSearchCriterion criterion = new DataSetSearchCriterion();
criterion.withSample().withAnyProperty().thatContains("er");
testSearch(TEST_USER, criterion, "20081105092159111-1", "20081105092159333-3", "20110805092359990-17", "20081105092159222-2");
criterion.withCode().thatStartsWith("20120628092259000");
criterion.withSample();
testSearch(TEST_USER, criterion, "20120628092259000-23");
}
@Test
public void testSearchWithoutSample()
{
DataSetSearchCriterion criterion = new DataSetSearchCriterion();
criterion.withCode().thatStartsWith("20120628092259000");
criterion.withoutSample();
testSearch(TEST_USER, criterion, "20120628092259000-24", "20120628092259000-25");
}
@Test
......
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