Fixed review comments

This commit is contained in:
Amitabh Tiwari 2021-03-26 21:03:08 +05:30
parent d010629fd5
commit 0b16b1440b
1 changed files with 7 additions and 9 deletions

View File

@ -49,16 +49,14 @@ public class CountQueryIntegrationTest {
@Test
public void givenValidData_whenFetchCount_thenSucceed() {
int count = dsl.fetchCount(
DSL.selectFrom(AUTHOR)
int count = dsl.fetchCount(DSL.selectFrom(AUTHOR)
.where(AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan")));
Assert.assertEquals(1, count);
}
@Test
public void givenValidData_whenFetchCountWithoutCondition_thenSucceed() {
int count = dsl.fetchCount(
DSL.selectFrom(AUTHOR));
int count = dsl.fetchCount(DSL.selectFrom(AUTHOR));
Assert.assertEquals(3, count);
}