elvyssoares

DefaultAttributeMapTest - Refactored - Simplified

Jun 5th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. final int FIRST_VALUE = 1;
  2. final int LAST_VALUE = 3653;
  3. @Test
  4. public void test() {
  5.     // Instantiate a map and a key 
  6.  
  7.     map.setAttr(key, LAST_VALUE);
  8.     assertThat(map.attr(key)).isEqualTo(LAST_VALUE);
  9.    
  10.     map.setAttr(key, FIRST_VALUE);
  11.     assertThat(map.attr(key)).isEqualTo(FIRST_VALUE);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment