test #449

Merged
klaus merged 29 commits from test into main 2026-09-10 07:58:32 +00:00
3 changed files with 5 additions and 0 deletions
Showing only changes of commit 328c433020 - Show all commits
@@ -122,6 +122,7 @@ class MainContentAllQueryService(
sort = sort,
offset = page.offset,
limit = page.size + 1,
locale = langContext.lang.code,
onlyPaid = onlyPaid,
onlyFree = onlyFree,
onlyPointAvailable = onlyPointAvailable
@@ -23,6 +23,7 @@ interface MainContentAllQueryPort {
sort: ContentSort,
offset: Long,
limit: Int,
locale: String,
onlyPaid: Boolean = false,
onlyFree: Boolean = false,
onlyPointAvailable: Boolean = false
@@ -32,6 +32,7 @@ class MainContentAllQueryServiceTest {
assertEquals(MainContentAllType.AUDIO, tab.type)
assertEquals("audio", port.lastListKind)
assertEquals(ContentSort.POPULAR, port.lastSort)
assertEquals("en", port.lastLocale)
assertEquals(20L, port.lastOffset)
assertEquals(21, port.lastLimit)
assertTrue(port.lastOnlyPaid)
@@ -186,6 +187,7 @@ private class FakeMainContentAllQueryPort : MainContentAllQueryPort {
sort: ContentSort,
offset: Long,
limit: Int,
locale: String,
onlyPaid: Boolean,
onlyFree: Boolean,
onlyPointAvailable: Boolean
@@ -196,6 +198,7 @@ private class FakeMainContentAllQueryPort : MainContentAllQueryPort {
lastSort = sort
lastOffset = offset
lastLimit = limit
lastLocale = locale
lastOnlyPaid = onlyPaid
lastOnlyFree = onlyFree
lastOnlyPointAvailable = onlyPointAvailable