Created
August 6, 2012 18:52
-
-
Save dkincaid/3277518 to your computer and use it in GitHub Desktop.
Mutable state test
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 | |
public void changeNameTest() { | |
MutableClass original_name = new MutableClass("my name"); | |
MutableClass expected_name = original_name; | |
NameFilter filter = new NameFilter(); | |
MutableClass new_name = filter.changeName(original_name, | |
"new name"); | |
assertEquals(new_name, expected_name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment