Updated based on doc review.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
* Copyright 2017 the original author or authors.
|
||||
* Copyright 2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@@ -39,8 +39,8 @@ public class BillsetuptaskApplicationTests {
|
||||
public void testRepository() {
|
||||
JdbcTemplate jdbcTemplate = new JdbcTemplate(this.dataSource);
|
||||
int result = jdbcTemplate.queryForObject(
|
||||
"SELECT COUNT(*) FROM BILL_STATEMENTS", Integer.class);
|
||||
"SELECT COUNT(*) FROM BILL_STATEMENTS", Integer.class);
|
||||
|
||||
assertThat(result).isEqualTo(0);
|
||||
assertEquals(0, result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user