()
| 39 | } |
| 40 | |
| 41 | @Test |
| 42 | public void duplicates() { |
| 43 | Attributes attrs = Attributes.newBuilder() |
| 44 | .set(YOLO_KEY, "To be?") |
| 45 | .set(YOLO_KEY, "Or not to be?") |
| 46 | .set(Attributes.Key.create("yolo"), "I'm not a duplicate") |
| 47 | .build(); |
| 48 | assertThat(attrs.get(YOLO_KEY)).isEqualTo("Or not to be?"); |
| 49 | assertThat(attrs.keysForTest()).hasSize(2); |
| 50 | } |
| 51 | |
| 52 | @Test |
| 53 | public void toBuilder() { |
nothing calls this directly
no test coverage detected