[Minor] Add tests for ListParameter isIn() search

This commit is contained in:
Robert von Burg 2018-06-18 11:09:44 +02:00
parent 2ee6f9a689
commit 7b2ab07ada
1 changed files with 4 additions and 0 deletions

View File

@ -395,10 +395,14 @@ public class StrolchSearchTest {
.and(param(BAG_ID, PARAM_LIST_FLOAT_ID, contains("6.0D,11.0D")))
.and(param(BAG_ID, PARAM_LIST_INTEGER_ID, isEqualTo(asList(5, 10, 15))))
.and(param(BAG_ID, PARAM_LIST_INTEGER_ID, isIn(asList(5, 10))))
.and(param(BAG_ID, PARAM_LIST_INTEGER_ID, contains(asList(5, 10))))
.and(param(BAG_ID, PARAM_LIST_LONG_ID, isEqualTo(asList(7L, 12L, 17L))))
.and(param(BAG_ID, PARAM_LIST_STRING_ID, isEqualTo(asList("Hello", "World"))))
.and(param(BAG_ID, PARAM_LIST_STRING_ID, isIn(asList("Hello", "World"))))
.and(param(BAG_ID, PARAM_LIST_STRING_ID, isIn(asList("Hello", "World", "Extra"))))
.and(param(BAG_ID, PARAM_LIST_STRING_ID, isIn(asList("Extra", "Sauce")).not()))
.and(paramNull(BAG_ID, "non-existant"))
//