인증/권한 저위험 파일 Spring 전환 스파이크 (BAIS-SPRING-DEV-AUTH-001)
Some checks are pending
ci / test (push) Waiting to run
Some checks are pending
ci / test (push) Waiting to run
This commit is contained in:
parent
a01f9aa32c
commit
fe7a970b3c
1 changed files with 17 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.example.authentication;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import static org.mockito.Mockito.*;
|
||||||
|
|
||||||
|
class Sau02f220uServiceTest {
|
||||||
|
@Test
|
||||||
|
void testAuthenticate() {
|
||||||
|
Sau02f220uService service = new Sau02f220uService();
|
||||||
|
Sau02f220uDto dto = new Sau02f220uDto();
|
||||||
|
dto.setUsername("testUser");
|
||||||
|
dto.setPassword("testPass");
|
||||||
|
|
||||||
|
service.authenticate(dto);
|
||||||
|
// Add assertions here
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue