elvyssoares

DefaultAttributeMapTest - Original

May 19th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. @Test
  2. void testGetSetInt() {
  3.     final DefaultAttributeMap map = new DefaultAttributeMap(null);
  4.     final AttributeKey<Integer> key = AttributeKey.valueOf("int");
  5.    
  6.     assertThat(map.attr(key)).isNull();
  7.  
  8.     map.setAttr(key, 3653);
  9.     assertThat(map.attr(key)).isEqualTo(3653);
  10.    
  11.     map.setAttr(key, 1);
  12.     assertThat(map.attr(key)).isEqualTo(1);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment