Created
October 21, 2014 15:10
-
-
Save iporsut/b3e95478733c1f28fabd to your computer and use it in GitHub Desktop.
System Test Java
This file contains hidden or 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 System { | |
public System(Authorizer authorizer) { | |
this.authorizer = authorizer; | |
} | |
public int loginCount() { | |
//returns number of logged in users. | |
} | |
} | |
@Test | |
public void newlyCreatedSystem_hasNoLoggedInUsers() { | |
System system = new System(new DummyAuthorizer()); | |
assertThat(system.loginCount(), is(0)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment