Created
June 1, 2017 07:01
-
-
Save woprzech/22560d122a536469cdadf2a23a5185af 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
public class SecurityCentralTest { | |
Window windowMock = mock(Window.class); | |
Door doorMock = mock(Door.class); | |
@Test | |
public void enabling_security_locks_windows_and_doors() { | |
SecurityCentral securityCentral = new SecurityCentral(windowMock, doorMock); | |
securityCentral.securityOn(); | |
verify(doorMock).close(); | |
verify(windowMock).close(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment