Skip to content

Commit

Permalink
#884 added printing available locales for Android devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk authored and adamfilipow92 committed Jul 23, 2020
1 parent b205e3f commit 7496448
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
package ftl.cli.firebase.test.android.configuration

import com.google.common.truth.Truth.assertThat
import ftl.android.AndroidCatalog
import io.mockk.mockkObject
import io.mockk.verify
import org.junit.Test
import picocli.CommandLine

class AndroidLocalesListCommandTest {

@Test
fun `should execute AndroidCatalog localesAsTable when run AndroidLocalesListCommand`() {
mockkObject(AndroidCatalog) {
CommandLine(AndroidLocalesListCommand()).execute()
verify { AndroidCatalog.localesAsTable(any()) }
}
}

@Test
fun androidLocalesListCommandShouldParseConfig() {
val cmd = AndroidLocalesListCommand()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
package ftl.cli.firebase.test.ios.configuration

import com.google.common.truth.Truth
import ftl.ios.IosCatalog
import io.mockk.mockkObject
import io.mockk.verify
import org.junit.Test
import picocli.CommandLine

class IosLocalesListCommandTest {

@Test
fun androidLocalesListCommandShouldParseConfig() {
fun `should execute IosCatalog localesAsTable when run IosLocalesListCommand`() {
mockkObject(IosCatalog) {
CommandLine(IosLocalesListCommand()).execute()
verify { IosCatalog.localesAsTable(any()) }
}
}

@Test
fun iOsLocalesListCommandShouldParseConfig() {
val cmd = IosLocalesListCommand()
CommandLine(cmd).parseArgs("--config=a")

Expand Down

0 comments on commit 7496448

Please sign in to comment.