Fixed review comments
This commit is contained in:
parent
d010629fd5
commit
0b16b1440b
|
@ -49,16 +49,14 @@ public class CountQueryIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenValidData_whenFetchCount_thenSucceed() {
|
public void givenValidData_whenFetchCount_thenSucceed() {
|
||||||
int count = dsl.fetchCount(
|
int count = dsl.fetchCount(DSL.selectFrom(AUTHOR)
|
||||||
DSL.selectFrom(AUTHOR)
|
|
||||||
.where(AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan")));
|
.where(AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan")));
|
||||||
Assert.assertEquals(1, count);
|
Assert.assertEquals(1, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenValidData_whenFetchCountWithoutCondition_thenSucceed() {
|
public void givenValidData_whenFetchCountWithoutCondition_thenSucceed() {
|
||||||
int count = dsl.fetchCount(
|
int count = dsl.fetchCount(DSL.selectFrom(AUTHOR));
|
||||||
DSL.selectFrom(AUTHOR));
|
|
||||||
Assert.assertEquals(3, count);
|
Assert.assertEquals(3, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue