Fixed review comments
This commit is contained in:
parent
d010629fd5
commit
0b16b1440b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue