Skip to content

Commit

Permalink
[REFACTOR] #434: Quote 관련 클래스들과 테스트를 하나의 패키지로 묶기
Browse files Browse the repository at this point in the history
  • Loading branch information
tank3a committed Aug 23, 2023
1 parent 32f7807 commit ad0f4fb
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package autoever2.cartag.controller;
package autoever2.cartag.quotes;

import autoever2.cartag.domain.quote.*;
import autoever2.cartag.domain.option.QuoteSubOptionDto;
import autoever2.cartag.service.QuoteService;
import autoever2.cartag.quotes.dtos.*;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Content;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package autoever2.cartag.repository;
package autoever2.cartag.quotes;

import autoever2.cartag.domain.quote.HistoryTotalModelPriceDto;
import autoever2.cartag.domain.quote.HistorySearchDto;
import autoever2.cartag.domain.quote.HistoryShortDto;
import autoever2.cartag.quotes.dtos.HistoryTotalModelPriceDto;
import autoever2.cartag.quotes.dtos.HistorySearchDto;
import autoever2.cartag.quotes.dtos.HistoryShortDto;
import autoever2.cartag.exception.EmptyDataException;
import autoever2.cartag.exception.ErrorCode;
import org.springframework.dao.DataAccessException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
package autoever2.cartag.service;
package autoever2.cartag.quotes;

import autoever2.cartag.cars.CarRepository;
import autoever2.cartag.domain.quote.BoughtCarDto;
import autoever2.cartag.quotes.dtos.BoughtCarDto;
import autoever2.cartag.cars.dto.TrimInfoDto;
import autoever2.cartag.domain.quote.HistoryTotalModelPriceDto;
import autoever2.cartag.quotes.dtos.HistoryTotalModelPriceDto;
import autoever2.cartag.domain.color.InnerColorDto;
import autoever2.cartag.domain.color.OuterColorDto;
import autoever2.cartag.models.dto.ModelDefaultDto;
import autoever2.cartag.domain.option.QuoteSubOptionDto;
import autoever2.cartag.domain.option.SubOptionIdAndPriceDto;
import autoever2.cartag.domain.quote.HistorySearchDto;
import autoever2.cartag.domain.quote.HistoryShortDto;
import autoever2.cartag.domain.quote.QuoteDataDto;
import autoever2.cartag.domain.quote.QuoteInfoDto;
import autoever2.cartag.quotes.dtos.HistorySearchDto;
import autoever2.cartag.quotes.dtos.HistoryShortDto;
import autoever2.cartag.quotes.dtos.QuoteDataDto;
import autoever2.cartag.quotes.dtos.QuoteInfoDto;
import autoever2.cartag.exception.EmptyDataException;
import autoever2.cartag.exception.ErrorCode;
import autoever2.cartag.exception.InvalidDataException;
import autoever2.cartag.recommend.RecommendConnector;
import autoever2.cartag.repository.ColorRepository;
import autoever2.cartag.models.ModelRepository;
import autoever2.cartag.repository.OptionRepository;
import autoever2.cartag.repository.QuoteRepository;
import autoever2.cartag.quotes.QuoteRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package autoever2.cartag.domain.quote;
package autoever2.cartag.quotes.dtos;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.redis.core.RedisHash;

import java.beans.ConstructorProperties;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package autoever2.cartag.domain.quote;
package autoever2.cartag.quotes.dtos;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package autoever2.cartag.domain.quote;
package autoever2.cartag.quotes.dtos;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package autoever2.cartag.domain.quote;
package autoever2.cartag.quotes.dtos;

import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package autoever2.cartag.domain.quote;
package autoever2.cartag.quotes.dtos;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package autoever2.cartag.domain.quote;
package autoever2.cartag.quotes.dtos;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package autoever2.cartag.domain.quote;
package autoever2.cartag.quotes.dtos;

