mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-24 08:24:20 +01:00
restructure project
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package de.cotto.lndmanagej.controller;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.mockito.InjectMocks;
|
||||
import org.mockito.junit.jupiter.MockitoExtension;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
class NotFoundExceptionHandlerTest {
|
||||
private static final NotFoundException EXCEPTION = new NotFoundException();
|
||||
|
||||
@InjectMocks
|
||||
private NotFoundExceptionHandler exceptionHandler;
|
||||
|
||||
@Test
|
||||
void mapsToNotFound() {
|
||||
assertThat(exceptionHandler.handleException(EXCEPTION).getStatusCode())
|
||||
.isEqualTo(HttpStatus.NOT_FOUND);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user