Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move unit test to test folder #622

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion model/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ kotlin {
implementation Dep.Test.KotlinMultiPlatform.commonModuleTestAnnotations
implementation Dep.MockK.common
}
jvmTest {
test {
dependsOn jvmMain
dependencies {
implementation Dep.Test.KotlinMultiPlatform.jvmModuleTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import org.junit.runners.Parameterized
class FiltersTest {

private companion object {
val room1 = Room(10, "room1")
val room2 = Room(11, "room2")
val room1 = Room(10, LocaledString("room1", "room1"), 1)
val room2 = Room(11, LocaledString("room2", "room2"), 2)
val category1 = Category(10, LocaledString("ツール1", "Tool1"))
val category2 = Category(11, LocaledString("ツール2", "Tool2"))
}
Expand Down Expand Up @@ -237,7 +237,7 @@ data class Param<T>(
title = title,
filters = Filters(audienceCategories = filterItem),
sessionSetup = {
every { forBeginners } returns isForBeginners
every { isForBeginners } returns isForBeginners
},
expected = expected
)
Expand Down