Skip to content
Snippets Groups Projects
Commit 09c6bf67 authored by vkovtun's avatar vkovtun
Browse files

Merge branch 'ssdm-10151-test-coverage'

# Conflicts:
#	openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/asapi/v3/SearchMaterialTest.java
parents 2aaba108 e334e001
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,7 @@ public class SearchMaterialTest extends AbstractTest
final MaterialSearchCriteria falseValueCriterion = new MaterialSearchCriteria();
falseValueCriterion.withProperty("BOOLEAN").thatEquals("false");
testSearch(TEST_USER, falseValueCriterion, createdMaterialPermId);
final MaterialSearchCriteria trueValueCriterion = new MaterialSearchCriteria();
trueValueCriterion.withProperty("BOOLEAN").thatEquals("true");
testSearch(TEST_USER, trueValueCriterion);
......@@ -1102,14 +1102,14 @@ public class SearchMaterialTest extends AbstractTest
{ DataType.VARCHAR, "12", "== 12", true },
{ DataType.VARCHAR, "ab", "<= abc", true },
{ DataType.VARCHAR, "12", "> 100", true },
{ DataType.VARCHAR, "acd3", "contains bcd and endsWith 34", false },
{ DataType.VARCHAR, "abcd3", "contains bcd and endsWith 34", false },
{ DataType.VARCHAR, "abd34", "contains bcd and endsWith 34", false },
{ DataType.VARCHAR, "abcd34", "contains bcd and endsWith 34", true },
{ DataType.MULTILINE_VARCHAR, "ac3", "contains bc or endsWith 4", false },
{ DataType.MULTILINE_VARCHAR, "abc3", "contains bc or endsWith 4", true },
{ DataType.MULTILINE_VARCHAR, "ab4", "contains bc or endsWith 4", true },
{ DataType.MULTILINE_VARCHAR, "abc4", "contains bc or endsWith 4", true },
{ DataType.VARCHAR, "acd3", "contains bcd and endsWith d34", false },
{ DataType.VARCHAR, "abcd3", "contains bcd and endsWith d34", false },
{ DataType.VARCHAR, "abd34", "contains bcd and endsWith d34", false },
{ DataType.VARCHAR, "abcd34", "contains bcd and endsWith d34", true },
{ DataType.MULTILINE_VARCHAR, "acd3", "contains bcd or endsWith cd4", false },
{ DataType.MULTILINE_VARCHAR, "abcd3", "contains bcd or endsWith cd4", true },
{ DataType.MULTILINE_VARCHAR, "abd4", "contains bcd or endsWith bd4", true },
{ DataType.MULTILINE_VARCHAR, "abcd4", "contains bcd or endsWith cd4", true },
{ DataType.MULTILINE_VARCHAR, "12", "> 100 and <= 13", true },
{ DataType.BOOLEAN, "true", "== true", true },
{ DataType.BOOLEAN, "true", "== false", false },
......@@ -1134,14 +1134,14 @@ public class SearchMaterialTest extends AbstractTest
{ DataType.INTEGER, "24", ">= 23.5 or <= 19.5", true },
{ DataType.INTEGER, "19", ">= 24 or <= 19", true },
{ DataType.INTEGER, "24", ">= 24 or <= 19", true },
{ DataType.INTEGER, "12345", "startsWith 12 and endsWith 45", true },
{ DataType.INTEGER, "12345", "startsWith 13 and endsWith 45", false },
{ DataType.INTEGER, "12345", "startsWith 12 and endsWith 55", false },
{ DataType.INTEGER, "12345", "startsWith 11 and endsWith 55", false },
{ DataType.INTEGER, "12345", "startsWith 12 or endsWith 45", true },
{ DataType.INTEGER, "12345", "startsWith 13 or endsWith 45", true },
{ DataType.INTEGER, "12345", "startsWith 12 or endsWith 55", true },
{ DataType.INTEGER, "12345", "startsWith 11 or endsWith 55", false },
{ DataType.INTEGER, "12345", "startsWith 123 and endsWith 345", true },
{ DataType.INTEGER, "12345", "startsWith 133 and endsWith 345", false },
{ DataType.INTEGER, "12345", "startsWith 123 and endsWith 355", false },
{ DataType.INTEGER, "12345", "startsWith 113 and endsWith 355", false },
{ DataType.INTEGER, "12345", "startsWith 123 or endsWith 345", true },
{ DataType.INTEGER, "12345", "startsWith 133 or endsWith 345", true },
{ DataType.INTEGER, "12345", "startsWith 123 or endsWith 355", true },
{ DataType.INTEGER, "12345", "startsWith 113 or endsWith 355", false },
{ DataType.INTEGER, "12345", "contains 234", true },
{ DataType.INTEGER, "12345", "contains 437", false },
{ DataType.REAL, "12.345", "startsWith 12. and endsWith 45", true },
......
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