[Minor] added further test in QueryTest for param
This commit is contained in:
parent
752c79d497
commit
6ae389bc75
|
@ -236,27 +236,6 @@ public class QueryTest {
|
|||
performOrderQuery(query, Arrays.asList("@1", "@2"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void shouldQueryOrderByBooleParam() throws SQLException {
|
||||
OrderQuery query = new OrderQuery(new StrolchTypeNavigation("MyType1"));
|
||||
|
@ -357,35 +336,6 @@ public class QueryTest {
|
|||
performOrderQuery(query, Arrays.<String> asList());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void shouldQueryResource1() throws SQLException {
|
||||
|
||||
|
@ -461,6 +411,16 @@ public class QueryTest {
|
|||
ParameterSelection.stringSelection("@bag01", "@param5", "olch",
|
||||
StringMatchMode.CONTAINS_CASE_INSENSITIVE));
|
||||
performResourceQuery(query, expected);
|
||||
|
||||
query = new ResourceQuery(new StrolchTypeNavigation("MyType1"));
|
||||
query.and().with(
|
||||
ParameterSelection.stringSelection("@bag01", "@param5", "olch",
|
||||
StringMatchMode.CONTAINS_CASE_INSENSITIVE),
|
||||
ParameterSelection.stringSelection("@bag01", "@param5", "strolch",
|
||||
StringMatchMode.CONTAINS_CASE_INSENSITIVE),
|
||||
ParameterSelection.stringSelection("@bag01", "@param5", "Strolch",
|
||||
StringMatchMode.EQUALS_CASE_SENSITIVE));
|
||||
performResourceQuery(query, expected);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue