Merge pull request #12186 from panos-kakos/JAVA-10597

[JAVA-10597] Increased JOOQ version
This commit is contained in:
kwoyke 2022-05-11 12:43:56 +02:00 committed by GitHub
commit 723069e599
2 changed files with 9 additions and 2 deletions

View File

@ -195,7 +195,7 @@
</build>
<properties>
<org.jooq.version>3.12.4</org.jooq.version>
<org.jooq.version>3.14.15</org.jooq.version>
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
<sql-maven-plugin.version>1.5</sql-maven-plugin.version>
<properties-maven-plugin.version>1.0.0</properties-maven-plugin.version>

View File

@ -76,7 +76,14 @@ public class CountQueryIntegrationTest {
int count = dsl.fetchCount(AUTHOR, conditions);
Assert.assertEquals(1, count);
}
@Test
public void givenValidData_whenFetchCountWithMultipleConditionsUsingAndOperator_thenSucceed() {
int count = dsl.fetchCount(AUTHOR, AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan").and(AUTHOR.ID.notEqual(1)));
Assert.assertEquals(1, count);
}
@Test
public void givenValidData_whenFetchCountWithConditionsInVarargs_thenSucceed() {
Condition firstCond = AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan");