Created
          August 6, 2012 19:08 
        
      - 
      
- 
        Save dkincaid/3277619 to your computer and use it in GitHub Desktop. 
    Fixed mutable state test
  
        
  
    
      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
    
  
  
    
  | @Test | |
| public void changeNameTest() { | |
| MutableClass original_name = new MutableClass("my name"); | |
| MutableClass expected_name = new MutableClass("my 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