Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created June 12, 2022 15:06
Show Gist options
  • Save le0nidas/0c437c4918619b45bc5a21c0f5bc7551 to your computer and use it in GitHub Desktop.
Save le0nidas/0c437c4918619b45bc5a21c0f5bc7551 to your computer and use it in GitHub Desktop.
@Test fun `the configuration is not valid when its header is empty`() {
whenever(mockStorage.get(KEY_AGENT)).thenReturn("an agent")
whenever(mockStorage.get(KEY_VERSION)).thenReturn("a version")
whenever(mockStorage.get(KEY_HEADER)).thenReturn("")
val actual = configuration().isValid
assertFalse(actual)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment