Commit 31e3543 1 parent de80d87 commit 31e3543 Copy full SHA for 31e3543
File tree 5 files changed +7
-5
lines changed
test/java/ddangkong/service/question
5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
package ddangkong .controller .exception ;
2
2
3
+ import ddangkong .service .excpetion .BusinessLogicException ;
4
+ import ddangkong .service .excpetion .ViolateDataException ;
3
5
import jakarta .validation .ConstraintViolationException ;
4
6
import lombok .extern .slf4j .Slf4j ;
5
7
import org .springframework .http .HttpStatus ;
Original file line number Diff line number Diff line change 1
- package ddangkong .controller . exception ;
1
+ package ddangkong .service . excpetion ;
2
2
3
3
public class BusinessLogicException extends RuntimeException {
4
4
Original file line number Diff line number Diff line change 1
- package ddangkong .controller . exception ;
1
+ package ddangkong .service . excpetion ;
2
2
3
3
public class ViolateDataException extends RuntimeException {
4
4
Original file line number Diff line number Diff line change 1
1
package ddangkong .service .question ;
2
2
3
- import ddangkong .controller .exception .BusinessLogicException ;
4
- import ddangkong .controller .exception .ViolateDataException ;
5
3
import ddangkong .controller .question .dto .BalanceQuestionResponse ;
6
4
import ddangkong .domain .option .BalanceOption ;
7
5
import ddangkong .domain .option .BalanceOptionRepository ;
8
6
import ddangkong .domain .question .BalanceQuestion ;
9
7
import ddangkong .domain .question .RoomQuestionRepository ;
8
+ import ddangkong .service .excpetion .BusinessLogicException ;
9
+ import ddangkong .service .excpetion .ViolateDataException ;
10
10
import java .util .List ;
11
11
import lombok .RequiredArgsConstructor ;
12
12
import org .springframework .stereotype .Service ;
Original file line number Diff line number Diff line change 3
3
import static org .assertj .core .api .Assertions .assertThat ;
4
4
import static org .assertj .core .api .Assertions .assertThatThrownBy ;
5
5
6
- import ddangkong .controller .exception .BusinessLogicException ;
7
6
import ddangkong .controller .option .dto .BalanceOptionResponse ;
8
7
import ddangkong .controller .question .dto .BalanceQuestionResponse ;
9
8
import ddangkong .domain .question .Category ;
10
9
import ddangkong .service .BaseServiceTest ;
10
+ import ddangkong .service .excpetion .BusinessLogicException ;
11
11
import org .junit .jupiter .api .Nested ;
12
12
import org .junit .jupiter .api .Test ;
13
13
import org .springframework .beans .factory .annotation .Autowired ;
You can’t perform that action at this time.
0 commit comments