PAN-15 UserService.java and completed UserSservice integration test

This commit is contained in:
dantanxiaotian
2019-03-20 16:06:24 -06:00
parent 46122cbafd
commit 860e5379e6
9 changed files with 148 additions and 10 deletions
@@ -16,6 +16,7 @@ values ('admin', 'secret', true),
('BrittanyBi', 'secret', true),
('lanlanzeliu', 'secret', true),
('tramanh305', 'secret', true);
create table definitions (
id int not null auto_increment primary key unique,
name varchar(200) not null,
@@ -6,4 +6,7 @@ import org.springframework.stereotype.Repository;
@Repository
public interface AccountsRepository extends CrudRepository<AccountDto, Integer> {
}
@@ -33,6 +33,7 @@ public class AccountControllerTest {
@Test
public void testGetAllAccounts() {
final AccountDto accountDto = createAccount();
final List<AccountDto> accountDtoList = new ArrayList<>();
accountDtoList.add(accountDto);