[JAVA-10597] Increased JOOQ version

This commit is contained in:
panagiotiskakos 2022-05-09 09:45:22 +03:00
parent fa47170025
commit 22d59b0193
2 changed files with 2 additions and 9 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

@ -2,8 +2,6 @@ package com.baeldung.jooq.introduction;
import static com.baeldung.jooq.introduction.db.public_.tables.Author.AUTHOR;
import java.util.ArrayList;
import java.util.List;
import org.jooq.Condition;
import org.jooq.DSLContext;
@ -68,12 +66,7 @@ public class CountQueryIntegrationTest {
@Test
public void givenValidData_whenFetchCountWithMultipleConditions_thenSucceed() {
Condition firstCond = AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan");
Condition secondCond = AUTHOR.ID.notEqual(1);
List<Condition> conditions = new ArrayList<>();
conditions.add(firstCond);
conditions.add(secondCond);
int count = dsl.fetchCount(AUTHOR, conditions);
int count = dsl.fetchCount(AUTHOR, AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan").and(AUTHOR.ID.notEqual(1)));
Assert.assertEquals(1, count);
}