[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"));
|
performOrderQuery(query, Arrays.asList("@1", "@2"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shouldQueryOrderByBooleParam() throws SQLException {
|
public void shouldQueryOrderByBooleParam() throws SQLException {
|
||||||
OrderQuery query = new OrderQuery(new StrolchTypeNavigation("MyType1"));
|
OrderQuery query = new OrderQuery(new StrolchTypeNavigation("MyType1"));
|
||||||
|
@ -357,35 +336,6 @@ public class QueryTest {
|
||||||
performOrderQuery(query, Arrays.<String> asList());
|
performOrderQuery(query, Arrays.<String> asList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shouldQueryResource1() throws SQLException {
|
public void shouldQueryResource1() throws SQLException {
|
||||||
|
|
||||||
|
@ -461,6 +411,16 @@ public class QueryTest {
|
||||||
ParameterSelection.stringSelection("@bag01", "@param5", "olch",
|
ParameterSelection.stringSelection("@bag01", "@param5", "olch",
|
||||||
StringMatchMode.CONTAINS_CASE_INSENSITIVE));
|
StringMatchMode.CONTAINS_CASE_INSENSITIVE));
|
||||||
performResourceQuery(query, expected);
|
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
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue