Created
June 12, 2022 15:06
-
-
Save le0nidas/0c437c4918619b45bc5a21c0f5bc7551 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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