Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- void testGetSetInt() {
- final DefaultAttributeMap map = new DefaultAttributeMap(null);
- final AttributeKey<Integer> key = AttributeKey.valueOf("int");
- assertThat(map.attr(key)).isNull();
- map.setAttr(key, 3653);
- assertThat(map.attr(key)).isEqualTo(3653);
- map.setAttr(key, 1);
- assertThat(map.attr(key)).isEqualTo(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment