Skip to content

Instantly share code, notes, and snippets.

@phellipealexandre
Created November 11, 2020 01:18
Show Gist options
  • Save phellipealexandre/6d91470c6b094c275d17121d0b791a60 to your computer and use it in GitHub Desktop.
Save phellipealexandre/6d91470c6b094c275d17121d0b791a60 to your computer and use it in GitHub Desktop.
Exemplo simples de utilização de um Dummy em um teste
@Test
fun `Update registered note count when registering a new note in empty repository`() {
val dummyNote = //Dublê de teste Dummy
//Passado apenas preencher o parâmetro, o conteúdo do dublê não é tão relevante
noteRepository.registerNote(dummyNote)
assertEquals(expected = 1, actual = noteRepository.getNoteCount())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment