generated from pricelees/issue-pr-template
[#44] 매장 기능 도입 #45
@ -16,7 +16,9 @@ class PopulationDataSqlParser() : StringSpec({
|
|||||||
|
|
||||||
val regionCodePattern = Regex("^[0-9]{10}$")
|
val regionCodePattern = Regex("^[0-9]{10}$")
|
||||||
|
|
||||||
"인구 데이터를 이용하여 지역 정보 SQL 파일로 변환하고, 추가로 $MIN_POPULATION_FOR_PER_STORE 이상의 시/군/구는 매장 데이터 생성을 위해 따로 분류한다." {
|
"인구 데이터를 이용하여 지역 정보 SQL 파일로 변환하고, 추가로 $MIN_POPULATION_FOR_PER_STORE 이상의 시/군/구는 매장 데이터 생성을 위해 따로 분류한다.".config(
|
||||||
|
enabled = false
|
||||||
|
) {
|
||||||
val populationXlsx = XSSFWorkbook(File("data/population.xlsx"))
|
val populationXlsx = XSSFWorkbook(File("data/population.xlsx"))
|
||||||
val sheet = populationXlsx.getSheetAt(0)
|
val sheet = populationXlsx.getSheetAt(0)
|
||||||
val allRegion = mutableListOf<List<String>>()
|
val allRegion = mutableListOf<List<String>>()
|
||||||
@ -55,7 +57,8 @@ class PopulationDataSqlParser() : StringSpec({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (populationInt >= MIN_POPULATION_FOR_PER_STORE) {
|
if (populationInt >= MIN_POPULATION_FOR_PER_STORE) {
|
||||||
regionsMoreThanMinPopulation.add(listOf(
|
regionsMoreThanMinPopulation.add(
|
||||||
|
listOf(
|
||||||
regionCode,
|
regionCode,
|
||||||
sidoCode,
|
sidoCode,
|
||||||
sigunguCode,
|
sigunguCode,
|
||||||
|
|||||||
@ -19,7 +19,7 @@ class StoreDataInitializer : StringSpec({
|
|||||||
"열정", "미래", "자유", "도전", "지혜", "행운"
|
"열정", "미래", "자유", "도전", "지혜", "행운"
|
||||||
)
|
)
|
||||||
|
|
||||||
"초기 매장 데이터를 준비한다." {
|
"초기 매장 데이터를 준비한다.".config(enabled = false) {
|
||||||
val regions = initializeRegionWithStoreCount()
|
val regions = initializeRegionWithStoreCount()
|
||||||
val usedStoreName = mutableListOf<String>()
|
val usedStoreName = mutableListOf<String>()
|
||||||
val usedBusinessRegNums = mutableListOf<String>()
|
val usedBusinessRegNums = mutableListOf<String>()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user