PAN-15 UserService.java and completed UserSservice integration test
This commit is contained in:
@@ -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,
|
||||
|
||||
+3
@@ -6,4 +6,7 @@ import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface AccountsRepository extends CrudRepository<AccountDto, Integer> {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
@@ -33,6 +33,7 @@ public class AccountControllerTest {
|
||||
|
||||
@Test
|
||||
public void testGetAllAccounts() {
|
||||
|
||||
final AccountDto accountDto = createAccount();
|
||||
final List<AccountDto> accountDtoList = new ArrayList<>();
|
||||
accountDtoList.add(accountDto);
|
||||
|
||||
Reference in New Issue
Block a user