Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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