Polishing.

Original pull request #1338
See #1329
This commit is contained in:
Jens Schauder
2022-09-26 14:20:43 +02:00
parent 9b6570452c
commit 98ef3df478
2 changed files with 949 additions and 948 deletions

View File

@@ -782,10 +782,13 @@ class SqlGeneratorUnitTests {
@Test // GH-1329
void selectWithOutAnyCriteriaTest() {
SqlGenerator sqlGenerator = createSqlGenerator(DummyEntity.class);
Query query = Query.query(Criteria.empty());
MapSqlParameterSource parameterSource = new MapSqlParameterSource();
String generatedSQL = sqlGenerator.selectByQuery(query, parameterSource);
assertThat(generatedSQL).isNotNull().doesNotContain("where");
}