Skip to content

Commit

Permalink
#835 Fixed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk committed Jul 16, 2020
1 parent 6515e11 commit e35afde
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 89 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,11 @@ package ftl.cli.firebase.test.android.models

import com.google.common.truth.Truth.assertThat
import ftl.config.FtlConstants
import ftl.test.util.TestHelper.normalizeLineEnding
import org.junit.Rule
import org.junit.Test
import org.junit.contrib.java.lang.system.SystemOutRule
import picocli.CommandLine

class AndroidModelsListCommandTest {

@Rule
@JvmField
val systemOutRule: SystemOutRule = SystemOutRule().enableLog().muteForSuccessfulTests()

@Test
fun androidModelsListCommandPrintsHelp() {
val modelsListCommand = AndroidModelsListCommand()
assertThat(modelsListCommand.usageHelpRequested).isFalse()
CommandLine(modelsListCommand).execute("-h")

val output = systemOutRule.log.normalizeLineEnding()
assertThat(output).startsWith(
"Print current list of devices available to test against\n" +
"\n" +
"list [-h] [-c=<configPath>]\n" +
"\n" +
"Description:\n" +
"\n" +
"Print current list of Android devices available to test against\n" +
"\n" +
"Options:\n" +
" -c, --config=<configPath>\n" +
" YAML config file path\n" +
" -h, --help Prints this help message"
)

assertThat(modelsListCommand.usageHelpRequested).isTrue()
}

@Test
fun androidModelsListCommandOptions() {
val cmd = AndroidModelsListCommand()
Expand Down

0 comments on commit e35afde

Please sign in to comment.