This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
testOptions { | |
// ローカルテストでActivity/Fragmentのテスト時にリソース読み込めなくてクラッシュしないように | |
unitTests.includeAndroidResources = true | |
} | |
} | |
dependencies { | |
testImplementation "org.robolectric:robolectric:4.3-alpha-1" | |
testImplementation "junit:junit:4.12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User | |
class Program | |
class MergedState(u: User, p: Program) | |
interface UserRepository { | |
suspend fun getUser(): User | |
} | |
interface ProgramRepository { | |
suspend fun getPrograms(): List<Program> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User | |
class Program | |
class MergedState(u: User, p: Program) | |
interface UserRepository { | |
suspend fun getUser(): User | |
} | |
interface ProgramRepository { | |
suspend fun getPrograms(): List<Program> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User | |
class Program | |
class MergedState(u: User, p: Program) | |
interface UserRepository { | |
suspend fun getUser(): User | |
} | |
interface ProgramRepository { | |
suspend fun getPrograms(): List<Program> |