import autoever2.cartag.cars.dto.TrimInfoDto;
import autoever2.cartag.domain.color.InnerColorDto;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package autoever2.cartag.recommend;

import autoever2.cartag.domain.quote.QuoteDataDto;
import autoever2.cartag.quotes.dtos.QuoteDataDto;
import autoever2.cartag.exception.ErrorCode;
import autoever2.cartag.exception.ServerException;
import org.json.simple.JSONArray;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package autoever2.cartag.controller;
package autoever2.cartag.quotes;

import autoever2.cartag.domain.quote.BoughtCarDto;
import autoever2.cartag.domain.option.QuoteSubOptionDto;
import autoever2.cartag.domain.quote.HistoryShortDto;
import autoever2.cartag.domain.quote.QuoteDataDto;
import autoever2.cartag.domain.quote.QuoteInfoDto;
import autoever2.cartag.quotes.dtos.HistoryShortDto;
import autoever2.cartag.quotes.dtos.QuoteDataDto;
import autoever2.cartag.quotes.dtos.QuoteInfoDto;
import autoever2.cartag.cars.CarService;
import autoever2.cartag.service.QuoteService;
import autoever2.cartag.quotes.QuoteController;
import autoever2.cartag.quotes.QuoteService;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package autoever2.cartag.repository;
package autoever2.cartag.quotes;

import autoever2.cartag.domain.quote.HistorySearchDto;
import autoever2.cartag.domain.quote.HistoryShortDto;
import autoever2.cartag.domain.quote.HistoryTotalModelPriceDto;
import autoever2.cartag.quotes.QuoteRepository;
import autoever2.cartag.quotes.dtos.HistorySearchDto;
import autoever2.cartag.quotes.dtos.HistoryShortDto;
import org.assertj.core.api.SoftAssertions;
import org.assertj.core.api.junit.jupiter.InjectSoftAssertions;
import org.assertj.core.api.junit.jupiter.SoftAssertionsExtension;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
package autoever2.cartag.service;
package autoever2.cartag.quotes;

import autoever2.cartag.cars.CarRepository;
import autoever2.cartag.cars.dto.TrimInfoDto;
import autoever2.cartag.domain.color.InnerColorDto;
import autoever2.cartag.domain.color.OuterColorDto;
import autoever2.cartag.models.dto.ModelDefaultDto;
import autoever2.cartag.domain.option.QuoteSubOptionDto;
import autoever2.cartag.domain.quote.*;
import autoever2.cartag.quotes.dtos.HistorySearchDto;
import autoever2.cartag.quotes.dtos.HistoryShortDto;
import autoever2.cartag.quotes.dtos.QuoteDataDto;
import autoever2.cartag.recommend.RecommendConnector;
import autoever2.cartag.repository.ColorRepository;
import autoever2.cartag.models.ModelRepository;
import autoever2.cartag.repository.OptionRepository;
import autoever2.cartag.repository.QuoteRepository;
import org.assertj.core.api.SoftAssertions;
import org.assertj.core.api.junit.jupiter.InjectSoftAssertions;
import org.assertj.core.api.junit.jupiter.SoftAssertionsExtension;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
Expand All @@ -26,7 +21,6 @@
import java.util.List;
import java.util.Optional;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.when;

@ExtendWith({MockitoExtension.class, SoftAssertionsExtension.class})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package autoever2.cartag.integration;
package autoever2.cartag.quotes;

import autoever2.cartag.controller.QuoteController;
import autoever2.cartag.domain.quote.BoughtCarDto;
import autoever2.cartag.domain.quote.QuoteDataDto;
import autoever2.cartag.domain.quote.QuoteInfoDto;
import autoever2.cartag.quotes.QuoteController;
import autoever2.cartag.quotes.dtos.QuoteDataDto;
import autoever2.cartag.quotes.dtos.QuoteInfoDto;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down

0 comments on commit ad0f4fb

Please sign in to comment.