feat(common): 콘텐츠 정렬 타입을 추가한다

This commit is contained in:
2026-06-17 16:05:55 +09:00
parent 8f41198d91
commit 7e6ac283cb
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package kr.co.vividnext.sodalive.v2.common.domain
enum class ContentSort {
LATEST,
POPULAR,
OWNED,
PRICE_HIGH,
PRICE_LOW
}

View File

@@ -0,0 +1,14 @@
package kr.co.vividnext.sodalive.v2.common.domain
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class ContentSortTest {
@Test
fun shouldDefineCommonContentSortValues() {
assertEquals(
listOf("LATEST", "POPULAR", "OWNED", "PRICE_HIGH", "PRICE_LOW"),
ContentSort.values().map { it.name }
)
}
}